Files
notifications-api/migrations/versions
Leo Hemsted 2b354eb5df separate notification postage constraint into three separate commits
we had an issue where the notification postage constraint command ran
into a deadlock, after trying to acquire two exclusive access locks on
large frequently modified/read tables.

To avoid this happening, we've had to split the upgrade script into
three - one script to apply the not-valid constraint to notifications
table, one for notification_history, and a third to validate the two
constraints.

Note: The first two scripts acquire exclusive access locks, but the
third only needs a row by row lock.

since this involves changing the exsiting alembic upgrades, if you've
upgraded your db you'll need to run the following three commands to
revert your database to a previous good state.

```
alter table notifications drop constraint chk_notifications_postage_null;
alter table notification_history drop constraint chk_notification_history_postage_null;
update alembic_version set version_num = '0229_new_letter_rates';
```
2018-09-27 15:20:28 +01:00
..
2017-11-15 12:42:49 +00:00
2018-01-05 15:58:13 +00:00
2018-01-05 16:00:29 +00:00
2018-02-08 11:26:10 +00:00
2018-08-23 14:43:41 +01:00
2018-08-23 15:04:44 +01:00
2018-08-24 16:09:17 +01:00