mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 23:55:33 -05:00
ee85d948e2
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
22 lines
804 B
PL/PgSQL
22 lines
804 B
PL/PgSQL
BEGIN;
|
|
ALTER TABLE blobs RENAME TO global_blobs;
|
|
ALTER TABLE old_blobs RENAME TO blobs;
|
|
|
|
ALTER TABLE global_blobs
|
|
RENAME CONSTRAINT blobs_pkey TO global_blobs_pkey;
|
|
ALTER TABLE global_blobs
|
|
RENAME CONSTRAINT blobs_byte_length_non_negative
|
|
TO global_blobs_byte_length_non_negative;
|
|
ALTER TABLE global_blobs
|
|
RENAME CONSTRAINT blobs_string_length_non_negative
|
|
TO global_blobs_string_length_non_negative;
|
|
|
|
ALTER TABLE blobs
|
|
RENAME CONSTRAINT old_blobs_pkey TO blobs_pkey;
|
|
ALTER TABLE blobs
|
|
RENAME CONSTRAINT old_blobs_byte_length_non_negative
|
|
TO blobs_byte_length_non_negative;
|
|
ALTER TABLE blobs
|
|
RENAME CONSTRAINT old_blobs_string_length_non_negative
|
|
TO blobs_string_length_non_negative;
|
|
COMMIT;
|