Browse Source

Fixed incorrect index creation for edge event migration

pull/7840/head
Volodymyr Babak 4 years ago
parent
commit
f04753d3f9
  1. 2
      application/src/main/data/upgrade/3.4.1/schema_update.sql

2
application/src/main/data/upgrade/3.4.1/schema_update.sql

@ -88,7 +88,7 @@ $$
-- in case of running the upgrade script a second time:
IF NOT (SELECT exists(SELECT FROM pg_tables WHERE tablename = 'old_edge_event')) THEN
ALTER TABLE edge_event RENAME TO old_edge_event;
CREATE INDEX IF NOT EXISTS idx_old_blob_entity_created_time_tmp ON old_blob_entity(created_time);
CREATE INDEX IF NOT EXISTS idx_old_edge_event_created_time_tmp ON old_edge_event(created_time);
ALTER INDEX IF EXISTS idx_edge_event_tenant_id_and_created_time RENAME TO idx_old_edge_event_tenant_id_and_created_time;
FOR table_partition IN SELECT tablename AS name, split_part(tablename, '_', 3) AS partition_ts

Loading…
Cancel
Save