atlas migrate diff --env local
cmpmig 0 diff.sql

# reset
exec rm -rf migrations

atlas migrate diff --env src_list
cmpmig 0 diff.sql

# reset
exec rm -rf migrations

atlas migrate diff --env single_elem
cmpmig 0 diff.sql
-- atlas.hcl --
env "local" {
    url = "URL"
    dev = "sqlite://test?mode=memory&_fk=1"
    src = "./schema"
    migration {
        dir = "file://migrations"
        format = atlas
    }
}
env "src_list" {
    url = "URL"
    dev = "sqlite://test?mode=memory&_fk=1"
    src = [
        "./schema/1.hcl",
        "./schema/2.hcl",
    ]
    migration {
        dir = "file://migrations"
        format = atlas
    }
}
env "single_elem" {
    url = "URL"
    dev = "sqlite://test?mode=memory&_fk=1"
    src = [
        "./schema/",
    ]
    migration {
        dir = "file://migrations"
        format = atlas
    }
}
-- schema/1.hcl --
table "users" {
  schema = schema.main
  column "id" {
    null = false
    type = int
  }
}
-- schema/2.hcl --
schema "main" {
}
-- diff.sql --
-- Create "users" table
CREATE TABLE `users` (`id` int NOT NULL);
-- empty.sql --
