mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 17:17:43 +02:00
postgres: remove not null constraint on data column of record changes table (#3594)
This commit is contained in:
parent
fc21579e4b
commit
23c42da8ec
1 changed files with 11 additions and 0 deletions
|
@ -128,6 +128,17 @@ var migrations = []func(context.Context, pgx.Tx) error{
|
||||||
return err
|
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
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue