overleaf/services/history-v1/storage/scripts/global-blobs-db-cleanup
Alf Eaton ee85d948e2 Avoid duplicating a math-closing dollar sign (#11227)
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
2023-01-16 08:41:42 +00:00
..
01-create-blob-hashes-table.sql Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
02-set-global-flag.sql Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
03-create-global-blobs-table.sql Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
04-swap-global-blob-tables.sql Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
README.md Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
rollback.sql Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00

Scripts in this directory were used when we cleaned up the global blobs table, ensuring that it only contained global blobs. The scripts are meant to be run in this order:

  • 01-create-blob-hashes-table.sql
  • 02-set-global-flag.sql
  • 03-create-global-blobs-table.sql
  • 04-swap-global-blob-tables.sql

The rollback.sql can be run to reverse the effect of 03-swap-global-blob-tables.sql.