Page MenuHomePhabricator

[sql/keyserver] removed/edited columns affected by SIWE
ClosedPublic

Authored by derek on Oct 27 2022, 11:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 1:58 PM
Unknown Object (File)
Mon, May 6, 12:38 PM
Unknown Object (File)
Thu, May 2, 11:06 AM
Unknown Object (File)
Wed, May 1, 8:45 PM
Unknown Object (File)
Apr 17 2024, 6:46 PM
Unknown Object (File)
Apr 14 2024, 1:08 PM
Unknown Object (File)
Apr 14 2024, 1:08 PM
Unknown Object (File)
Apr 14 2024, 1:08 PM

Details

Summary

as per title we're moving the public_key to the cookies column so i dropped those columns from users and sessions.
linear task
another linear task

Test Plan

run the migration script & watch some columns disappear

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

derek edited the summary of this revision. (Show Details)
tomek requested changes to this revision.Oct 28 2022, 3:05 AM

we're moving the public_key to the cookies column

Is this value empty for all the existing rows? If that's not the case, we should migrate it, but otherwise we're fine.

run the migration script & watch some columns disappear

How did you run the script? Was it manually or automatically?
Also, the test plan should include a check of creating a new database - after uninstalling the app.

keyserver/src/database/migration-config.js
55–56 ↗(On Diff #17960)

Why do we use semicolon after every line? Is it a correct syntax? In other ALTER TABLE statements we're using commas to separate.

This revision now requires changes to proceed.Oct 28 2022, 3:05 AM
keyserver/src/database/migration-config.js
55–56 ↗(On Diff #17960)

I suspect this is invalid syntax, which makes me question whether it was tested at all...

derek added inline comments.
keyserver/src/database/migration-config.js
55–56 ↗(On Diff #17960)

my mistake, i had merge conflicts when i rebased & i must've missed this

This revision is now accepted and ready to land.Nov 2 2022, 7:13 AM
This revision was automatically updated to reflect the committed changes.
derek marked an inline comment as done.