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)
Thu, Oct 17, 9:01 AM
Unknown Object (File)
Thu, Oct 17, 9:01 AM
Unknown Object (File)
Thu, Oct 17, 9:01 AM
Unknown Object (File)
Thu, Oct 17, 9:01 AM
Unknown Object (File)
Thu, Oct 17, 8:55 AM
Unknown Object (File)
Oct 9 2024, 11:39 PM
Unknown Object (File)
Sep 26 2024, 7:41 PM
Unknown Object (File)
Sep 17 2024, 2:39 AM

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.