Open schoettl opened 1 year ago
@parsonsmatt any recommendations on the easiest way to migrate the scaffold?
I think that getEscapedRawName
ought to do it
- let escapedTables = map (connEscapeName sqlBackend . DBName) tables
+ let escapedTables = map (getEscapedRawName sqlBackend) tables
The yesodweb/postgres scaffold doesn't compile with persistent >= 2.13.0.0 (since about mid of 2021).
They removed the function
connEscapeTableName
which is used in the scaffold, see ChangeLog.I tried for an hour to get it going again but I failed. The problematic code is here: https://github.com/yesodweb/yesod-scaffold/blob/postgres/test/TestImport.hs#L59
For now, I fall back to loading every
*Spec
module individually and only those that do without Yesod'sTestImport
.