|
- <?php
-
-
-
-
-
-
-
- echo "<?php\n";
- if (!empty($namespace)) {
- echo "\nnamespace {$namespace};\n";
- }
- ?>
-
- use yii\db\Migration;
-
-
- class <?= $className ?> extends Migration
- {
-
-
- public function up()
- {
- <?= $this->render('_createTable', [
- 'table' => $table,
- 'fields' => $fields,
- 'foreignKeys' => $foreignKeys,
- ])
- ?>
- }
-
-
-
- public function down()
- {
- <?= $this->render('_dropTable', [
- 'table' => $table,
- 'foreignKeys' => $foreignKeys,
- ])
- ?>
- }
- }
|