You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 8 години
1234567891011121314151617181920212223242526272829303132333435363738
  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 $className string the new migration class name */
  7. echo "<?php\n";
  8. ?>
  9. use yii\db\Schema;
  10. use yii\db\Migration;
  11. class <?= $className ?> extends 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. /*
  22. // Use safeUp/safeDown to run migration code within a transaction
  23. public function safeUp()
  24. {
  25. }
  26. public function safeDown()
  27. {
  28. }
  29. */
  30. }