Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | $tableOptions = null; |
||
16 | if ($this->db->driverName === 'mysql') { |
||
17 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; |
||
18 | } |
||
19 | $this->createTable('{{%order_payment_record}}', [ |
||
20 | 'id' => $this->primaryKey(), |
||
21 | 'order_sn' => $this->string()->notNull()->comment('订单编号'), |
||
22 | 'trace_no' => $this->string()->comment('交易号'), |
||
23 | 'amount' => $this->decimal(10, 2)->comment('总金额'), |
||
24 | 'created_at' => $this->integer()->comment('创建时间'), |
||
25 | 'updated_at' => $this->integer()->comment('更新时间'), |
||
26 | ], $tableOptions); |
||
27 | } |
||
28 | |||
37 |