瀏覽代碼

Facturation : ajout table "facture"

master
keun 8 年之前
父節點
當前提交
7c8b15b901
共有 1 個文件被更改,包括 28 次插入0 次删除
  1. +28
    -0
      console/migrations/m161215_100547_table_facture.php

+ 28
- 0
console/migrations/m161215_100547_table_facture.php 查看文件

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

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

class m161215_100547_table_facture extends Migration
{
public function up()
{
$this->createTable('facture', [
'id' => 'pk',
'id_etablissement' => Schema::TYPE_INTEGER,
'date' => Schema::TYPE_DATETIME,
'reference' => Schema::TYPE_STRING,
'libelle' => Schema::TYPE_STRING,
'texte' => Schema::TYPE_TEXT,
'montant_ht' => Schema::TYPE_FLOAT,
'paye' => Schema::TYPE_BOOLEAN,
'date_paiement' => Schema::TYPE_DATETIME,
'methode_paiement' => Schema::TYPE_STRING,
]);
}

public function down()
{
$this->dropTable('facture') ;
}
}

Loading…
取消
儲存