ChenSiTong 6 лет назад
Родитель
Сommit
38fb930074
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/resources/update.sql

+ 1 - 1
src/main/resources/update.sql

@@ -47,7 +47,7 @@ update comment
 set top_number=0
 where top_number is null;
 alter table comment
-    modify id bigint not null;
+    modify id bigint auto_increment;
 alter table comment
     modify top_number int not null;
 alter table comment