mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
修复数据迁移中无符号整型问题
This commit is contained in:
parent
ce86bc49a7
commit
94affaddf6
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,7 +6,6 @@
|
|||||||
/config/xs.user.ini
|
/config/xs.user.ini
|
||||||
/config/alipay/*.crt
|
/config/alipay/*.crt
|
||||||
/config/wxpay/*.pem
|
/config/wxpay/*.pem
|
||||||
/db/migrations/schema.php
|
|
||||||
/public/robots.txt
|
/public/robots.txt
|
||||||
/public/sitemap.xml
|
/public/sitemap.xml
|
||||||
/public/h5
|
/public/h5
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"overtrue/wechat": "^4.2"
|
"overtrue/wechat": "^4.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"odan/phinx-migrations-generator": "^5.1",
|
"odan/phinx-migrations-generator": "^5.3",
|
||||||
"phalcon/ide-stubs": "^3.4"
|
"phalcon/ide-stubs": "^3.4"
|
||||||
},
|
},
|
||||||
"repositories": {
|
"repositories": {
|
||||||
|
21
composer.lock
generated
21
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "60ff0e1868be7414a1b31d397ced7fbd",
|
"content-hash": "09a618cffed2c4cfb593c0a791c19b3f",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "aferrandini/phpqrcode",
|
"name": "aferrandini/phpqrcode",
|
||||||
@ -4194,16 +4194,16 @@
|
|||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "odan/phinx-migrations-generator",
|
"name": "odan/phinx-migrations-generator",
|
||||||
"version": "5.1.2",
|
"version": "5.3.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/odan/phinx-migrations-generator.git",
|
"url": "https://github.com/odan/phinx-migrations-generator.git",
|
||||||
"reference": "f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73"
|
"reference": "2d3620f8251838b53717f7a43a348de31e9d451c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/odan/phinx-migrations-generator/zipball/f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73",
|
"url": "https://api.github.com/repos/odan/phinx-migrations-generator/zipball/2d3620f8251838b53717f7a43a348de31e9d451c",
|
||||||
"reference": "f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73",
|
"reference": "2d3620f8251838b53717f7a43a348de31e9d451c",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -4218,11 +4218,12 @@
|
|||||||
"php": "^7.2",
|
"php": "^7.2",
|
||||||
"riimu/kit-phpencoder": "^2.4",
|
"riimu/kit-phpencoder": "^2.4",
|
||||||
"robmorgan/phinx": "^0.12",
|
"robmorgan/phinx": "^0.12",
|
||||||
"symfony/console": "^2.8 || ^3.0 || ^4.0 || ^5.0"
|
"symfony/console": "^2.8 || ^3.0 || ^4.0 || ^5.0",
|
||||||
|
"symfony/polyfill-php73": "^1.18"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^2.16",
|
"friendsofphp/php-cs-fixer": "^2.16",
|
||||||
"overtrue/phplint": "^1.1",
|
"overtrue/phplint": "^1.1 || ^2.0",
|
||||||
"phpstan/phpstan": "^0.12",
|
"phpstan/phpstan": "^0.12",
|
||||||
"phpunit/phpunit": "^8 || ^9",
|
"phpunit/phpunit": "^8 || ^9",
|
||||||
"squizlabs/php_codesniffer": "^3.4"
|
"squizlabs/php_codesniffer": "^3.4"
|
||||||
@ -4250,7 +4251,11 @@
|
|||||||
"mysql",
|
"mysql",
|
||||||
"phinx"
|
"phinx"
|
||||||
],
|
],
|
||||||
"time": "2020-06-15T19:36:35+00:00"
|
"support": {
|
||||||
|
"issues": "https://github.com/odan/phinx-migrations-generator/issues",
|
||||||
|
"source": "https://github.com/odan/phinx-migrations-generator/tree/5.3.2"
|
||||||
|
},
|
||||||
|
"time": "2020-12-30T23:59:57+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phalcon/ide-stubs",
|
"name": "phalcon/ide-stubs",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
|
|||||||
|
|
||||||
class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
||||||
{
|
{
|
||||||
|
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
$this->table('kg_online', [
|
$this->table('kg_online', [
|
||||||
@ -18,6 +19,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('id', 'integer', [
|
->addColumn('id', 'integer', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'identity' => 'enable',
|
'identity' => 'enable',
|
||||||
'comment' => '主键编号',
|
'comment' => '主键编号',
|
||||||
])
|
])
|
||||||
@ -25,6 +27,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '用户编号',
|
'comment' => '用户编号',
|
||||||
'after' => 'id',
|
'after' => 'id',
|
||||||
])
|
])
|
||||||
@ -32,6 +35,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '1',
|
'default' => '1',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '终端类型',
|
'comment' => '终端类型',
|
||||||
'after' => 'user_id',
|
'after' => 'user_id',
|
||||||
])
|
])
|
||||||
@ -48,6 +52,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '活跃时间',
|
'comment' => '活跃时间',
|
||||||
'after' => 'client_ip',
|
'after' => 'client_ip',
|
||||||
])
|
])
|
||||||
@ -55,6 +60,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '创建时间',
|
'comment' => '创建时间',
|
||||||
'after' => 'active_time',
|
'after' => 'active_time',
|
||||||
])
|
])
|
||||||
@ -62,6 +68,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '更新时间',
|
'comment' => '更新时间',
|
||||||
'after' => 'create_time',
|
'after' => 'create_time',
|
||||||
])
|
])
|
||||||
@ -90,7 +97,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
'engine' => 'InnoDB',
|
'engine' => 'InnoDB',
|
||||||
'encoding' => 'utf8mb4',
|
'encoding' => 'utf8mb4',
|
||||||
'collation' => 'utf8mb4_general_ci',
|
'collation' => 'utf8mb4_general_ci',
|
||||||
'comment' => '',
|
'comment' => '主键编号',
|
||||||
'row_format' => 'DYNAMIC',
|
'row_format' => 'DYNAMIC',
|
||||||
])
|
])
|
||||||
->changeColumn('channel_sn', 'string', [
|
->changeColumn('channel_sn', 'string', [
|
||||||
@ -104,4 +111,5 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
|
|||||||
])
|
])
|
||||||
->save();
|
->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
|
|||||||
|
|
||||||
class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
||||||
{
|
{
|
||||||
|
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
$this->table('kg_connect', [
|
$this->table('kg_connect', [
|
||||||
@ -18,6 +19,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('id', 'integer', [
|
->addColumn('id', 'integer', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'identity' => 'enable',
|
'identity' => 'enable',
|
||||||
'comment' => '主键编号',
|
'comment' => '主键编号',
|
||||||
])
|
])
|
||||||
@ -25,13 +27,14 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '用户编号',
|
'comment' => '用户编号',
|
||||||
'after' => 'id',
|
'after' => 'id',
|
||||||
])
|
])
|
||||||
->addColumn('open_id', 'string', [
|
->addColumn('open_id', 'string', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'limit' => 50,
|
'limit' => 64,
|
||||||
'collation' => 'utf8mb4_general_ci',
|
'collation' => 'utf8mb4_general_ci',
|
||||||
'encoding' => 'utf8mb4',
|
'encoding' => 'utf8mb4',
|
||||||
'comment' => '开放ID',
|
'comment' => '开放ID',
|
||||||
@ -59,6 +62,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '提供方',
|
'comment' => '提供方',
|
||||||
'after' => 'open_avatar',
|
'after' => 'open_avatar',
|
||||||
])
|
])
|
||||||
@ -66,6 +70,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '删除标识',
|
'comment' => '删除标识',
|
||||||
'after' => 'provider',
|
'after' => 'provider',
|
||||||
])
|
])
|
||||||
@ -73,6 +78,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '创建时间',
|
'comment' => '创建时间',
|
||||||
'after' => 'deleted',
|
'after' => 'deleted',
|
||||||
])
|
])
|
||||||
@ -80,6 +86,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '更新时间',
|
'comment' => '更新时间',
|
||||||
'after' => 'create_time',
|
'after' => 'create_time',
|
||||||
])
|
])
|
||||||
@ -89,4 +96,5 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
|
|||||||
])
|
])
|
||||||
->create();
|
->create();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
|
|||||||
|
|
||||||
class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
||||||
{
|
{
|
||||||
|
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
$this->table('kg_consult')
|
$this->table('kg_consult')
|
||||||
@ -11,6 +12,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '回复者编号',
|
'comment' => '回复者编号',
|
||||||
'after' => 'owner_id',
|
'after' => 'owner_id',
|
||||||
])
|
])
|
||||||
@ -19,7 +21,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('union_id', 'string', [
|
->addColumn('union_id', 'string', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'limit' => 50,
|
'limit' => 64,
|
||||||
'collation' => 'utf8mb4_general_ci',
|
'collation' => 'utf8mb4_general_ci',
|
||||||
'encoding' => 'utf8mb4',
|
'encoding' => 'utf8mb4',
|
||||||
'comment' => 'union_id',
|
'comment' => 'union_id',
|
||||||
@ -46,6 +48,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('id', 'integer', [
|
->addColumn('id', 'integer', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'identity' => 'enable',
|
'identity' => 'enable',
|
||||||
'comment' => '主键编号',
|
'comment' => '主键编号',
|
||||||
])
|
])
|
||||||
@ -53,13 +56,14 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '用户编号',
|
'comment' => '用户编号',
|
||||||
'after' => 'id',
|
'after' => 'id',
|
||||||
])
|
])
|
||||||
->addColumn('open_id', 'string', [
|
->addColumn('open_id', 'string', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'limit' => 50,
|
'limit' => 64,
|
||||||
'collation' => 'utf8mb4_general_ci',
|
'collation' => 'utf8mb4_general_ci',
|
||||||
'encoding' => 'utf8mb4',
|
'encoding' => 'utf8mb4',
|
||||||
'comment' => '开放ID',
|
'comment' => '开放ID',
|
||||||
@ -69,6 +73,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '删除标识',
|
'comment' => '删除标识',
|
||||||
'after' => 'open_id',
|
'after' => 'open_id',
|
||||||
])
|
])
|
||||||
@ -76,6 +81,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '创建时间',
|
'comment' => '创建时间',
|
||||||
'after' => 'deleted',
|
'after' => 'deleted',
|
||||||
])
|
])
|
||||||
@ -83,6 +89,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '更新时间',
|
'comment' => '更新时间',
|
||||||
'after' => 'create_time',
|
'after' => 'create_time',
|
||||||
])
|
])
|
||||||
@ -96,4 +103,5 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
|
|||||||
])
|
])
|
||||||
->create();
|
->create();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ class Schema202012271615 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '推荐标识',
|
'comment' => '推荐标识',
|
||||||
'after' => 'attrs',
|
'after' => 'attrs',
|
||||||
])
|
])
|
||||||
|
@ -19,6 +19,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('id', 'integer', [
|
->addColumn('id', 'integer', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'identity' => 'enable',
|
'identity' => 'enable',
|
||||||
'comment' => '主键编号',
|
'comment' => '主键编号',
|
||||||
])
|
])
|
||||||
@ -26,6 +27,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '用户编号',
|
'comment' => '用户编号',
|
||||||
'after' => 'id',
|
'after' => 'id',
|
||||||
])
|
])
|
||||||
@ -42,6 +44,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '终端类型',
|
'comment' => '终端类型',
|
||||||
'after' => 'session_id',
|
'after' => 'session_id',
|
||||||
])
|
])
|
||||||
@ -58,6 +61,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '删除标识',
|
'comment' => '删除标识',
|
||||||
'after' => 'client_ip',
|
'after' => 'client_ip',
|
||||||
])
|
])
|
||||||
@ -65,6 +69,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '创建时间',
|
'comment' => '创建时间',
|
||||||
'after' => 'deleted',
|
'after' => 'deleted',
|
||||||
])
|
])
|
||||||
@ -72,6 +77,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '更新时间',
|
'comment' => '更新时间',
|
||||||
'after' => 'create_time',
|
'after' => 'create_time',
|
||||||
])
|
])
|
||||||
@ -92,6 +98,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
->addColumn('id', 'integer', [
|
->addColumn('id', 'integer', [
|
||||||
'null' => false,
|
'null' => false,
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'identity' => 'enable',
|
'identity' => 'enable',
|
||||||
'comment' => '主键编号',
|
'comment' => '主键编号',
|
||||||
])
|
])
|
||||||
@ -99,6 +106,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '用户编号',
|
'comment' => '用户编号',
|
||||||
'after' => 'id',
|
'after' => 'id',
|
||||||
])
|
])
|
||||||
@ -115,6 +123,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '终端类型',
|
'comment' => '终端类型',
|
||||||
'after' => 'token',
|
'after' => 'token',
|
||||||
])
|
])
|
||||||
@ -131,6 +140,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '删除标识',
|
'comment' => '删除标识',
|
||||||
'after' => 'client_ip',
|
'after' => 'client_ip',
|
||||||
])
|
])
|
||||||
@ -138,6 +148,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '创建时间',
|
'comment' => '创建时间',
|
||||||
'after' => 'deleted',
|
'after' => 'deleted',
|
||||||
])
|
])
|
||||||
@ -145,6 +156,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
|
|||||||
'null' => false,
|
'null' => false,
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'limit' => MysqlAdapter::INT_REGULAR,
|
'limit' => MysqlAdapter::INT_REGULAR,
|
||||||
|
'signed' => false,
|
||||||
'comment' => '更新时间',
|
'comment' => '更新时间',
|
||||||
'after' => 'create_time',
|
'after' => 'create_time',
|
||||||
])
|
])
|
||||||
|
16169
db/migrations/schema.php
Normal file
16169
db/migrations/schema.php
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user