Browse Source

Refactoring code and optimize import

pull/7564/head
Andrii Landiak 4 years ago
parent
commit
fba0cd031b
  1. 4
      application/src/main/data/upgrade/3.4.1/schema_update.sql

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

@ -95,7 +95,6 @@ $$
END;
$$;
CREATE TABLE IF NOT EXISTS edge_event (
id uuid NOT NULL,
created_time bigint NOT NULL,
@ -110,7 +109,6 @@ CREATE TABLE IF NOT EXISTS edge_event (
) PARTITION BY RANGE (created_time);
CREATE INDEX IF NOT EXISTS idx_edge_event_tenant_id_and_created_time ON edge_event(tenant_id, created_time DESC);
CREATE OR REPLACE PROCEDURE migrate_edge_event(IN start_time_ms BIGINT, IN end_time_ms BIGINT, IN partition_size_ms BIGINT)
LANGUAGE plpgsql AS
$$
@ -132,4 +130,4 @@ BEGIN
FROM old_edge_event
WHERE created_time >= start_time_ms AND created_time < end_time_ms;
END;
$$;
$$;

Loading…
Cancel
Save