mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-04 14:34:49 +01:00
* method to simplify migrate/create tests * use new assertion for all migration/create tests * move the expected files to test/data/console
35 lines
415 B
PHP
35 lines
415 B
PHP
<?php
|
|
|
|
return <<<CODE
|
|
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
class {$class} extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
echo "{$class} cannot be reverted.\\n";
|
|
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
// Use safeUp/safeDown to run migration code within a transaction
|
|
public function safeUp()
|
|
{
|
|
}
|
|
|
|
public function safeDown()
|
|
{
|
|
}
|
|
*/
|
|
}
|
|
|
|
CODE;
|