/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Database/Migrations/Migration.php
40 строк
695 B
Dan Matthews
Add an optional `shouldRun` method to migrations. (#55011)
23 мар 2025, 02:49
Не верифицирован
23 мар 2025, 02:49
b3dc56c
Код
Авторство
О чём код?
<?php namespace Illuminate\Database\Migrations; abstract class Migration { /** * The name of the database connection to use. * * @var string|null */ protected $connection; /** * Enables, if supported, wrapping the migration within a transaction. * * @var bool */ public $withinTransaction = true; /** * Get the migration connection name. * * @return string|null */ public function getConnection() { return $this->connection; } /** * Determine if this migration should run. * * @return bool */ public function shouldRun(): bool { return true; } }