only mysql8

atlas migrate lint --dir file://migrations1 --dev-url URL --latest=1 > got.txt
cmp got.txt expected1.txt

atlas migrate lint --dir file://migrations2 --dev-url URL --latest=1 > got.txt
cmp got.txt empty.txt

-- empty.txt --
-- migrations1/1.sql --
CREATE TABLE users (id int);

-- migrations1/2.sql --
ALTER TABLE users ADD UNIQUE INDEX idx (id);

-- expected1.txt --
2.sql: data dependent changes detected:

	L1: Adding a unique index "idx" on table "users" might fail in case column "id" contains duplicate entries

-- migrations2/1.sql --
CREATE TABLE users (id int);
ALTER TABLE users ADD UNIQUE INDEX idx (id);

-- migrations2/2.sql --
ALTER TABLE users RENAME INDEX idx TO idx1;