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.

26 satır
465B

  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m231113_073008_add_column_feature_position
  5. */
  6. class m231113_073008_add_column_feature_position extends Migration
  7. {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function safeUp()
  12. {
  13. $this->addColumn('feature', 'position', $this->integer()->notNull()->defaultValue(0));
  14. }
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function safeDown()
  19. {
  20. $this->dropColumn('feature', 'position');
  21. }
  22. }