Kaynağa Gözat

[producer] Correctif quantity_max

refactoring
Guillaume 4 yıl önce
ebeveyn
işleme
93d4b33a07
1 değiştirilmiş dosya ile 34 ekleme ve 0 silme
  1. +34
    -0
      console/migrations/m200624_083903_product_distribution_change_column_quantity_max.php

+ 34
- 0
console/migrations/m200624_083903_product_distribution_change_column_quantity_max.php Dosyayı Görüntüle

@@ -0,0 +1,34 @@
<?php

use yii\db\Migration;
use yii\db\Schema;

class m200624_083903_product_distribution_change_column_quantity_max extends Migration
{
public function safeUp()
{
$this->alterColumn('product_distribution', 'quantity_max', Schema::TYPE_FLOAT) ;
}

public function safeDown()
{
echo "m200624_083903_product_distribution_change_column_quantity_max cannot be reverted.\n";

return false;
}

/*
// Use up()/down() to run migration code without a transaction.
public function up()
{

}

public function down()
{
echo "m200624_083903_product_distribution_change_column_quantity_max cannot be reverted.\n";

return false;
}
*/
}

Yükleniyor…
İptal
Kaydet