dialect/sql/schema: revert min length logic for state reader (#4359)

While this change is correct and eventually should land, currently it is creating too many noise in existing projects. Therefore, this change is reverted until a better solution is found.
This commit is contained in:
Jannik Clausen
2025-03-21 19:32:06 +01:00
committed by GitHub
parent 6b1d0a2e84
commit c877aa65c4
2 changed files with 1 additions and 2 deletions

View File

@@ -528,7 +528,6 @@ func (a *Atlas) StateReader(tables ...*Table) migrate.StateReaderFunc {
}
a.sqlDialect = drv
}
a.setupTables(tables)
return a.realm(tables)
}
}

View File

@@ -302,7 +302,7 @@ CREATE UNIQUE INDEX $name$ ON $pets$ ($name$ DESC);
CREATE VIEW $pets_without_fur$ ($id$, $name$, $owner_id$) AS SELECT id, name, owner_id FROM pets;
`, "$", "`"),
},
{dialect.MySQL, "5.6", my(191)},
{dialect.MySQL, "5.6", my(255)},
{dialect.MySQL, "5.7", my(255)},
{dialect.MySQL, "8", my(255)},
{dialect.Postgres, "12", pg},