1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-13 03:49:11 +08:00

修复数据迁移中无符号整型问题

This commit is contained in:
xiaochong0302 2021-01-02 16:51:47 +08:00
parent aef87543ff
commit c2487adc74
10 changed files with 16928 additions and 347 deletions

1
.gitignore vendored
View File

@ -6,7 +6,6 @@
/config/xs.user.ini
/config/alipay/*.crt
/config/wxpay/*.pem
/db/migrations/schema.php
/public/robots.txt
/public/sitemap.xml
/public/h5

View File

@ -24,7 +24,7 @@
"overtrue/wechat": "^4.2"
},
"require-dev": {
"odan/phinx-migrations-generator": "^5.1",
"odan/phinx-migrations-generator": "^5.3",
"phalcon/ide-stubs": "^3.4"
},
"repositories": {

21
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "60ff0e1868be7414a1b31d397ced7fbd",
"content-hash": "09a618cffed2c4cfb593c0a791c19b3f",
"packages": [
{
"name": "aferrandini/phpqrcode",
@ -4194,16 +4194,16 @@
"packages-dev": [
{
"name": "odan/phinx-migrations-generator",
"version": "5.1.2",
"version": "5.3.2",
"source": {
"type": "git",
"url": "https://github.com/odan/phinx-migrations-generator.git",
"reference": "f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73"
"reference": "2d3620f8251838b53717f7a43a348de31e9d451c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/odan/phinx-migrations-generator/zipball/f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73",
"reference": "f3cb7cc6bc7eb22e85f34f229b6d476e96d99c73",
"url": "https://api.github.com/repos/odan/phinx-migrations-generator/zipball/2d3620f8251838b53717f7a43a348de31e9d451c",
"reference": "2d3620f8251838b53717f7a43a348de31e9d451c",
"shasum": "",
"mirrors": [
{
@ -4218,11 +4218,12 @@
"php": "^7.2",
"riimu/kit-phpencoder": "^2.4",
"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": {
"friendsofphp/php-cs-fixer": "^2.16",
"overtrue/phplint": "^1.1",
"overtrue/phplint": "^1.1 || ^2.0",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^8 || ^9",
"squizlabs/php_codesniffer": "^3.4"
@ -4250,7 +4251,11 @@
"mysql",
"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",

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
class CreateOnlineTable extends Phinx\Migration\AbstractMigration
{
public function change()
{
$this->table('kg_online', [
@ -18,6 +19,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
->addColumn('id', 'integer', [
'null' => false,
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'identity' => 'enable',
'comment' => '主键编号',
])
@ -25,6 +27,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '用户编号',
'after' => 'id',
])
@ -32,6 +35,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '1',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '终端类型',
'after' => 'user_id',
])
@ -48,6 +52,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '活跃时间',
'after' => 'client_ip',
])
@ -55,6 +60,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '创建时间',
'after' => 'active_time',
])
@ -62,6 +68,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '更新时间',
'after' => 'create_time',
])
@ -90,7 +97,7 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
'engine' => 'InnoDB',
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'comment' => '',
'comment' => '主键编号',
'row_format' => 'DYNAMIC',
])
->changeColumn('channel_sn', 'string', [
@ -104,4 +111,5 @@ class CreateOnlineTable extends Phinx\Migration\AbstractMigration
])
->save();
}
}

View File

@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
class CreateConnectTable extends Phinx\Migration\AbstractMigration
{
public function change()
{
$this->table('kg_connect', [
@ -18,6 +19,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
->addColumn('id', 'integer', [
'null' => false,
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'identity' => 'enable',
'comment' => '主键编号',
])
@ -25,13 +27,14 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '用户编号',
'after' => 'id',
])
->addColumn('open_id', 'string', [
'null' => false,
'default' => '',
'limit' => 50,
'limit' => 64,
'collation' => 'utf8mb4_general_ci',
'encoding' => 'utf8mb4',
'comment' => '开放ID',
@ -59,6 +62,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '提供方',
'after' => 'open_avatar',
])
@ -66,6 +70,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '删除标识',
'after' => 'provider',
])
@ -73,6 +78,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '创建时间',
'after' => 'deleted',
])
@ -80,6 +86,7 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '更新时间',
'after' => 'create_time',
])
@ -89,4 +96,5 @@ class CreateConnectTable extends Phinx\Migration\AbstractMigration
])
->create();
}
}

View File

@ -4,6 +4,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
class Schema202012121830 extends Phinx\Migration\AbstractMigration
{
public function change()
{
$this->table('kg_consult')
@ -11,6 +12,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '回复者编号',
'after' => 'owner_id',
])
@ -19,7 +21,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
->addColumn('union_id', 'string', [
'null' => false,
'default' => '',
'limit' => 50,
'limit' => 64,
'collation' => 'utf8mb4_general_ci',
'encoding' => 'utf8mb4',
'comment' => 'union_id',
@ -46,6 +48,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
->addColumn('id', 'integer', [
'null' => false,
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'identity' => 'enable',
'comment' => '主键编号',
])
@ -53,13 +56,14 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '用户编号',
'after' => 'id',
])
->addColumn('open_id', 'string', [
'null' => false,
'default' => '',
'limit' => 50,
'limit' => 64,
'collation' => 'utf8mb4_general_ci',
'encoding' => 'utf8mb4',
'comment' => '开放ID',
@ -69,6 +73,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '删除标识',
'after' => 'open_id',
])
@ -76,6 +81,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '创建时间',
'after' => 'deleted',
])
@ -83,6 +89,7 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '更新时间',
'after' => 'create_time',
])
@ -96,4 +103,5 @@ class Schema202012121830 extends Phinx\Migration\AbstractMigration
])
->create();
}
}

View File

@ -12,6 +12,7 @@ class Schema202012271615 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '推荐标识',
'after' => 'attrs',
])

View File

@ -19,6 +19,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
->addColumn('id', 'integer', [
'null' => false,
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'identity' => 'enable',
'comment' => '主键编号',
])
@ -26,6 +27,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '用户编号',
'after' => 'id',
])
@ -42,6 +44,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '终端类型',
'after' => 'session_id',
])
@ -58,6 +61,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '删除标识',
'after' => 'client_ip',
])
@ -65,6 +69,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '创建时间',
'after' => 'deleted',
])
@ -72,6 +77,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '更新时间',
'after' => 'create_time',
])
@ -92,6 +98,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
->addColumn('id', 'integer', [
'null' => false,
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'identity' => 'enable',
'comment' => '主键编号',
])
@ -99,6 +106,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '用户编号',
'after' => 'id',
])
@ -115,6 +123,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '终端类型',
'after' => 'token',
])
@ -131,6 +140,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '删除标识',
'after' => 'client_ip',
])
@ -138,6 +148,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '创建时间',
'after' => 'deleted',
])
@ -145,6 +156,7 @@ class Schema202101021220 extends Phinx\Migration\AbstractMigration
'null' => false,
'default' => '0',
'limit' => MysqlAdapter::INT_REGULAR,
'signed' => false,
'comment' => '更新时间',
'after' => 'create_time',
])

16169
db/migrations/schema.php Normal file

File diff suppressed because it is too large Load Diff