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.

27 lines
444 B

  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m191119_024205_create_table_goods
  5. */
  6. class m191119_024205_create_table_goods extends Migration
  7. {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function up()
  12. {
  13. $sql = file_get_contents(__DIR__."/sql/goods.sql");
  14. $this->execute($sql);
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function down()
  20. {
  21. $this->dropTable("atg_goods");
  22. return true;
  23. }
  24. }