You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create table visitor1 (id int not null comment 'xxx',createtime datetime(6) default current_timestamp() comment 'xxx',primary key(id)) comment 'xxxxx';
alter table visitor1 add create_at datetime(6) default current_timestamp() comment 'xxx';
alter table visitor1 add update_at datetime(6) default current_timestamp() comment 'xxx';
create table visitor2 (id int not null comment 'xxx',createtime datetime(6) default current_timestamp() comment 'xxx',primary key(id)) comment 'xxxxx';
alter table visitor2 modify createtime datetime(6) default current_timestamp() comment 'xxx';
alter table visitor2 modify createtime datetime(6) default current_timestamp() comment 'xxx';
结果
环境
数据库: [mysql/mariadb]
版本: 5.7.21
goInception:v1.0.5
参数
mysql> inception get variables like '%merge_alter_table%';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| merge_alter_table | true |
+-------------------+-------+
1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
描述
对同一表的alter操作,如果是ADD 则无法检测出来,modify和change都正常检测
重现
环境
参数
The text was updated successfully, but these errors were encountered: