#1952·atlas

`AUTO_INCREMENT` do not work with `atlas schema diff` in mysql

Author: thinkgosCreated Aug 7, 2023Updated Sep 29, 2026
bash
atlas schema diff \
		--from "mysql://root:[email protected]:3306/diff1" \
		--to "mysql://root:[email protected]:3306/diff2" \
		--dev-url "mysql://root:[email protected]:3306/sql_diff_checking" \
		> diff.sql

diff1 and diff2 only different on id column. diff1 column: id bigint(20) NOT NULL COMMENT '字典项ID' diff2 column: id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典项ID' but got result Schemas are synced, no changes to be made.