satellite/satellitedb: remove gob migration exceptions

Change-Id: I2958e2145edaa501d510314f9bfd0e5280ea82ec
This commit is contained in:
Egon Elbre 2023-02-10 14:54:52 +02:00
parent 362d73f783
commit a8caea8b9c
2 changed files with 1 additions and 12 deletions

View File

@ -275,17 +275,6 @@ func migrateTest(t *testing.T, connStr string) {
finalSchema = currentSchema
}
// TODO(thepaul): remove these exceptions on adding migration to remove _gob columns
coinpaymentsTransactions, ok := finalSchema.FindTable("coinpayments_transactions")
if ok {
coinpaymentsTransactions.RemoveColumn("amount_gob")
coinpaymentsTransactions.RemoveColumn("received_gob")
}
conversionRates, ok := finalSchema.FindTable("stripecoinpayments_tx_conversion_rates")
if ok {
conversionRates.RemoveColumn("rate_gob")
}
// verify that we also match the dbx version
require.Equal(t, dbxschema, finalSchema, "result of all migration scripts did not match dbx schema")
}

View File

@ -10,7 +10,7 @@ trap cleanup EXIT
cd satellite/console/wasm && pwd && GOOS=js GOARCH=wasm go build -o main.wasm .
BUILD_SIZE=$(stat -c %s main.wasm)
CURRENT_SIZE=10400000
CURRENT_SIZE=10800000
if [ $BUILD_SIZE -gt $CURRENT_SIZE ]; then
echo "Wasm size is too big, was $CURRENT_SIZE but now it is $BUILD_SIZE"
exit 1