起因:amdc管控台从amdc_console_release_v2.1_x86_64 2023-07-10.tar.gz升级到amdc_console_release_v2.1_x86_64_2023-12-05.tar.gz时报错,日志如下
2024/04/11 09:09:58 /opt/workspace/AMDC-console-produc/amdc-console-new/initialize/database.go:38 Cannot add a UNIOUE column [0.076ms] [rows:0]ALTER TABLE 'users'ADD 'account'text UNIQUE
2024/04/11 09:09:58 register table failed!
解决方案:把安装目录上级目录的console.db删除(注意:删除后要重新创建用户)