database/sqlite: add migration for WebPushSubscription.user
This should be enough to fixup the user column for subscriptions with a network specified.
This commit is contained in:
parent
f0db261fc0
commit
27b8547572
@ -241,6 +241,7 @@ var sqliteMigrations = []string{
|
|||||||
`,
|
`,
|
||||||
`
|
`
|
||||||
ALTER TABLE WebPushSubscription ADD COLUMN user INTEGER REFERENCES User(id);
|
ALTER TABLE WebPushSubscription ADD COLUMN user INTEGER REFERENCES User(id);
|
||||||
|
UPDATE WebPushSubscription AS wps SET user = (SELECT n.user FROM Network AS n WHERE n.id = wps.network);
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user