瀏覽代碼

Ajout d'un champs date_delete aux commandes pour indiquer si la commande a été supprimée, et quand.

dev
keun 6 年之前
父節點
當前提交
2b39306657
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      console/migrations/m181107_104051_add_champs_commande_deleted.php

+ 16
- 0
console/migrations/m181107_104051_add_champs_commande_deleted.php 查看文件

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

use yii\db\Migration;

class m181107_104051_add_champs_commande_deleted extends Migration
{
public function up()
{
$this->addColumn('commande', 'date_delete', Schema::TYPE_DATETIME.' DEFAULT NULL') ;
}

public function down()
{
$this->dropColumn('commande', 'date_delete') ;
}
}

Loading…
取消
儲存