~emersion/soju

27b85475726473137400f0083f8a651ebce49391 — Simon Ser 15 days ago f0db261
database/sqlite: add migration for WebPushSubscription.user

This should be enough to fixup the user column for subscriptions
with a network specified.
1 files changed, 1 insertions(+), 0 deletions(-)

M database/sqlite.go
M database/sqlite.go => database/sqlite.go +1 -0
@@ 241,6 241,7 @@ var sqliteMigrations = []string{
	`,
	`
		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);
	`,
}