You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

m161215_100547_table_facture.php 764B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. class m161215_100547_table_facture extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->createTable('facture', [
  9. 'id' => 'pk',
  10. 'id_etablissement' => Schema::TYPE_INTEGER,
  11. 'date' => Schema::TYPE_DATETIME,
  12. 'reference' => Schema::TYPE_STRING,
  13. 'libelle' => Schema::TYPE_STRING,
  14. 'texte' => Schema::TYPE_TEXT,
  15. 'montant_ht' => Schema::TYPE_FLOAT,
  16. 'paye' => Schema::TYPE_BOOLEAN,
  17. 'date_paiement' => Schema::TYPE_DATETIME,
  18. 'methode_paiement' => Schema::TYPE_STRING,
  19. ]);
  20. }
  21. public function down()
  22. {
  23. $this->dropTable('facture') ;
  24. }
  25. }