only mysql8

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

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

# Ignore data_depend.
! atlas migrate lint --dir file://migrations3 --dev-url URL --latest=1 > got.txt
cmp got.txt expected3.txt

# Ignore all.
! atlas migrate lint --dir file://migrations4 --dev-url URL --latest=1 > got.txt
cmp got.txt empty.txt

# Ignore all.
! atlas migrate lint --dir file://migrations5 --dev-url URL --latest=1 > got.txt
cmp got.txt empty.txt

-- migrations1/1.sql --
CREATE TABLE users (id int, name text);

-- migrations1/2.sql --
ALTER TABLE users ADD COLUMN age int NOT NULL, DROP COLUMN name;

-- expected1.txt --
2.sql: destructive changes detected:

	L1: Dropping non-virtual column "name"

2.sql: data dependent changes detected:

	L1: Adding a non-nullable "int" column "age" on table "users" without a default value implicitly sets existing rows with 0

-- migrations2/1.sql --
CREATE TABLE users (id int, name text);

-- migrations2/2.sql --
-- atlas:nolint destructive
ALTER TABLE users ADD COLUMN age int NOT NULL, DROP COLUMN name;

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

	L2: Adding a non-nullable "int" column "age" on table "users" without a default value implicitly sets existing rows with 0

-- migrations3/1.sql --
CREATE TABLE users (id int, name text);

-- migrations3/2.sql --
-- atlas:nolint data_depend
ALTER TABLE users ADD COLUMN age int NOT NULL, DROP COLUMN name;

-- expected3.txt --
2.sql: destructive changes detected:

	L2: Dropping non-virtual column "name"

-- migrations4/1.sql --
CREATE TABLE users (id int, name text);

-- migrations4/2.sql --
-- atlas:nolint
ALTER TABLE users ADD COLUMN age int NOT NULL, DROP COLUMN name;

-- migrations5/1.sql --
CREATE TABLE users (id int, name text);

-- migrations5/2.sql --
-- atlas:nolint destructive data_depend anything
ALTER TABLE users ADD COLUMN age int NOT NULL, DROP COLUMN name;

-- empty.txt --
