Przeglądaj źródła

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

refactoring
keun 6 lat temu
rodzic
commit
2b39306657
1 zmienionych plików z 16 dodań i 0 usunięć
  1. +16
    -0
      console/migrations/m181107_104051_add_champs_commande_deleted.php

+ 16
- 0
console/migrations/m181107_104051_add_champs_commande_deleted.php Wyświetl plik

@@ -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') ;
}
}

Ładowanie…
Anuluj
Zapisz