Skip to content
Snippets Groups Projects
Commit d9f89378 authored by David Douard's avatar David Douard
Browse files

fix the 5->6 upgrade sql script

Need to drop the index of the old checked_partition before recreating
the new one (with the same name); simplest way of doing this is cascade
droping the old checked_partition table before recreating the new index.
parent 140a935e
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ insert into checked_partition
from old_checked_partition as CP
inner join check_config as CC using (datastore, object_type, nb_partitions);
drop table old_checked_partition cascade;
create unique index concurrently checked_partition_pkey on checked_partition(config_id, partition_id);
alter table checked_partition add primary key using index checked_partition_pkey;
drop table old_checked_partition;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment