Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

m240513_094340_alter_column_producer_description.php 488B

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