mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
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:
@@ -528,7 +528,6 @@ func (a *Atlas) StateReader(tables ...*Table) migrate.StateReaderFunc {
|
|||||||
}
|
}
|
||||||
a.sqlDialect = drv
|
a.sqlDialect = drv
|
||||||
}
|
}
|
||||||
a.setupTables(tables)
|
|
||||||
return a.realm(tables)
|
return a.realm(tables)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
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, "5.7", my(255)},
|
||||||
{dialect.MySQL, "8", my(255)},
|
{dialect.MySQL, "8", my(255)},
|
||||||
{dialect.Postgres, "12", pg},
|
{dialect.Postgres, "12", pg},
|
||||||
|
|||||||
Reference in New Issue
Block a user