修改数据库字段

This commit is contained in:
邹景立 2022-10-17 18:22:10 +08:00
parent fc824777ab
commit 0ae6f142fd
4 changed files with 7 additions and 7 deletions

View File

@ -315,8 +315,8 @@ SQL
->addIndex('title', ['name' => 'idx_system_queue_title'])
->addIndex('status', ['name' => 'idx_system_queue_status'])
->addIndex('rscript', ['name' => 'idx_system_queue_rscript'])
->addIndex('create_at', ['name' => 'idx_system_queue_create_at'])
->addIndex('exec_time', ['name' => 'idx_system_queue_exec_time'])
->addIndex('create_at', ['name' => 'idx_system_queue_create_at'])
->save();
}

View File

@ -145,9 +145,9 @@ class InstallWechat extends Migrator
->addColumn('status', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '状态(0禁用,1启用)'])
->addColumn('create_by', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '创建人'])
->addColumn('create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addIndex('appid', ['name' => 'idx_wechat_keys_appid'])
->addIndex('type', ['name' => 'idx_wechat_keys_type'])
->addIndex('keys', ['name' => 'idx_wechat_keys_keys'])
->addIndex('type', ['name' => 'idx_wechat_keys_type'])
->addIndex('appid', ['name' => 'idx_wechat_keys_appid'])
->save();
}
@ -170,9 +170,9 @@ class InstallWechat extends Migrator
->addColumn('local_url', 'string', ['limit' => 300, 'default' => '', 'comment' => '本地文件链接'])
->addColumn('media_url', 'string', ['limit' => 300, 'default' => '', 'comment' => '远程图片链接'])
->addColumn('create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addIndex('appid', ['name' => 'idx_wechat_media_appid'])
->addIndex('md5', ['name' => 'idx_wechat_media_md5'])
->addIndex('type', ['name' => 'idx_wechat_media_type'])
->addIndex('appid', ['name' => 'idx_wechat_media_appid'])
->addIndex('media_id', ['name' => 'idx_wechat_media_media_id'])
->save();
}
@ -195,8 +195,8 @@ class InstallWechat extends Migrator
->addColumn('is_deleted', 'integer', ['limit' => 1, 'default' => 0, 'comment' => '删除状态(0未删除,1已删除)'])
->addColumn('create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addColumn('create_by', 'integer', ['limit' => 20, 'default' => 0, 'comment' => '创建人'])
->addIndex('article_id', ['name' => 'idx_wechat_news_article_id'])
->addIndex('media_id', ['name' => 'idx_wechat_news_media_id'])
->addIndex('article_id', ['name' => 'idx_wechat_news_article_id'])
->save();
}

View File

@ -298,8 +298,8 @@ class InstallUser extends Migrator
->addColumn('deleted', 'integer', ['limit' => 1, 'default' => 0, 'comment' => '删除状态'])
->addColumn('create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addIndex('code', ['name' => 'idx_data_user_address_code'])
->addIndex('type', ['name' => 'idx_data_user_address_type'])
->addIndex('uuid', ['name' => 'idx_data_user_address_uuid'])
->addIndex('type', ['name' => 'idx_data_user_address_type'])
->addIndex('deleted', ['name' => 'idx_data_user_address_deleted'])
->save();
}

View File

@ -90,9 +90,9 @@ class InstallNews extends Migrator
->addColumn('status', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '文章状态(1使用,0禁用)'])
->addColumn('deleted', 'integer', ['limit' => 1, 'default' => 0, 'comment' => '删除状态(0未删,1已删)'])
->addColumn('create_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addIndex('code', ['name' => 'idx_data_news_item_code'])
->addIndex('status', ['name' => 'idx_data_news_item_status'])
->addIndex('deleted', ['name' => 'idx_data_news_item_deleted'])
->addIndex('code', ['name' => 'idx_data_news_item_code'])
->save();
}
}