postgres: remove not null constraint on data column of record changes table (#3594)

This commit is contained in:
Caleb Doxsey 2022-08-31 10:16:19 -06:00 committed by GitHub
parent fc21579e4b
commit 23c42da8ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,17 @@ var migrations = []func(context.Context, pgx.Tx) error{
return err
}
return nil
},
4: func(ctx context.Context, tx pgx.Tx) error {
_, err := tx.Exec(ctx, `
ALTER TABLE `+schemaName+`.`+recordChangesTableName+`
ALTER data DROP NOT NULL
`)
if err != nil {
return err
}
return nil
},
}