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

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

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

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

-- migrations1/2.sql --
ALTER TABLE users ADD COLUMN `name` varchar(120) NOT NULL;

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

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

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

-- migrations2/2.sql --
ALTER TABLE users ADD COLUMN `name` varchar(120) NOT NULL;
UPDATE `users` SET `name` = "all_the_same";

-- migrations3/1.sql --
CREATE TABLE users (id varchar(36));

-- migrations3/2.sql --
ALTER TABLE users ADD COLUMN `name` varchar(120) NOT NULL;
UPDATE `users` SET `name` = CONCAT("name", id) WHERE `name` = '';

-- migrations4/1.sql --
CREATE TABLE users (id varchar(36));

-- migrations4/2.sql --
ALTER TABLE users ADD COLUMN `name` varchar(120) NOT NULL;
/* Nop update as existing rows were set to ''*/
UPDATE `users` SET `name` = CONCAT("name", id) WHERE `name` IS NULL;

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

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

