portal.mkgtu.ru/common/db/views/migration.php

40 lines
480 B
PHP
Executable File

<?php
echo "<?php\n";
if (!empty($namespace)) {
echo "\nnamespace {$namespace};\n";
}
?>
use common\components\Migration\SafeMigration;
/**
* Class <?= $className . "\n" ?>
*/
class <?= $className ?> extends SafeMigration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "<?= $className ?> cannot be reverted.\n";
return false;
}
}