set version_seq cache to 1

This commit is contained in:
YevhenBondarenko 2024-07-29 21:31:14 +02:00
parent 922847baf6
commit c619be45b6
4 changed files with 8 additions and 8 deletions

View File

@ -16,8 +16,8 @@
-- KV VERSIONING UPDATE START
CREATE SEQUENCE IF NOT EXISTS attribute_kv_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS attribute_kv_version_seq cache 1;
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1;
ALTER TABLE attribute_kv ADD COLUMN version bigint default 0;
ALTER TABLE ts_kv_latest ADD COLUMN version bigint default 0;
@ -26,7 +26,7 @@ ALTER TABLE ts_kv_latest ADD COLUMN version bigint default 0;
-- RELATION VERSIONING UPDATE START
CREATE SEQUENCE IF NOT EXISTS relation_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS relation_version_seq cache 1;
ALTER TABLE relation ADD COLUMN version bigint default 0;
-- RELATION VERSIONING UPDATE END

View File

@ -102,7 +102,7 @@ CREATE TABLE IF NOT EXISTS audit_log (
action_failure_details varchar(1000000)
) PARTITION BY RANGE (created_time);
CREATE SEQUENCE IF NOT EXISTS attribute_kv_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS attribute_kv_version_seq cache 1;
CREATE TABLE IF NOT EXISTS attribute_kv (
entity_id uuid,
@ -420,7 +420,7 @@ CREATE TABLE IF NOT EXISTS error_event (
e_error varchar
) PARTITION BY RANGE (ts);
CREATE SEQUENCE IF NOT EXISTS relation_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS relation_version_seq cache 1;
CREATE TABLE IF NOT EXISTS relation (
from_id uuid,
@ -544,7 +544,7 @@ CREATE TABLE IF NOT EXISTS entity_view (
CONSTRAINT entity_view_external_id_unq_key UNIQUE (tenant_id, external_id)
);
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1;
CREATE TABLE IF NOT EXISTS ts_kv_latest
(

View File

@ -34,7 +34,7 @@ CREATE TABLE IF NOT EXISTS key_dictionary (
CONSTRAINT key_dictionary_id_pkey PRIMARY KEY (key)
);
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1;
CREATE TABLE IF NOT EXISTS ts_kv_latest (
entity_id uuid NOT NULL,

View File

@ -14,7 +14,7 @@
-- limitations under the License.
--
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1000;
CREATE SEQUENCE IF NOT EXISTS ts_kv_latest_version_seq cache 1;
CREATE TABLE IF NOT EXISTS ts_kv_latest
(