diff --git a/database/migrations/20221013031925_install_admin.php b/database/migrations/20221013031925_install_admin.php index 440c33acc..5115abeaa 100644 --- a/database/migrations/20221013031925_install_admin.php +++ b/database/migrations/20221013031925_install_admin.php @@ -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(); } diff --git a/database/migrations/20221013045829_install_wechat.php b/database/migrations/20221013045829_install_wechat.php index 55ab63965..03df22e0b 100644 --- a/database/migrations/20221013045829_install_wechat.php +++ b/database/migrations/20221013045829_install_wechat.php @@ -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(); } diff --git a/database/migrations/20221013045838_install_user.php b/database/migrations/20221013045838_install_user.php index 1ed72f0ab..c6436bd3e 100644 --- a/database/migrations/20221013045838_install_user.php +++ b/database/migrations/20221013045838_install_user.php @@ -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(); } diff --git a/database/migrations/20221013075924_install_news.php b/database/migrations/20221013075924_install_news.php index 931bd4f49..fb2f2d862 100644 --- a/database/migrations/20221013075924_install_news.php +++ b/database/migrations/20221013075924_install_news.php @@ -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(); } }