Skip to content

Commit

Permalink
update to v1.2.0
Browse files Browse the repository at this point in the history
添加概念版订单系统233
  • Loading branch information
sendya committed Aug 10, 2016
1 parent 28ad7dd commit a0fc292
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Data/Config.simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Theme setting:
*
*/
define('THEME', 'Default');
define('THEME', 'Xenon');

/**
* Resource url setting:
Expand Down
2 changes: 1 addition & 1 deletion Data/version.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
V1.1.90
V1.2.0
2 changes: 1 addition & 1 deletion Library/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Order extends Model
{

public $id;
public $userid;
public $userId;
public $createTime;
public $type; // 类型: 0 - 购买套餐 1 - 账户金额充值 2 - 购买卡号
public $status;
Expand Down
16 changes: 0 additions & 16 deletions Migrations/20160706073441_create_table_order.php

This file was deleted.

25 changes: 25 additions & 0 deletions Migrations/20160706073442_create_table_order.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use Phinx\Db\Adapter\MysqlAdapter;
use Phinx\Migration\AbstractMigration;

class CreateTableOrder extends AbstractMigration
{
public function change()
{
if ($this->hasTable("orders")) {
$this->dropTable("orders");
}

$this->table("orders", array( 'comment' => '订单id'))
->addColumn('userId', 'integer', ['limit' => 11])
->addColumn('createTime', 'integer', ['limit' => 11])
->addColumn('type', 'integer', ['limit' => MysqlAdapter::INT_TINY])
->addColumn('status', 'integer', ['limit' => MysqlAdapter::INT_TINY])
->addColumn('plan', 'string', ['limit' => 4])
->addColumn('money', 'integer', ['limit' => 11])
->addColumn('remark', 'string', ['limit' => 100])
->addIndex(['id', 'status'],[])
->create();
}
}

0 comments on commit a0fc292

Please sign in to comment.