on pg, wipe attachment value from text type

This commit is contained in:
Fendy Heryanto
2025-08-02 07:48:30 +00:00
parent 96fe276461
commit d832aebca2

View File

@@ -3041,7 +3041,8 @@ class PGClient extends KnexClient {
);
}
if (n.dt !== o.dt) {
// for now, wipe attachment value
if (n.dt !== o.dt || n.uidt === UITypes.Attachment) {
query += this.genQuery(
`\nALTER TABLE ?? ALTER COLUMN ?? DROP DEFAULT;\n`,
[t, n.cn],