讨论 使用交流 系统升级未完全如何手动补救报错

系统升级未完全如何手动补救报错

fkenuiabcd 发表于    阅读:202    回复:2




执行下面这句,会出现最下面这二个这样的错误

php artisan modstart:module-install-all 


[Illuminate\Database\QueryException]                                                                                           
  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'lgschedule_run' already exists (SQL: create table `lgschedule  
  _run` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp default 0 not null, `updated_at` time  
  stamp default 0 not null, `name` varchar(200) null comment "", `startTime` datetime null comment "", `endTime` datetime null   
  comment "", `status` tinyint null comment "", `result` varchar(200) null comment "") default character set utf8mb4 collate ut  
  f8mb4_unicode_ci)

[Illuminate\Database\QueryException]                                                                                           

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'lgschedule_run' already exists (SQL: create table `lgschedule  

  _run` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp default 0 not null, `updated_at` time  

  stamp default 0 not null, `name` varchar(200) null comment "", `startTime` datetime null comment "", `endTime` datetime null   

  comment "", `status` tinyint null comment "", `result` varchar(200) null comment "") default character set utf8mb4 collate ut  

  f8mb4_unicode_ci)    


评论

提示 schedule_run 表已经存在, 可以先删掉 schedule_run 表后再执行试试。

删除前备份数据。

 
1
我来评论
QQ
微信