storj/storagenode
Jeff Wendling 202e65e408 storagenode/storagenodedb: do correct generalized alter table procedure
According to the docs at https://www.sqlite.org/lang_altertable.html
doing the steps

    1. Rename old table
    2. Create new table
    3. Copy data
    4. Drop old table

is incorrect and should be

    1. Create new table
    2. Copy data
    3. Drop old table
    4. Rename new into old

Additionally, each step was being run in a different transaction,
which could cause permanent failures if a problem happened during
the migration.

Avoid both of those problems by changing up some previous migrations
that ran in this way. Since they are semantically identical, it's
fine to change up these old migrations. It will help make newer
nodes coming up for the first time more robust.

Change-Id: I43fb004fa1b6cb2fe2554f9920925420da28fb4a
2020-05-01 13:53:26 +00:00
..
bandwidth all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00
collector all: use monkit v3 2020-02-05 23:53:17 +00:00
console storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
contact storagenode/contact: call return value from mon.Task() on function finish 2020-04-01 23:26:14 +00:00
gracefulexit all: don't depend on gogo/proto directly 2020-04-08 17:32:15 +00:00
heldamount storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
inspector storagenode/inspector: adjust Uptime type change in protobuf 2020-04-29 09:28:37 +00:00
monitor removes bandwidth limiting 2020-03-04 14:04:00 +00:00
nodestats storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
notifications storagenode: add suspended status to storagenode dashboard/api 2020-04-09 13:36:23 +00:00
orders storagenode/orders: fix TestDB and TestCleanArchive 2020-04-30 15:00:06 +03:00
pieces all: add missing ctx.Cleanup calls in tests 2020-04-29 17:58:40 +00:00
piecestore storagenode/piecestore: remove error from info log for download canceled (#3869) 2020-04-30 18:42:16 +03:00
preflight bump storj.io/common to latest 2020-03-25 09:08:40 -04:00
pricing storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation storagenode/storagenodedb/reputation: add joined_at 2020-04-17 12:12:09 +00:00
retain all: use monkit v3 2020-02-05 23:53:17 +00:00
satellites storagenode/gracefulexit: fix exit-status command output 2020-01-15 14:58:15 +00:00
storagenodedb storagenode/storagenodedb: do correct generalized alter table procedure 2020-05-01 13:53:26 +00:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust storagenode/trust: fix go 1.14 failures 2020-03-24 11:04:30 +00:00
version storanode/version/chore notifications temporary disabled 2020-04-06 16:57:12 +00:00
operator.go remove sugar logging 2020-04-15 12:37:47 +00:00
peer.go all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00