only mysql8

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

-- migrations1/1.sql --
CREATE TABLE users (id int, u1 int, PRIMARY KEY(id));
CREATE TABLE pets (id int, owner_id int, PRIMARY KEY(id), CONSTRAINT pet_owner_id FOREIGN KEY(owner_id) REFERENCES users(id));
CREATE TABLE cars (id int, owner_id int, PRIMARY KEY(id), CONSTRAINT car_owner_id FOREIGN KEY(owner_id) REFERENCES users(id));

-- migrations1/2.sql --
/* Rename table mixed with rename column is not a destructive change. */
ALTER TABLE users RENAME TO user, RENAME COLUMN u1 TO u2;

-- migrations1/3.sql --
ALTER TABLE user ADD COLUMN u1 int, DROP COLUMN u2;
ALTER TABLE cars DROP CONSTRAINT car_owner_id, DROP COLUMN owner_id;
ALTER TABLE pets DROP CONSTRAINT pet_owner_id;

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

	L1: Dropping non-virtual column "u2"
	L2: Dropping non-virtual column "owner_id"

3.sql: constraint deletion detected:

	L3: Dropping foreign-key constraint "pet_owner_id"

