uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
updates
/
migration.php.template
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\migrations; /** * This view is used by app/console/controllers/MigrateController.php. * * The following variables are available in this view: */ /** @var $namespace string The namespace of the generated migration. */ /** @var $className string The new migration class name. */ /** @var $migrationNameDesc string The format of the migration class name. */ echo "<?php\n"; ?> namespace <?= $namespace ?>; use Craft; use craft\db\Migration; /** * <?= $className ?> migration. */ class <?= $className ?> extends Migration { /** * @inheritdoc */ public function safeUp(): bool { <?php if ($isInstall) { ?> // Place installation code here... <?php } else { ?> // Place migration code here... <?php } ?> return true; } /** * @inheritdoc */ public function safeDown(): bool { <?php if ($isInstall) { ?> // Place uninstallation code here... return true; <?php } else { ?> echo "<?= $className ?> cannot be reverted.\n"; return false; <?php } ?> } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/updates/migration.php.template