migration.php 413 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * This view is used by console/controllers/MigrateController.php
  4. * The following variables are available in this view:
  5. *
  6. * @var string $className the new migration class name
  7. */
  8. echo "<?php\n";
  9. ?>
  10. use yii\db\Schema;
  11. class <?= $className ?> extends \yii\db\Migration
  12. {
  13. public function up()
  14. {
  15. }
  16. public function down()
  17. {
  18. echo "<?= $className ?> cannot be reverted.\n";
  19. return false;
  20. }
  21. }