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.

m230731_073506_producer_latitude_longitude_double.php 645B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. /**
  5. * Class m230731_073506_producer_latitude_longitude_double
  6. */
  7. class m230731_073506_producer_latitude_longitude_double extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->alterColumn('producer', 'latitude', Schema::TYPE_DOUBLE);
  15. $this->alterColumn('producer', 'longitude', Schema::TYPE_DOUBLE);
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function safeDown()
  21. {
  22. $this->alterColumn('producer', 'latitude', Schema::TYPE_FLOAT);
  23. $this->alterColumn('producer', 'longitude', Schema::TYPE_FLOAT);
  24. }
  25. }