Commit df8e01e8 authored by xiabin's avatar xiabin

修改migrate

parent 4cd82b84
...@@ -19,7 +19,7 @@ class m160927_122231_orders_init extends Migration ...@@ -19,7 +19,7 @@ class m160927_122231_orders_init extends Migration
'user_id' => $this->integer()->notNull()->unsigned(), 'user_id' => $this->integer()->notNull()->unsigned(),
'course_id' => $this->integer()->notNull()->unsigned(), 'course_id' => $this->integer()->notNull()->unsigned(),
'number' => $this->string(32)->notNull(), 'number' => $this->string(32)->notNull(),
'credit' => $this->decimal(6,2)-unsigned()->notNull()->comment('消费'), 'credit' => $this->decimal(6,2)->unsigned()->notNull()->comment('消费'),
'status' => $this->smallInteger()->notNull()->defaultValue(0)->unsigned()->comment('0 未支付 1 已支付'), 'status' => $this->smallInteger()->notNull()->defaultValue(0)->unsigned()->comment('0 未支付 1 已支付'),
'pay_order' => $this->string(64)->notNull()->comment('第三方支付订单'), 'pay_order' => $this->string(64)->notNull()->comment('第三方支付订单'),
'created_at' => $this->integer()->notNull(), 'created_at' => $this->integer()->notNull(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment