Closed yobottehg closed 2 months ago
For someone coming here:
3 was fixed by https://github.com/payloadcms/payload/pull/7962
For 1 and 2:
NOT NULL
constraint at firstNOT NULL
constraint again on all the tablesThis issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Environment Info
Describe the Bug
1.Generated migrations Running the generated migrations of https://github.com/payloadcms/payload/pull/7900 does not work because it will generate columns named
_locale
which can not be null but will be null for existing content as it has no default.2. Lost content If I add a default for the locale to the generated migrations with e.g
DEFAULT 'de'
(Currently unsure if this will result in lost content because of this primitive default) then afterwards all link references will be broken (Links labels and references will be gone. This is the case for all existing localized blocks and array fields.3. Storing new content New content for link labels inside localized blocks and array can not be stored anymore.
Reproduction Steps
For 1 and 2:
For 3:
Adapters and Plugins
db-postgres