CREATE TABLE tmp_secured_entity (uuid VARCHAR(36) DEFAULT uuid_generate_v4() NOT NULL, search_id VARCHAR(36) NOT NULL, code VARCHAR(255) NOT NULL, created TIMESTAMP WITHOUT TIME ZONE DEFAULT NOW() NOT NULL, CONSTRAINT tmp_secured_entity_pkey PRIMARY KEY (uuid));

CREATE INDEX tmp_secured_entity_search_id_idx ON tmp_secured_entity(search_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-25155_secured_tmp-rebuild', 'a.rouaguebe', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 885, '9:00f03f489fa2cbb2b73c9f90cddb0a78', 'createTable tableName=tmp_secured_entity; createIndex indexName=tmp_secured_entity_search_id_idx, tableName=tmp_secured_entity', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-26054_20241101_build::TarikFA.
CREATE TABLE billing_purchase_order (id BIGINT NOT NULL, version INTEGER, creator VARCHAR(100), created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updater VARCHAR(100), updated TIMESTAMP WITHOUT TIME ZONE, code VARCHAR(255), description VARCHAR(255), number VARCHAR(100) NOT NULL, start_date TIMESTAMP WITHOUT TIME ZONE, end_date TIMESTAMP WITHOUT TIME ZONE, delivery_date TIMESTAMP WITHOUT TIME ZONE, account_level VARCHAR(50) NOT NULL, seller_id BIGINT, customer_id BIGINT, customer_account_id BIGINT, billing_account_id BIGINT, CONSTRAINT billing_purchase_order_pkey PRIMARY KEY (id), UNIQUE (number));

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-26054_20241101_build', 'TarikFA.', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 887, '9:8ceec9126a03b1988d4717281b0a1f46', 'createTable tableName=billing_purchase_order', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-22676-rebuild::AndriusKarpavicius
CREATE TABLE adm_endpoint (id BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL, version INTEGER, disabled INTEGER DEFAULT 0, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, description VARCHAR(255), code VARCHAR(255), creator VARCHAR(255), updater VARCHAR(255), script_id BIGINT NOT NULL, secured INTEGER DEFAULT 1 NOT NULL, synchronous INTEGER DEFAULT 0 NOT NULL, method VARCHAR(10) NOT NULL, returned_variable_name VARCHAR(50), returned_value_example VARCHAR(500), jsonata_transformer VARCHAR(255), serialize_result INTEGER DEFAULT 0 NOT NULL, content_type VARCHAR(16) DEFAULT 'application/json' NOT NULL, base_path VARCHAR(30) NOT NULL, path VARCHAR(255), CONSTRAINT adm_endpoint_pkey PRIMARY KEY (id), UNIQUE (code));

CREATE TABLE adm_endpoint_path_parameter (endpoint_id BIGINT NOT NULL, script_parameter VARCHAR(25) NOT NULL, position INTEGER NOT NULL);

ALTER TABLE adm_endpoint_path_parameter ADD CONSTRAINT pk_adm_endpoint_path_parameter PRIMARY KEY (endpoint_id, script_parameter);

ALTER TABLE adm_endpoint_path_parameter
            ADD CONSTRAINT adm_endpoint_path_parameter_pos_gt_zero
            CHECK (position >= 0);

CREATE TABLE adm_endpoint_parameters (endpoint_id BIGINT NOT NULL, script_parameter VARCHAR(50) NOT NULL, parameter_name VARCHAR(50), multivalued INTEGER DEFAULT 0 NOT NULL, default_value VARCHAR(255), value_required INTEGER DEFAULT 0 NOT NULL, description VARCHAR(255), example VARCHAR(500));

ALTER TABLE adm_endpoint_parameters ADD CONSTRAINT pk_adm_endpoint_parameters PRIMARY KEY (endpoint_id, script_parameter);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-22676-rebuild', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 889, '9:ac83a5c9c0bf004ba336c3d4b2bb5aae', 'createTable tableName=adm_endpoint; createTable tableName=adm_endpoint_path_parameter; addPrimaryKey constraintName=pk_adm_endpoint_path_parameter, tableName=adm_endpoint_path_parameter; sql; createTable tableName=adm_endpoint_parameters; addPrima...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-25643_20241206-rebuild::anasseh
CREATE TABLE ar_pre_authorization (id BIGINT NOT NULL, version INTEGER, created TIMESTAMP WITHOUT TIME ZONE, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), status VARCHAR(20) NOT NULL, transaction_date TIMESTAMP WITHOUT TIME ZONE NOT NULL, capture_date TIMESTAMP WITHOUT TIME ZONE, cancel_date TIMESTAMP WITHOUT TIME ZONE, reference VARCHAR(255) NOT NULL, amount numeric(23, 12) NOT NULL, amount_captured numeric(23, 12), error_detail VARCHAR(2000), customer_account_id BIGINT, card_payment_method_id BIGINT NOT NULL, payment_gateway_id BIGINT NOT NULL, CONSTRAINT pre_authorization_pkey PRIMARY KEY (id), UNIQUE (reference));

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-25643_20241206-rebuild', 'anasseh', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 891, '9:d292d51387af665236a887efac2e8c62', 'createTable tableName=ar_pre_authorization', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-5220_20241205-tbl-rebuild::AbdellatifBARI
CREATE TABLE billing_subscriptions_purchase_orders (subscription_id BIGINT NOT NULL, purchase_order_id BIGINT NOT NULL);

CREATE TABLE billing_invoice_lines_subscriptions (invoice_line_id BIGINT NOT NULL, subscription_id BIGINT NOT NULL);

CREATE TABLE billing_invoices_purchase_orders (invoice_id BIGINT NOT NULL, purchase_order_id BIGINT NOT NULL);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-5220_20241205-tbl-rebuild', 'AbdellatifBARI', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 893, '9:98c4ef58e9c4ca32167229a3dfff7979', 'createTable tableName=billing_subscriptions_purchase_orders; createTable tableName=billing_invoice_lines_subscriptions; createTable tableName=billing_invoices_purchase_orders', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-31655_20250701_rebuild::zelmeliani
CREATE TABLE dunning_settings_invoice_code_type (dunning_settings_id BIGINT, untdid_1001_invoice_code_type_id BIGINT);

ALTER TABLE dunning_settings_invoice_code_type ADD CONSTRAINT dunning_settings_invoice_code_type_pkey PRIMARY KEY (dunning_settings_id, untdid_1001_invoice_code_type_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-31655_20250701_rebuild', 'zelmeliani', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 895, '9:e27cd373d294a98162f5d103db67111a', 'createTable tableName=dunning_settings_invoice_code_type; addPrimaryKey constraintName=dunning_settings_invoice_code_type_pkey, tableName=dunning_settings_invoice_code_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-34243-20251011-tbl::andrius
CREATE TABLE rating_indexation (id BIGINT NOT NULL, version INTEGER, disabled INTEGER DEFAULT 0 NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), code VARCHAR(255) NOT NULL, description VARCHAR(255), description_i18n JSONB, long_description_i18n JSONB, status VARCHAR(20) NOT NULL, uuid VARCHAR(60) NOT NULL, cf_values JSONB, CONSTRAINT rating_indexation_pkey PRIMARY KEY (id), CONSTRAINT uk_rating_indexation_code UNIQUE (code));

CREATE TABLE rating_indexation_value (id BIGINT NOT NULL, version INTEGER, disabled INTEGER DEFAULT 0 NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), indexation_id BIGINT NOT NULL, valid_from TIMESTAMP WITHOUT TIME ZONE, valid_to TIMESTAMP WITHOUT TIME ZONE, value numeric(23, 12) NOT NULL, status VARCHAR(20) NOT NULL, publication_date TIMESTAMP WITHOUT TIME ZONE, publisher VARCHAR(100), uuid VARCHAR(60) NOT NULL, cf_values JSONB, CONSTRAINT rating_indexation_value_pkey PRIMARY KEY (id));

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-34243-20251011-tbl', 'andrius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 897, '9:f43d8ff950d953269846092190a5f008', 'createTable tableName=rating_indexation; createTable tableName=rating_indexation_value', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-32171-20251015-tbl::andrius
CREATE TABLE rating_indexation_formula (id BIGINT NOT NULL, version INTEGER, disabled INTEGER DEFAULT 0 NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), code VARCHAR(255) NOT NULL, description VARCHAR(255), description_i18n JSONB, long_description_i18n JSONB, status VARCHAR(20) NOT NULL, invariant numeric(23, 12) NOT NULL, rounding_mode VARCHAR(20), rounding_precision INTEGER, uuid VARCHAR(60) NOT NULL, cf_values JSONB, CONSTRAINT rating_indexation_formula_pkey PRIMARY KEY (id), CONSTRAINT uk_rating_indexation_formula_code UNIQUE (code));

CREATE TABLE rating_indexation_formula_cmp (id BIGINT NOT NULL, version INTEGER, formula_id BIGINT NOT NULL, indexation_id BIGINT NOT NULL, factor numeric(23, 12) NOT NULL, CONSTRAINT rating_indexation_formula_cmp_pkey PRIMARY KEY (id));

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-32171-20251015-tbl', 'andrius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 899, '9:428dbf55a84093b7cae47cb0fa292d7d', 'createTable tableName=rating_indexation_formula; createTable tableName=rating_indexation_formula_cmp', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-32186-20251112-tbl::andrius
CREATE TABLE rating_indexation_batch (id BIGINT NOT NULL, version INTEGER, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), uuid VARCHAR(60) NOT NULL, description TEXT, status VARCHAR(20) NOT NULL, status_message TEXT, last_job_execution_id BIGINT, scheduled_execution_date TIMESTAMP WITHOUT TIME ZONE, target_index_value_date TIMESTAMP WITHOUT TIME ZONE NOT NULL, cf_values JSONB, CONSTRAINT rating_indexation_batch_pkey PRIMARY KEY (id), CONSTRAINT uk_rating_indexation_batch_uuid UNIQUE (uuid));

CREATE TABLE rating_price_indexation (id BIGINT NOT NULL, version INTEGER, created TIMESTAMP WITHOUT TIME ZONE NOT NULL, updated TIMESTAMP WITHOUT TIME ZONE, creator VARCHAR(100), updater VARCHAR(100), indexation_batch_id BIGINT NOT NULL, status VARCHAR(20) NOT NULL, status_message TEXT, contract_item_id BIGINT NOT NULL, reference_price VARCHAR(20), reference_date TIMESTAMP WITHOUT TIME ZONE, reference_price_version_id BIGINT, computed_adjustment_factor numeric(23, 12), applied_adjustment_factor numeric(23, 12), source_price_version_id BIGINT, source_price_version_end_date TIMESTAMP WITHOUT TIME ZONE, target_price_version_id BIGINT, CONSTRAINT rating_price_indexation_pkey PRIMARY KEY (id));

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-32186-20251112-tbl', 'andrius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 901, '9:fd6391d75576a5d34511931c5fc81422', 'createTable tableName=rating_indexation_batch; createTable tableName=rating_price_indexation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-def-val-1::AndriusKarpavicius
ALTER TABLE job_execution ALTER COLUMN  id SET DEFAULT nextval('job_execution_seq');

ALTER SEQUENCE job_execution_seq OWNED BY job_execution.id;

ALTER TABLE rating_edr ALTER COLUMN  id SET DEFAULT nextval('rating_edr_seq');

ALTER SEQUENCE rating_edr_seq OWNED BY rating_edr.id;

ALTER TABLE billing_rated_transaction ALTER COLUMN  id SET DEFAULT nextval('billing_rated_transaction_seq');

ALTER SEQUENCE billing_rated_transaction_seq OWNED BY billing_rated_transaction.id;

ALTER TABLE billing_invoice ALTER COLUMN  id SET DEFAULT nextval('billing_invoice_seq');

ALTER SEQUENCE billing_invoice_seq OWNED BY billing_invoice.id;

ALTER TABLE billing_invoice_agregate ALTER COLUMN  id SET DEFAULT nextval('billing_invoice_agregate_seq');

ALTER SEQUENCE billing_invoice_agregate_seq OWNED BY billing_invoice_agregate.id;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-def-val-1', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 903, '9:2458b53dab7bcb01d992538eb9660ad5', 'addDefaultValue columnName=id, tableName=job_execution; addDefaultValue columnName=id, tableName=rating_edr; addDefaultValue columnName=id, tableName=billing_rated_transaction; addDefaultValue columnName=id, tableName=billing_invoice; addDefaultVa...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-def-val-2::AbdelmounaimAkadid
ALTER TABLE billing_service_instance ALTER COLUMN  initial_term_type SET DEFAULT 'RECURRING';

ALTER TABLE cat_service_template ALTER COLUMN  initial_term_type SET DEFAULT 'RECURRING';

ALTER TABLE cat_offer_template ALTER COLUMN  initial_term_type SET DEFAULT 'RECURRING';

ALTER TABLE billing_subscription ALTER COLUMN  initial_term_type SET DEFAULT 'RECURRING';

ALTER TABLE cat_unit_of_measure ALTER COLUMN  multiplicator SET DEFAULT 1;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-def-val-2', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 905, '9:49c594d2b4c09462b7650e88207a4598', 'addDefaultValue columnName=initial_term_type, tableName=billing_service_instance; addDefaultValue columnName=initial_term_type, tableName=cat_service_template; addDefaultValue columnName=initial_term_type, tableName=cat_offer_template; addDefaultV...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-422::AndriusKarpavicius
ALTER TABLE cat_discount_plan_item ADD CONSTRAINT uk_1q0ayvmttpoo254r1v8hl0kjn UNIQUE (discount_plan_id, code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-422', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 907, '9:442fe72ad46248de2ea2e4f6f68156ed', 'addUniqueConstraint constraintName=uk_1q0ayvmttpoo254r1v8hl0kjn, tableName=cat_discount_plan_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-423::AndriusKarpavicius
ALTER TABLE billing_invoice_template ADD CONSTRAINT uk_23jasgq9b22ry02e4tl773c8i UNIQUE (file_name);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-423', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 909, '9:2b4ead012ea1766af687873dbeb58561', 'addUniqueConstraint constraintName=uk_23jasgq9b22ry02e4tl773c8i, tableName=billing_invoice_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-424::AndriusKarpavicius
ALTER TABLE adm_notification ADD CONSTRAINT uk_3ycqdueceguo8a0s21h1gkcqw UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-424', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 911, '9:49cf4369ce9c9a506d540f745aa6eee8', 'addUniqueConstraint constraintName=uk_3ycqdueceguo8a0s21h1gkcqw, tableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-425::AndriusKarpavicius
ALTER TABLE cat_hour_in_day ADD CONSTRAINT uk_46j9b2xyivfvbibad362o1dlr UNIQUE (hour, min);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-425', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 913, '9:0c16b68adf4fb69e44a31004e9bf5691', 'addUniqueConstraint constraintName=uk_46j9b2xyivfvbibad362o1dlr, tableName=cat_hour_in_day', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-426::AndriusKarpavicius
ALTER TABLE cat_discount_plan ADD CONSTRAINT uk_4qps24of1qada6uyq7lh5ua0t UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-426', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 915, '9:d4b695b3740fe01cb55eb9c88b9afcfc', 'addUniqueConstraint constraintName=uk_4qps24of1qada6uyq7lh5ua0t, tableName=cat_discount_plan', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-427::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT uk_52v1uwefc75bgqrj5encpyd9w UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-427', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 917, '9:71f3f9422630e5f1b6fa6668991b3729', 'addUniqueConstraint constraintName=uk_52v1uwefc75bgqrj5encpyd9w, tableName=cat_price_plan_matrix', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-428::AndriusKarpavicius
ALTER TABLE adm_notif_im_user ADD CONSTRAINT uk_6g7agb8u5whyi5ukj627l2qc9 UNIQUE (users_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-428', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 919, '9:25d87d5d50257cff3bc7c14fbfe0e328', 'addUniqueConstraint constraintName=uk_6g7agb8u5whyi5ukj627l2qc9, tableName=adm_notif_im_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-429::AndriusKarpavicius
ALTER TABLE com_contact_coords ADD CONSTRAINT uk_6lkh6xsel27sl2bp1vgdhj0hm UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-429', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 921, '9:2ce11515ad2ea4a4dce41f2743c6e0aa', 'addUniqueConstraint constraintName=uk_6lkh6xsel27sl2bp1vgdhj0hm, tableName=com_contact_coords', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-430::AndriusKarpavicius
ALTER TABLE cat_service_template ADD CONSTRAINT uk_6u1l58s8u672jj9sqb9tgqdbu UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-430', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 923, '9:3e302933d3da77c9be70bb933055c9c6', 'addUniqueConstraint constraintName=uk_6u1l58s8u672jj9sqb9tgqdbu, tableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-432::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT uk_9fnf93rp352nkw2kpd4oq5xp9 UNIQUE (code, valid_from, valid_to);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-432', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 925, '9:6ef0808159b1aec4635c3bacc040aed9', 'addUniqueConstraint constraintName=uk_9fnf93rp352nkw2kpd4oq5xp9, tableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-433::AndriusKarpavicius
ALTER TABLE crm_customer_brand ADD CONSTRAINT uk_bf0bq2sqe9fefsoud50t0fbjp UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-433', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 927, '9:f1fa7aba830f3bcbd5b7f6aa20935675', 'addUniqueConstraint constraintName=uk_bf0bq2sqe9fefsoud50t0fbjp, tableName=crm_customer_brand', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-435::AndriusKarpavicius
ALTER TABLE billing_subscrip_termin_reason ADD CONSTRAINT uk_cygiejvomk5mi5v4o04hf4uny UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-435', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 929, '9:f778ef80bf5302aa1c4a93c7a2458e65', 'addUniqueConstraint constraintName=uk_cygiejvomk5mi5v4o04hf4uny, tableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-436::AndriusKarpavicius
ALTER TABLE billing_cycle ADD CONSTRAINT uk_cyq7rhfwc1wqvxbj2tukw34f2 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-436', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 931, '9:5d2540e277e1eb194ccd8e167db3e79d', 'addUniqueConstraint constraintName=uk_cyq7rhfwc1wqvxbj2tukw34f2, tableName=billing_cycle', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-438::AndriusKarpavicius
ALTER TABLE adm_currency ADD CONSTRAINT uk_dqcyys6yxxl4onj137n9c1nwu UNIQUE (currency_code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-438', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 933, '9:c542ba820ca516648cd2f96f10e8f165', 'addUniqueConstraint constraintName=uk_dqcyys6yxxl4onj137n9c1nwu, tableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-439::AndriusKarpavicius
ALTER TABLE com_contact_com_message ADD CONSTRAINT uk_e1trke21afbfr3v8wqnsks2is UNIQUE (messages_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-439', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 935, '9:7dc6895cf3fba5fe3d364a52d16db3df', 'addUniqueConstraint constraintName=uk_e1trke21afbfr3v8wqnsks2is, tableName=com_contact_com_message', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-440::AndriusKarpavicius
ALTER TABLE cat_triggered_edr ADD CONSTRAINT uk_e5epl6nn8r6uyegu6ytx0c3op UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-440', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 937, '9:b0133cf9be0f677ce60d6f8eeb6948fb', 'addUniqueConstraint constraintName=uk_e5epl6nn8r6uyegu6ytx0c3op, tableName=cat_triggered_edr', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-441::AndriusKarpavicius
ALTER TABLE com_sender_config ADD CONSTRAINT uk_e9tdxu2w5ebts1p1nr1ejqbgp UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-441', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 939, '9:01a408fb5ae364e22f35bf98c64f1a0c', 'addUniqueConstraint constraintName=uk_e9tdxu2w5ebts1p1nr1ejqbgp, tableName=com_sender_config', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-442::AndriusKarpavicius
ALTER TABLE billing_tax ADD CONSTRAINT uk_ej17p1cs8977u8njoppj4ebug UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-442', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 941, '9:37ca3fe2cb6c0e2442c51ba31011f94d', 'addUniqueConstraint constraintName=uk_ej17p1cs8977u8njoppj4ebug, tableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-443::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT uk_crm_provider UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-443', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 943, '9:abde82911621a1072ba60cc42911b597', 'addUniqueConstraint constraintName=uk_crm_provider, tableName=crm_provider', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-445::AndriusKarpavicius
ALTER TABLE adm_inbound_request ADD CONSTRAINT uk_fg8lvusnsfih36f76coxmh8qi UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-445', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 945, '9:481d2b46949f070bee4d3879f7a9e69a', 'addUniqueConstraint constraintName=uk_fg8lvusnsfih36f76coxmh8qi, tableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-446::AndriusKarpavicius
ALTER TABLE cat_day_in_year ADD CONSTRAINT uk_gm4w28fbb5i1t0403tjbjyjrq UNIQUE (day, month);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-446', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 947, '9:dc006f0dc79133fcce198efcdd5aac3b', 'addUniqueConstraint constraintName=uk_gm4w28fbb5i1t0403tjbjyjrq, tableName=cat_day_in_year', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-447::AndriusKarpavicius
ALTER TABLE com_campaign ADD CONSTRAINT uk_h1vbmdpl6hby6wefd9isqht8 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-447', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 949, '9:9b6fedf37b4180d2cde53894c19feb6a', 'addUniqueConstraint constraintName=uk_h1vbmdpl6hby6wefd9isqht8, tableName=com_campaign', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-448::AndriusKarpavicius
ALTER TABLE com_msg_var_value ADD CONSTRAINT uk_i4iy89rb3qcvhd7qivhjvw2mo UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-448', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 951, '9:4a4faa31750b090a23c0201549292afe', 'addUniqueConstraint constraintName=uk_i4iy89rb3qcvhd7qivhjvw2mo, tableName=com_msg_var_value', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-449::AndriusKarpavicius
ALTER TABLE com_msg_tmpl_variable ADD CONSTRAINT uk_ie5npbxx0nxnpogq73fdsi9fp UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-449', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 953, '9:6d1e8ed7078817eea093ad0b8b472412', 'addUniqueConstraint constraintName=uk_ie5npbxx0nxnpogq73fdsi9fp, tableName=com_msg_tmpl_variable', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-450::AndriusKarpavicius
ALTER TABLE crm_customer_category ADD CONSTRAINT uk_ila682ivfyhhi6dfk9yfuahr UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-450', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 955, '9:a90f2ea28331de6e90f78021b3867619', 'addUniqueConstraint constraintName=uk_ila682ivfyhhi6dfk9yfuahr, tableName=crm_customer_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-451::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT cat_offer_template_uk UNIQUE (code, valid_from, valid_to);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-451', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 957, '9:1bb60364d6ab05ee6919833d7cd94abb', 'addUniqueConstraint constraintName=cat_offer_template_uk, tableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-452::AndriusKarpavicius
ALTER TABLE billing_invoice_template ADD CONSTRAINT uk_k9ha8me5f8rka8uqrgempqwuo UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-452', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 959, '9:4056d73ee712a3786c971f1ff84328e0', 'addUniqueConstraint constraintName=uk_k9ha8me5f8rka8uqrgempqwuo, tableName=billing_invoice_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-454::AndriusKarpavicius
ALTER TABLE adm_title ADD CONSTRAINT uk_lqvhsn08tpoq8kiy1qdc8j6ms UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-454', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 961, '9:dbd53147ba25addeddcad05eb0891668', 'addUniqueConstraint constraintName=uk_lqvhsn08tpoq8kiy1qdc8j6ms, tableName=adm_title', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-455::AndriusKarpavicius
ALTER TABLE cat_wallet_template ADD CONSTRAINT uk_m7m3ix32qoai9fv3xncoys8c9 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-455', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 963, '9:67c79b60800a67e20a9a715b397bf170', 'addUniqueConstraint constraintName=uk_m7m3ix32qoai9fv3xncoys8c9, tableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-456::AndriusKarpavicius
ALTER TABLE billing_counter_period ADD CONSTRAINT uk_mns6ldfxmurbo0j4y890h4ipe UNIQUE (counter_instance_id, period_start_date);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-456', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 965, '9:d38c80e7330903566e3b953c4579fa73', 'addUniqueConstraint constraintName=uk_mns6ldfxmurbo0j4y890h4ipe, tableName=billing_counter_period', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-457::AndriusKarpavicius
ALTER TABLE adm_notif_email_user ADD CONSTRAINT uk_mp4h7biod5wtjo1x3yp80q3um UNIQUE (users_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-457', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 967, '9:4d6e33df7ccda6fec2473952de3b078b', 'addUniqueConstraint constraintName=uk_mp4h7biod5wtjo1x3yp80q3um, tableName=adm_notif_email_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-458::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT uk_crm_seller UNIQUE (code);

ALTER TABLE crm_customer ADD CONSTRAINT uk_crm_customer UNIQUE (code);

ALTER TABLE ar_customer_account ADD CONSTRAINT uk_ar_customer_account UNIQUE (code);

ALTER TABLE billing_billing_account ADD CONSTRAINT uk_billing_billing_account UNIQUE (code);

ALTER TABLE billing_user_account ADD CONSTRAINT uk_billing_user_account UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-458', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 969, '9:5bf6d80313a13b6950f305070903ca6f', 'addUniqueConstraint constraintName=uk_crm_seller, tableName=crm_seller; addUniqueConstraint constraintName=uk_crm_customer, tableName=crm_customer; addUniqueConstraint constraintName=uk_ar_customer_account, tableName=ar_customer_account; addUnique...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-459::AndriusKarpavicius
ALTER TABLE cat_calendar ADD CONSTRAINT uk_my3lp1lx5r0jeftgekg48nf89 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-459', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 971, '9:c6833bc0c0dfffea2e28d7a9f072b886', 'addUniqueConstraint constraintName=uk_my3lp1lx5r0jeftgekg48nf89, tableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-460::AndriusKarpavicius
ALTER TABLE cat_charge_template ADD CONSTRAINT uk_n2bbtllrbgypse7qh9h3w6uy8 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-460', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 973, '9:708f1855c88d0ddab4af65a08736b8eb', 'addUniqueConstraint constraintName=uk_n2bbtllrbgypse7qh9h3w6uy8, tableName=cat_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-461::AndriusKarpavicius
ALTER TABLE adm_user ADD CONSTRAINT uk_n9pt70038bt2ufk8x4pc7gr3l UNIQUE (username);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-461', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 975, '9:865f3393a490c2b498ec266d963ff1d1', 'addUniqueConstraint constraintName=uk_n9pt70038bt2ufk8x4pc7gr3l, tableName=adm_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-462::AndriusKarpavicius
ALTER TABLE crm_provider_contact ADD CONSTRAINT uk_o5gj61ogdrv2lqs68uxkswvn2 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-462', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 977, '9:c49594744d80c45194365c38b0e88977', 'addUniqueConstraint constraintName=uk_o5gj61ogdrv2lqs68uxkswvn2, tableName=crm_provider_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-465::AndriusKarpavicius
ALTER TABLE rm_service_param_template ADD CONSTRAINT uk_ojqvlgvkqu3rnvm79bekf7k0b UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-465', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 979, '9:da26fc5720c5badd2b894a43b463c7d7', 'addUniqueConstraint constraintName=uk_ojqvlgvkqu3rnvm79bekf7k0b, tableName=rm_service_param_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-466::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT uk_olfbcf2pmj73v5xdhnbp5i5gn UNIQUE (temporary_invoice_number);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-466', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 981, '9:0c8b733cc4140d4284f61244a7e28c6e', 'addUniqueConstraint constraintName=uk_olfbcf2pmj73v5xdhnbp5i5gn, tableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-467::AndriusKarpavicius
ALTER TABLE cat_counter_template ADD CONSTRAINT uk_p12oo75s9gryyvaw53y06xoh3 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-467', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 983, '9:bb5f0da1f97b0656a684d5223905c1dd', 'addUniqueConstraint constraintName=uk_p12oo75s9gryyvaw53y06xoh3, tableName=cat_counter_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-468::AndriusKarpavicius
ALTER TABLE ar_occ_template ADD CONSTRAINT uk_p2nr7j9ik6ri37gmd8o1hojhb UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-468', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 985, '9:07ccdb3b3835dcd3d0442e393f29871c', 'addUniqueConstraint constraintName=uk_p2nr7j9ik6ri37gmd8o1hojhb, tableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-469::AndriusKarpavicius
ALTER TABLE dwh_chart ADD CONSTRAINT uk_pehkecunepva2oq9dx9faajhg UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-469', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 987, '9:8c29fb242a0c416b3c04bb96e8c7e9fd', 'addUniqueConstraint constraintName=uk_pehkecunepva2oq9dx9faajhg, tableName=dwh_chart', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-470::AndriusKarpavicius
ALTER TABLE billing_invoice_sub_cat ADD CONSTRAINT uk_pxj2js3rc3kkeo9bqewgai3yl UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-470', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 989, '9:52bcf067796d2d4211ef760a7e0baf49', 'addUniqueConstraint constraintName=uk_pxj2js3rc3kkeo9bqewgai3yl, tableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-471::AndriusKarpavicius
ALTER TABLE billing_invoice_cat ADD CONSTRAINT uk_qck1376ll09l9itat2bcomhpl UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-471', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 991, '9:74f0ddfe66b62e20b2045c3557e273b1', 'addUniqueConstraint constraintName=uk_qck1376ll09l9itat2bcomhpl, tableName=billing_invoice_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-473::AndriusKarpavicius
ALTER TABLE com_message_template ADD CONSTRAINT uk_r0shu06cdbx57w86f2h57t66p UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-473', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 993, '9:d87e440bbf1bfc2876f4c594b59ddaec', 'addUniqueConstraint constraintName=uk_r0shu06cdbx57w86f2h57t66p, tableName=com_message_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-474::AndriusKarpavicius
ALTER TABLE dwh_measurable_quant ADD CONSTRAINT uk_r7ba8gp6uk4ncc8q1a7rrt3fi UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-474', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 995, '9:b26b0b8ca731ad84bc51408003d999cc', 'addUniqueConstraint constraintName=uk_r7ba8gp6uk4ncc8q1a7rrt3fi, tableName=dwh_measurable_quant', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-476::AndriusKarpavicius
ALTER TABLE bi_job ADD CONSTRAINT uk_stegw04bvx8bxued1pkncywxl UNIQUE (name);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-476', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 997, '9:2496b99615f30b5d4993f35247db6efe', 'addUniqueConstraint constraintName=uk_stegw04bvx8bxued1pkncywxl, tableName=bi_job', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-477::AndriusKarpavicius
ALTER TABLE billing_wallet ADD CONSTRAINT uk_billing_wallet UNIQUE (code, user_account_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-477', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 999, '9:5dc618e0b66eb2a68d2d69ab1991743b', 'addUniqueConstraint constraintName=uk_billing_wallet, tableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-478::AndriusKarpavicius
ALTER TABLE ar_credit_category ADD CONSTRAINT uk_ar_credit_category UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-478', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1001, '9:d503bd900eda7d29d90d464d5039b3cb', 'addUniqueConstraint constraintName=uk_ar_credit_category, tableName=ar_credit_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-479::AndriusKarpavicius
ALTER TABLE meveo_filter ADD CONSTRAINT uk_meveo_filter UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-479', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1003, '9:e1cfb3291a72520f73c014365fe8f084', 'addUniqueConstraint constraintName=uk_meveo_filter, tableName=meveo_filter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-481::AndriusKarpavicius
ALTER TABLE meveo_script_instance ADD CONSTRAINT uk_meveo_script_instance UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-481', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1005, '9:401c768f70a251ca99745334fb797ea4', 'addUniqueConstraint constraintName=uk_meveo_script_instance, tableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-483::AndriusKarpavicius
ALTER TABLE com_meveo_instance ADD CONSTRAINT uk_p7r8cy3d1w7g8pir7rxq17071 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-483', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1007, '9:870354f371d614e8c98821fa9ee0fe31', 'addUniqueConstraint constraintName=uk_p7r8cy3d1w7g8pir7rxq17071, tableName=com_meveo_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-485::AndriusKarpavicius
ALTER TABLE meveo_job_instance ADD CONSTRAINT uk_meveo_job_instance UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-485', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1009, '9:65d2914e1708516142b648582ace5291', 'addUniqueConstraint constraintName=uk_meveo_job_instance, tableName=meveo_job_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-486::AndriusKarpavicius
ALTER TABLE meveo_timer ADD CONSTRAINT uk_q4ys10jgsw0px36rcvwdajh47 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-486', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1011, '9:2e80a202e3237c7eed50dab341822a8d', 'addUniqueConstraint constraintName=uk_q4ys10jgsw0px36rcvwdajh47, tableName=meveo_timer', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-488::AndriusKarpavicius
ALTER TABLE crm_custom_field_tmpl ADD CONSTRAINT uk_abfci88fr16lqf19cf961b08d UNIQUE (code, applies_to);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-488', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1013, '9:8ecd1e879bd6f6cd9c9b0394b1297777', 'addUniqueConstraint constraintName=uk_abfci88fr16lqf19cf961b08d, tableName=crm_custom_field_tmpl', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-489::AndriusKarpavicius
ALTER TABLE cust_cei ADD CONSTRAINT uk_cust_cei UNIQUE (code, cet_code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-489', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1015, '9:bbacf66941b6712788d932e976e21a14', 'addUniqueConstraint constraintName=uk_cust_cei, tableName=cust_cei', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-492::AndriusKarpavicius
ALTER TABLE meveo_module ADD CONSTRAINT uk_meveo_module UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-492', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1017, '9:88c94c513de7ef71a18956eaafb0744e', 'addUniqueConstraint constraintName=uk_meveo_module, tableName=meveo_module', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-493::AndriusKarpavicius
ALTER TABLE cat_offer_template_category ADD CONSTRAINT uk_cat_offer_template_category UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-493', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1019, '9:fb5dadb12eb18ddf8a87c114d50781c7', 'addUniqueConstraint constraintName=uk_cat_offer_template_category, tableName=cat_offer_template_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-494::AndriusKarpavicius
ALTER TABLE cat_offer_serv_templates ADD CONSTRAINT uk_cat_offer_serv_templates UNIQUE (offer_template_id, service_template_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-494', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1021, '9:47050d732b47e4c5075cb0fe6a554788', 'addUniqueConstraint constraintName=uk_cat_offer_serv_templates, tableName=cat_offer_serv_templates', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-496::AndriusKarpavicius
ALTER TABLE billing_invoice_type ADD CONSTRAINT uk_billing_invoice_type UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-496', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1023, '9:30312982604f0db5bf9bd6d1c447ba00', 'addUniqueConstraint constraintName=uk_billing_invoice_type, tableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-497::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT uk_billing_invoice UNIQUE (invoice_number, invoice_type_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-497', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1025, '9:64b403966f71baa67647942c7a1b811e', 'addUniqueConstraint constraintName=uk_billing_invoice, tableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-498::AndriusKarpavicius
ALTER TABLE wf_workflow ADD CONSTRAINT uk_j8v4x5olh5um1g7y5vnsayrka UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-498', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1027, '9:d9d63b5f4f2159a412d8a9c6de948bed', 'addUniqueConstraint constraintName=uk_j8v4x5olh5um1g7y5vnsayrka, tableName=wf_workflow', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-499::AndriusKarpavicius
ALTER TABLE cat_channel ADD CONSTRAINT uk_cat_channel UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-499', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1029, '9:eb64d236b0320a1790a7cb9679c76e93', 'addUniqueConstraint constraintName=uk_cat_channel, tableName=cat_channel', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-501::AndriusKarpavicius
ALTER TABLE ord_order ADD CONSTRAINT uk_ord_order UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-501', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1031, '9:4f015585c97ffbc46ac2120c69b97563', 'addUniqueConstraint constraintName=uk_ord_order, tableName=ord_order', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-502::AndriusKarpavicius
ALTER TABLE hierarchy_entity ADD CONSTRAINT uk_code_hierarchy UNIQUE (code, hierarchy_type);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-502', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1033, '9:9079b9ac63cbcd16f792466bc21c6be1', 'addUniqueConstraint constraintName=uk_code_hierarchy, tableName=hierarchy_entity', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-503::AndriusKarpavicius
ALTER TABLE cat_digital_resource ADD CONSTRAINT uk_digital_resource UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-503', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1035, '9:2c613a4dcc5632e52e5472e0e6587084', 'addUniqueConstraint constraintName=uk_digital_resource, tableName=cat_digital_resource', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-504::AndriusKarpavicius
ALTER TABLE cat_bundle_product_template ADD CONSTRAINT uk_cat_bundle_prod_tpl UNIQUE (product_template_id, bundle_template_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-504', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1037, '9:a54c211c5de146aac5575e17ea308bf9', 'addUniqueConstraint constraintName=uk_cat_bundle_prod_tpl, tableName=cat_bundle_product_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-506::AndriusKarpavicius
ALTER TABLE wf_decision_rule ADD CONSTRAINT uk_decision_rule_name_value UNIQUE (name, value);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-506', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1039, '9:7cd71ab053b0b21c01e1350de73d0f8d', 'addUniqueConstraint constraintName=uk_decision_rule_name_value, tableName=wf_decision_rule', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-507::AndriusKarpavicius
ALTER TABLE wf_transition ADD CONSTRAINT uk_wf_transition_uuid UNIQUE (uuid);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-507', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1041, '9:6b7c849ab4a5a53cfa38add10c839511', 'addUniqueConstraint constraintName=uk_wf_transition_uuid, tableName=wf_transition', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-508::AndriusKarpavicius
ALTER TABLE wf_action ADD CONSTRAINT uk_wf_action_uuid UNIQUE (uuid);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-508', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1043, '9:f06b2792cc7b9ed75e08ddcc60315bfb', 'addUniqueConstraint constraintName=uk_wf_action_uuid, tableName=wf_action', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-510::AndriusKarpavicius
ALTER TABLE ord_quote ADD CONSTRAINT uk_ord_quote UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-510', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1045, '9:382154fe91226bcafe08f5188bafbf71', 'addUniqueConstraint constraintName=uk_ord_quote, tableName=ord_quote', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-511::AndriusKarpavicius
ALTER TABLE billing_seq_invtyp_sell ADD CONSTRAINT uk_bill_seq_it_sell UNIQUE (seller_id, invoicetype_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-511', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1047, '9:397be91184423f68eafb8e9db1e66698', 'addUniqueConstraint constraintName=uk_bill_seq_it_sell, tableName=billing_seq_invtyp_sell', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-512::AndriusKarpavicius
ALTER TABLE cust_cet ADD CONSTRAINT uk_cust_cet UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-512', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1049, '9:da2025331cc6fd0a62fdb8aace422746', 'addUniqueConstraint constraintName=uk_cust_cet, tableName=cust_cet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-514::AndriusKarpavicius
ALTER TABLE crm_provider_pay_methods ADD CONSTRAINT uk_prov_pay_meth UNIQUE (provider_id, payment_method);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-514', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1051, '9:904acf808e9a8843b2d464e3b7048bb2', 'addUniqueConstraint constraintName=uk_prov_pay_meth, tableName=crm_provider_pay_methods', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-515::AndriusKarpavicius
ALTER TABLE billing_accounting_code ADD CONSTRAINT uk_billing_accounting_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-515', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1053, '9:bca6f6127ef0ba0c2c26ba382663db57', 'addUniqueConstraint constraintName=uk_billing_accounting_code, tableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-516::AndriusKarpavicius
ALTER TABLE dwh_journal_entries ADD CONSTRAINT uk_orinvacid UNIQUE (origin_id, invoice_number, accounting_code_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-516', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1055, '9:3e645f5ef1bedb861436d02040e7c4d4', 'addUniqueConstraint constraintName=uk_orinvacid, tableName=dwh_journal_entries', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-518::AndriusKarpavicius
ALTER TABLE com_contact ADD CONSTRAINT com_contact_email UNIQUE (email);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-518', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1057, '9:2fe71e8c8e9b33c00321adbb09fcb109', 'addUniqueConstraint constraintName=com_contact_email, tableName=com_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-519::AndriusKarpavicius
ALTER TABLE billing_finance_segment ADD UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-519', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1059, '9:c9353d209c4f87faa45873cc16ea8189', 'addUniqueConstraint tableName=billing_finance_segment', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-520::AndriusKarpavicius
ALTER TABLE billing_general_ledger ADD CONSTRAINT uk_billing_general_ledger_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-520', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1061, '9:7284f622e08e51c9a3efee5072c563b1', 'addUniqueConstraint constraintName=uk_billing_general_ledger_code, tableName=billing_general_ledger', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-521::AndriusKarpavicius
ALTER TABLE wf_status ADD CONSTRAINT uk_generic_wf_id_code_status UNIQUE (generic_wf_id, code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-521', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1063, '9:ebb426aa1be35d29a3fd9dee5bbe56a1', 'addUniqueConstraint constraintName=uk_generic_wf_id_code_status, tableName=wf_status', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-522::AndriusKarpavicius
ALTER TABLE adm_custom_generic_entity_code ADD CONSTRAINT uk_adm_custom_generic_entity_code_class UNIQUE (entity_class);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-522', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1065, '9:8d2c605def4f3ed0337854218351b391', 'addUniqueConstraint constraintName=uk_adm_custom_generic_entity_code_class, tableName=adm_custom_generic_entity_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-523::AndriusKarpavicius
ALTER TABLE wf_instance ADD CONSTRAINT uk_wf_instance_code_gwf_id_cet_code UNIQUE (entity_instance_code, generic_wf_id, target_cet_code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-523', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1067, '9:f93939a703f1d3631cf93100005c23f0', 'addUniqueConstraint constraintName=uk_wf_instance_code_gwf_id_cet_code, tableName=wf_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-524::AbdelmounaimAkadid
ALTER TABLE flat_file ADD CONSTRAINT uk_9fnf93rp352nkw2kpdbari6yr9 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-524', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1069, '9:5a8d238ce976449a596f5e7927f2b371', 'addUniqueConstraint constraintName=uk_9fnf93rp352nkw2kpdbari6yr9, tableName=flat_file', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-525::AbdelmounaimAkadid
ALTER TABLE adm_file_format ADD CONSTRAINT uk_9fnf93rp352nkw2kpdbari4xp9 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-525', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1071, '9:78c08fa6aaf69b40bd3d9ae3028970f4', 'addUniqueConstraint constraintName=uk_9fnf93rp352nkw2kpdbari4xp9, tableName=adm_file_format', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-526::AbdelmounaimAkadid
ALTER TABLE adm_file_type ADD CONSTRAINT uk_9fnf93rp352nkw2kpdbari5yr8 UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-526', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1073, '9:38d929431c63698ea4f32662599d5eda', 'addUniqueConstraint constraintName=uk_9fnf93rp352nkw2kpdbari5yr8, tableName=adm_file_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-527::AbdelmounaimAkadid
ALTER TABLE adm_language ADD CONSTRAINT "UniqueConstraint_adm__language_code" UNIQUE (language_code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-527', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1075, '9:d4b229d01f83e7d486c1ca42453bbbc3', 'addUniqueConstraint constraintName=UniqueConstraint_adm__language_code, tableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-528::AbdelmounaimAkadid
ALTER TABLE adm_language ADD CONSTRAINT "UniqueConstraint_adm_language__description_en" UNIQUE (description_en);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-528', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1077, '9:e693ba6bbcfe2d9677b0f9bba3d79670', 'addUniqueConstraint constraintName=UniqueConstraint_adm_language__description_en, tableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-529::AbdelmounaimAkadid
ALTER TABLE adm_currency ADD CONSTRAINT "UniqueConstraint_adm_currency__description_en" UNIQUE (description_en);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-529', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1079, '9:e4929f6dc0d3d9b8d5eb3e6bc12369e8', 'addUniqueConstraint constraintName=UniqueConstraint_adm_currency__description_en, tableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-531::AbdelmounaimAkadid
ALTER TABLE medina_access ADD CONSTRAINT uk_lca62y5gn9qo1e6jr84i9w3lr UNIQUE (acces_user_id, subscription_id, start_date, end_date);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-531', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1081, '9:07d529ad8a12deda7c1e5a8b95ad42ed', 'addUniqueConstraint constraintName=uk_lca62y5gn9qo1e6jr84i9w3lr, tableName=medina_access', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-532::AbdelmounaimAkadid
ALTER TABLE billing_tax_category ADD CONSTRAINT uk_billing_tax_category_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-532', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1083, '9:6d22c7c962d1e3dc3c950687768eb28f', 'addUniqueConstraint constraintName=uk_billing_tax_category_code, tableName=billing_tax_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-533::AbdelmounaimAkadid
ALTER TABLE billing_tax_class ADD CONSTRAINT uk_billing_tax_class_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-533', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1085, '9:2d36cee7c801fb2a126481151cb0c48c', 'addUniqueConstraint constraintName=uk_billing_tax_class_code, tableName=billing_tax_class', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-534::AbdelmounaimAkadid
ALTER TABLE ord_order_item ADD CONSTRAINT uk_order_item_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-534', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1087, '9:568ae8792c1a24903bf1c85acb0bac3e', 'addUniqueConstraint constraintName=uk_order_item_code, tableName=ord_order_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-535::AbdelmounaimAkadid
ALTER TABLE bi_data_collector ADD CONSTRAINT uk_bi_data_collector_code UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-535', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1089, '9:c8091eddfa16518e79e527507f17a560', 'addUniqueConstraint constraintName=uk_bi_data_collector_code, tableName=bi_data_collector', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-537::AbdelmounaimAkadid
ALTER TABLE wf_generic_action ADD CONSTRAINT uk_wf_generic_action_uuid UNIQUE (uuid);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-537', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1091, '9:e6427f9934df3e334fd97e60d511c51a', 'addUniqueConstraint constraintName=uk_wf_generic_action_uuid, tableName=wf_generic_action', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-538::AbdelmounaimAkadid
ALTER TABLE adm_country ADD CONSTRAINT "UniqueConstraint_adm__country_code" UNIQUE (country_code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-538', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1093, '9:a14160e2f1133124d014ef9711de2956', 'addUniqueConstraint constraintName=UniqueConstraint_adm__country_code, tableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-539::AbdelmounaimAkadid
ALTER TABLE cpq_service_template_tags ADD CONSTRAINT service_template_tag_pkey UNIQUE (service_template_id, tag_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-539', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1095, '9:8e49d13294ba7ce2c022a47d76d3fc2b', 'addUniqueConstraint constraintName=service_template_tag_pkey, tableName=cpq_service_template_tags', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-540::AbdelmounaimAkadid
ALTER TABLE cpq_product_discount_plan ADD CONSTRAINT cpq_product_discount_plan_pkey UNIQUE (product_id, discount_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-540', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1097, '9:ea9b6146bb6eca92f6fc562592b01e39', 'addUniqueConstraint constraintName=cpq_product_discount_plan_pkey, tableName=cpq_product_discount_plan', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-541::AbdelmounaimAkadid
ALTER TABLE cpq_product_version_services ADD CONSTRAINT cpq_product_services_pkey UNIQUE (product_version_id, service_template_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-541', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1099, '9:17f2642af749e9412bd1e02efdb66110', 'addUniqueConstraint constraintName=cpq_product_services_pkey, tableName=cpq_product_version_services', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-542::AbdelmounaimAkadid
ALTER TABLE cpq_quote_version ADD CONSTRAINT "uniquekey_pquote_id_cpq_quote_id,quote_version" UNIQUE (cpq_quote_id, quote_version);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-542', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1101, '9:ee52bb67aa0f355a8cad5153fb2bd73b', 'addUniqueConstraint constraintName=uniquekey_pquote_id_cpq_quote_id,quote_version, tableName=cpq_quote_version', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-543::AbdelmounaimAkadid
ALTER TABLE cpq_offer_component_tags ADD CONSTRAINT cpq_offer_component_tags_pkey UNIQUE (offer_component_id, tag_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-543', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1103, '9:04597ed856896cbddf004711680eba02', 'addUniqueConstraint constraintName=cpq_offer_component_tags_pkey, tableName=cpq_offer_component_tags', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-545::AbdelmounaimAkadid
ALTER TABLE cpq_attribute_charge ADD CONSTRAINT cpq_attribute_charge_pkey UNIQUE (charge_id, attribute_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-545', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1105, '9:3b16b6a8a3c853c0c566bed3cf5874e8', 'addUniqueConstraint constraintName=cpq_attribute_charge_pkey, tableName=cpq_attribute_charge', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-546::AbdelmounaimAkadid
ALTER TABLE cpq_price_plan_matrix_column ADD CONSTRAINT unique_code_ppm_version_id_pk UNIQUE (ppm_version_id, code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-546', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1107, '9:497188ed6e0ac626d94b47e6359b61e6', 'addUniqueConstraint constraintName=unique_code_ppm_version_id_pk, tableName=cpq_price_plan_matrix_column', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-547::ZBariki
ALTER TABLE generic_sequence ADD CONSTRAINT "uk_genericSeq_9fnf93rp352nkw2kpdbari17yr" UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-547', 'ZBariki', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1109, '9:7389bb52df19e8a64b09fe7ca9e55a94', 'addUniqueConstraint constraintName=uk_genericSeq_9fnf93rp352nkw2kpdbari17yr, tableName=generic_sequence', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-548::AbdelmounaimAkadid
ALTER TABLE report_query ADD CONSTRAINT uk_report_query_composed UNIQUE (code, creator, visibility);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-548', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1111, '9:9e8c09727342b61783ee520085fd6954', 'addUniqueConstraint constraintName=uk_report_query_composed, tableName=report_query', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-549::AbdelmounaimAkadid
ALTER TABLE dunning_settings ADD CONSTRAINT uk_dunning_settings UNIQUE (code);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-549', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1113, '9:13dc16a47d22f36a4769afda4da8085f', 'addUniqueConstraint constraintName=uk_dunning_settings, tableName=dunning_settings', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-550::AbdelmounaimAkadid
ALTER TABLE accounting_period ADD CONSTRAINT uc_accounting_period_year UNIQUE (accounting_period_year);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-550', 'AbdelmounaimAkadid', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1115, '9:c56cbd1a3cf87d5787dd04b86bdbb31b', 'addUniqueConstraint constraintName=uc_accounting_period_year, tableName=accounting_period', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-uk-551::hhanine
ALTER TABLE crm_provider_payment_plan_policy_pay_methods ADD CONSTRAINT uk_prov_paym_plan_policy_pay_meth UNIQUE (provider_id, payment_method);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-uk-551', 'hhanine', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1117, '9:13d495aafe6589608aec215dd852b67f', 'addUniqueConstraint constraintName=uk_prov_paym_plan_policy_pay_meth, tableName=crm_provider_payment_plan_policy_pay_methods', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-2973_20211110-rebuild-str-uk::AmineBENAICHA
ALTER TABLE dunning_action_instance ADD CONSTRAINT uk_dunning_action_instance_code UNIQUE (code, dunning_level_instance_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-2973_20211110-rebuild-str-uk', 'AmineBENAICHA', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1119, '9:225d6ac0b76a1881539808d8620d640b', 'addUniqueConstraint constraintName=uk_dunning_action_instance_code, tableName=dunning_action_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-4777_20200208-rebuild-str-uk::HichamELHALOUI
ALTER TABLE security_deposit_templat ADD CONSTRAINT uk_security_deposit_template_name UNIQUE (template_name);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-4777_20200208-rebuild-str-uk', 'HichamELHALOUI', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1121, '9:335728e66d93fb9e87cc339376ff877e', 'addUniqueConstraint constraintName=uk_security_deposit_template_name, tableName=security_deposit_templat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-9854-20220915-uk-rebuild::a.rouaguebe
ALTER TABLE com_contact_category_contact ADD CONSTRAINT com_contact_category_contact_pk UNIQUE (contact_id, contact_category_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-9854-20220915-uk-rebuild', 'a.rouaguebe', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1123, '9:7994f34755b5e30241fbff13058eada1', 'addUniqueConstraint constraintName=com_contact_category_contact_pk, tableName=com_contact_category_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#INTRD-12677_20221229-uk_rebuild::AdilElJaouhari
ALTER TABLE crm_provider_order_line_type ADD CONSTRAINT crm_provider_order_line_type_uk UNIQUE (provider_id, order_line_type);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#INTRD-12677_20221229-uk_rebuild', 'AdilElJaouhari', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1125, '9:708a47d3132e796eb6c0c7860636143c', 'addUniqueConstraint constraintName=crm_provider_order_line_type_uk, tableName=crm_provider_order_line_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::crm_address_book_contact-table-creation-uk-rebuild::abdelkader.bouazza
ALTER TABLE crm_address_book_contact ADD CONSTRAINT "id_address_book_id_contact_id_UNIQUE" UNIQUE (id, address_book_id, contact_id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('crm_address_book_contact-table-creation-uk-rebuild', 'abdelkader.bouazza', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1127, '9:a9f93a2c56cc4ca64d0127c3c9bdb409', 'addUniqueConstraint constraintName=id_address_book_id_contact_id_UNIQUE, tableName=crm_address_book_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::#rebuild-INTRD-16445_20230619-uk::aelmalki
ALTER TABLE crm_provider_manual_refund_methods ADD CONSTRAINT uk_prov_manual_refund_methods UNIQUE (provider_id, payment_method);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('#rebuild-INTRD-16445_20230619-uk', 'aelmalki', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1129, '9:d68e9262f87bcd23a118f2a91879448b', 'addUniqueConstraint constraintName=uk_prov_manual_refund_methods, tableName=crm_provider_manual_refund_methods', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::INTRD_20240220-uk::ME
CREATE UNIQUE INDEX billing_invoices_subscriptions__uk_subscription_id_not_null ON billing_invoices_subscriptions (invoice_id, subscription_id) WHERE subscription_id IS NOT NULL;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('INTRD_20240220-uk', 'ME', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1131, '9:2ec6d87cc5c89c75737b635d187503c1', 'sql', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-477::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_seller_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE crm_customer ADD CONSTRAINT fk_cust_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE ar_customer_account ADD CONSTRAINT fk_ca_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ba_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_user_account ADD CONSTRAINT fk_ua_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE com_contact ADD CONSTRAINT fk_com_contact_primary_contact FOREIGN KEY (primary_contact) REFERENCES crm_provider_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-477', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1133, '9:e09765a7e75c42c9863b9d5980dcd58a', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_seller_primary_contact, referencedTableName=crm_provider_contact; addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_cust_primary_contact, referencedTableName=c...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-479::AndriusKarpavicius
ALTER TABLE adm_notif_webhook_param ADD CONSTRAINT fk_17fe7mcjmmcgcntqmjm9hlaots FOREIGN KEY (webhook_id) REFERENCES adm_notif_webhooks (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-479', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1135, '9:1675d443d48af9ee97dae59bb106366e', 'addForeignKeyConstraint baseTableName=adm_notif_webhook_param, constraintName=fk_17fe7mcjmmcgcntqmjm9hlaots, referencedTableName=adm_notif_webhooks', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-480::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_1c83s5iubrhpgaxigexo6d76w FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-480', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1137, '9:75800f9238a5122413f64a78f4200c02', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_1c83s5iubrhpgaxigexo6d76w, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-485::AndriusKarpavicius
ALTER TABLE adm_inbound_resp_cookies ADD CONSTRAINT fk_1kyctwmlumac9aoikhb3kmc02 FOREIGN KEY (inboundrequest_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-485', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1139, '9:7076df5e9964550a5ac491ae0273fffb', 'addForeignKeyConstraint baseTableName=adm_inbound_resp_cookies, constraintName=fk_1kyctwmlumac9aoikhb3kmc02, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-486::AndriusKarpavicius
ALTER TABLE com_message ADD CONSTRAINT fk_1pyl5u7tyess63kwnpvmpk261 FOREIGN KEY (campaign_id) REFERENCES com_campaign (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-486', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1141, '9:07e6e2894edf2f09c3a6629da53775e3', 'addForeignKeyConstraint baseTableName=com_message, constraintName=fk_1pyl5u7tyess63kwnpvmpk261, referencedTableName=com_campaign', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-489::AndriusKarpavicius
ALTER TABLE billing_wallet ADD CONSTRAINT fk_1vdcto7usl11bexyjehfqw004 FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-489', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1143, '9:ff8805d15e882502281e7b87926a7131', 'addForeignKeyConstraint baseTableName=billing_wallet, constraintName=fk_1vdcto7usl11bexyjehfqw004, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-494::AndriusKarpavicius
ALTER TABLE adm_notif_im ADD CONSTRAINT fk_2g7q7yhplcohaydhp9a8fuq57 FOREIGN KEY (id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-494', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1145, '9:ea4e1a7b9b2a2ea9ce716b3c3734ba35', 'addForeignKeyConstraint baseTableName=adm_notif_im, constraintName=fk_2g7q7yhplcohaydhp9a8fuq57, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-497::AndriusKarpavicius
ALTER TABLE billing_user_account ADD CONSTRAINT fk_2hdhukmy9gs6qhdsjyngtlmb7 FOREIGN KEY (wallet_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-497', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1147, '9:b0b02476994724784237c4ff5075dc9f', 'addForeignKeyConstraint baseTableName=billing_user_account, constraintName=fk_2hdhukmy9gs6qhdsjyngtlmb7, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-504::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_2u5oqudtp5x9ga8r1envegpyt FOREIGN KEY (trading_country_id) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-504', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1149, '9:64fa0b4a8da72fc4096aec36b83af456', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_2u5oqudtp5x9ga8r1envegpyt, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-509::AndriusKarpavicius
ALTER TABLE adm_notif_email ADD CONSTRAINT fk_322kxmwl69di0jhj28u776766 FOREIGN KEY (id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-509', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1151, '9:daaa9297872ffa48bdc944d7e5be9ab7', 'addForeignKeyConstraint baseTableName=adm_notif_email, constraintName=fk_322kxmwl69di0jhj28u776766, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-511::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_32r2ed0015tnd2pp5196vcqpy FOREIGN KEY (reservation_id) REFERENCES billing_reservation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-511', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1153, '9:e42def0f99c289601a05cb284d00be23', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_32r2ed0015tnd2pp5196vcqpy, referencedTableName=billing_reservation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-512::AndriusKarpavicius
ALTER TABLE ar_ddrequest_item ADD CONSTRAINT fk_33rma6e4cn4p76wl5t2dxk12q FOREIGN KEY (ddrequest_lot_id) REFERENCES ar_ddrequest_lot (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-512', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1155, '9:9abbdaa2969a8864819c206bf53edd56', 'addForeignKeyConstraint baseTableName=ar_ddrequest_item, constraintName=fk_33rma6e4cn4p76wl5t2dxk12q, referencedTableName=ar_ddrequest_lot', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-518::AndriusKarpavicius
ALTER TABLE cat_chrg_edr ADD CONSTRAINT fk_3mqb6u4hyx9wnus0nqdoyoypx FOREIGN KEY (charge_tmpl_id) REFERENCES cat_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-518', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1157, '9:ef497ef428f2d1bbdeb0eb98b602a05e', 'addForeignKeyConstraint baseTableName=cat_chrg_edr, constraintName=fk_3mqb6u4hyx9wnus0nqdoyoypx, referencedTableName=cat_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-521::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_3p1fql2al00q8f67l8725hssj FOREIGN KEY (sub_category_tax) REFERENCES billing_tax (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-521', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1159, '9:1282ecb190f9213dc7127837613198a2', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_3p1fql2al00q8f67l8725hssj, referencedTableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-524::AndriusKarpavicius
ALTER TABLE ar_ddrequest_lot_op ADD CONSTRAINT fk_3riuxoqaodw7b6jbeoofjx6se FOREIGN KEY (ddrequest_lot_id) REFERENCES ar_ddrequest_lot (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-524', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1161, '9:06da6513d8cd38c518a98d69904e3519', 'addForeignKeyConstraint baseTableName=ar_ddrequest_lot_op, constraintName=fk_3riuxoqaodw7b6jbeoofjx6se, referencedTableName=ar_ddrequest_lot', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-528::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_3xyx5uv28ockwy46ejub2ex FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-528', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1163, '9:e1a9e7b0fc3a726e4ccd4e01d15325b1', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_3xyx5uv28ockwy46ejub2ex, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-529::AndriusKarpavicius
ALTER TABLE billing_priceplan_inst ADD CONSTRAINT fk_3y3p1q0o8tw5u0vcoddukbbyd FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-529', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1165, '9:7fbc3c2350ac8ee858b6b6dc05bde216', 'addForeignKeyConstraint baseTableName=billing_priceplan_inst, constraintName=fk_3y3p1q0o8tw5u0vcoddukbbyd, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-535::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_4anpnb5ta9fic7bjqoi393850 FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-535', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1167, '9:ca74b0df6e91aea639748451f8d4dcc6', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_4anpnb5ta9fic7bjqoi393850, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-536::AndriusKarpavicius
ALTER TABLE adm_role_permission ADD CONSTRAINT fk_4au8lqa3bc46gks4dmpb4h4l6 FOREIGN KEY (permission_id) REFERENCES adm_permission (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-536', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1169, '9:8cb4e86a2b77c5b72ddd4b8238c2e452', 'addForeignKeyConstraint baseTableName=adm_role_permission, constraintName=fk_4au8lqa3bc46gks4dmpb4h4l6, referencedTableName=adm_permission', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-537::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_4ek32592buri3max5vqhj1u3t FOREIGN KEY (customer_account_id) REFERENCES ar_customer_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-537', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1171, '9:56d182d84bf96c7070af13739da07873', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_4ek32592buri3max5vqhj1u3t, referencedTableName=ar_customer_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-538::AndriusKarpavicius
ALTER TABLE adm_notif_webhook_header ADD CONSTRAINT fk_4h6yt55gudw9l1719aw6untt2 FOREIGN KEY (webhook_id) REFERENCES adm_notif_webhooks (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-538', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1173, '9:eb9f0492aea664bb3dc6cfb8bf5ded43', 'addForeignKeyConstraint baseTableName=adm_notif_webhook_header, constraintName=fk_4h6yt55gudw9l1719aw6untt2, referencedTableName=adm_notif_webhooks', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-540::AndriusKarpavicius
ALTER TABLE cat_discount_plan_item ADD CONSTRAINT fk_4jfa3r8q8aq8jyhs89d6dgk2c FOREIGN KEY (discount_plan_id) REFERENCES cat_discount_plan (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-540', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1175, '9:2206e86e9a8a9bfdd322233573497083', 'addForeignKeyConstraint baseTableName=cat_discount_plan_item, constraintName=fk_4jfa3r8q8aq8jyhs89d6dgk2c, referencedTableName=cat_discount_plan', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-543::AndriusKarpavicius
ALTER TABLE adm_notif_email_list ADD CONSTRAINT fk_4vtpt0lvrub50uph180ifdkga FOREIGN KEY (emailnotification_id) REFERENCES adm_notif_email (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-543', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1177, '9:1bae180e1fe78fb0e08755b43d5b95fe', 'addForeignKeyConstraint baseTableName=adm_notif_email_list, constraintName=fk_4vtpt0lvrub50uph180ifdkga, referencedTableName=adm_notif_email', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-548::AndriusKarpavicius
ALTER TABLE crm_customer ADD CONSTRAINT fk_5b7wkhes4x4bebav4y7nwr8c1 FOREIGN KEY (customer_category_id) REFERENCES crm_customer_category (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-548', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1179, '9:d258ec82db75ca1e297b074d02326218', 'addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_5b7wkhes4x4bebav4y7nwr8c1, referencedTableName=crm_customer_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-552::AndriusKarpavicius
ALTER TABLE billing_priceplan_inst ADD CONSTRAINT fk_5ek3y1hovn2vthjdsxo2hmf41 FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-552', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1181, '9:6990152ced15d3ceda688886c1a622f7', 'addForeignKeyConstraint baseTableName=billing_priceplan_inst, constraintName=fk_5ek3y1hovn2vthjdsxo2hmf41, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-554::AndriusKarpavicius
ALTER TABLE cat_offer_serv_templates ADD CONSTRAINT fk_5gvoe7fuemcnpabaapjx9an66 FOREIGN KEY (offer_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-554', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1183, '9:585acc78c1307338e4ffc22f40523fcf', 'addForeignKeyConstraint baseTableName=cat_offer_serv_templates, constraintName=fk_5gvoe7fuemcnpabaapjx9an66, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-555::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_5htics7k9v44an8ap11wivraf FOREIGN KEY (wallet_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-555', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1185, '9:4cac47216cca0d9524ac06b5cbbd02fe', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_5htics7k9v44an8ap11wivraf, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-557::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_5ihltpd1fpifa5nlgx8672odg FOREIGN KEY (trading_country_id) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-557', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1187, '9:8b753ed03b7b14378950df8ebc62b7cc', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_5ihltpd1fpifa5nlgx8672odg, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-559::AndriusKarpavicius
ALTER TABLE billing_billing_run ADD CONSTRAINT fk_5k4t0lm6oyd495l5nisxpdda FOREIGN KEY (billing_cycle_id) REFERENCES billing_cycle (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-559', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1189, '9:4c7b41043403717ec9194b950ae49f13', 'addForeignKeyConstraint baseTableName=billing_billing_run, constraintName=fk_5k4t0lm6oyd495l5nisxpdda, referencedTableName=billing_cycle', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-560::AndriusKarpavicius
ALTER TABLE adm_inbound_req_headers ADD CONSTRAINT fk_5l2gy0e4dol6gtr05sq929hnx FOREIGN KEY (inboundrequest_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-560', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1191, '9:3cf845ddccaaba83c24eff9e0932cfed', 'addForeignKeyConstraint baseTableName=adm_inbound_req_headers, constraintName=fk_5l2gy0e4dol6gtr05sq929hnx, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-561::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_5llfbkuo4biup0stpfma3t1yg FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-561', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1193, '9:2f56a2f0e621d3e6d2f19cb551191394', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_5llfbkuo4biup0stpfma3t1yg, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-566::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_60qrdadyj5wvmyii1einfb2lo FOREIGN KEY (counter_id) REFERENCES billing_counter (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-566', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1195, '9:c09801d675b6f9963f4a93a5524e5a1b', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_60qrdadyj5wvmyii1einfb2lo, referencedTableName=billing_counter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-568::AndriusKarpavicius
ALTER TABLE billing_reservation ADD CONSTRAINT fk_662t2ypc8sljgg2hvsri0l0oo FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-568', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1197, '9:4bd5f3c126d107627900f09546211af7', 'addForeignKeyConstraint baseTableName=billing_reservation, constraintName=fk_662t2ypc8sljgg2hvsri0l0oo, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-571::AndriusKarpavicius
ALTER TABLE com_message ADD CONSTRAINT fk_6dxm4rgmyeu9wp565rhchil5l FOREIGN KEY (contact_id) REFERENCES com_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-571', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1199, '9:30179cc78920c80f7e256df594d94873', 'addForeignKeyConstraint baseTableName=com_message, constraintName=fk_6dxm4rgmyeu9wp565rhchil5l, referencedTableName=com_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-572::AndriusKarpavicius
ALTER TABLE adm_notif_im_user ADD CONSTRAINT fk_6g7agb8u5whyi5ukj627l2qc9 FOREIGN KEY (users_id) REFERENCES adm_user (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-572', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1201, '9:b6fbd7231a07f794e72565a2b1b29d28', 'addForeignKeyConstraint baseTableName=adm_notif_im_user, constraintName=fk_6g7agb8u5whyi5ukj627l2qc9, referencedTableName=adm_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-575::AndriusKarpavicius
ALTER TABLE billing_discount_language ADD CONSTRAINT fk_6h9v65yaq2ko1soqrhjiiicqa FOREIGN KEY (discount_id) REFERENCES billing_discount (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-575', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1203, '9:aba292f738635aef19143bfb8b7f29bd', 'addForeignKeyConstraint baseTableName=billing_discount_language, constraintName=fk_6h9v65yaq2ko1soqrhjiiicqa, referencedTableName=billing_discount', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-577::AndriusKarpavicius
ALTER TABLE billing_reservation ADD CONSTRAINT fk_6o5pe4stw4fx6f4ltsrs2f2jn FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-577', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1205, '9:ae49c1844a54d06ef2d496c02a4685a7', 'addForeignKeyConstraint baseTableName=billing_reservation, constraintName=fk_6o5pe4stw4fx6f4ltsrs2f2jn, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-580::AndriusKarpavicius
ALTER TABLE ar_action_dunning ADD CONSTRAINT fk_6v2pj23pubnpy19ug8ifqr5bi FOREIGN KEY (recorded_invoice_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-580', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1207, '9:69a1dcd329f77efc5d87697611585b0e', 'addForeignKeyConstraint baseTableName=ar_action_dunning, constraintName=fk_6v2pj23pubnpy19ug8ifqr5bi, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-584::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_75hyldnus6ti0y40vwcl49ued FOREIGN KEY (charge_instance_id) REFERENCES billing_charge_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-584', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1209, '9:f675877bb273c12f1def47d0b26dcd8e', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_75hyldnus6ti0y40vwcl49ued, referencedTableName=billing_charge_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-588::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_7cx4bkm26pn11matqqj275rqf FOREIGN KEY (customer_account_id) REFERENCES ar_customer_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-588', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1211, '9:7ce5730e5221c5573de8221b117f052f', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_7cx4bkm26pn11matqqj275rqf, referencedTableName=ar_customer_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-590::AndriusKarpavicius
ALTER TABLE cat_discount_plan_item ADD CONSTRAINT fk_7g01q48hl5yo6gxig0rwugsjt FOREIGN KEY (invoice_category_id) REFERENCES billing_invoice_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-590', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1213, '9:82b7b7aea77d8e245a77e2e28aedd0e2', 'addForeignKeyConstraint baseTableName=cat_discount_plan_item, constraintName=fk_7g01q48hl5yo6gxig0rwugsjt, referencedTableName=billing_invoice_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-591::AndriusKarpavicius
ALTER TABLE ar_matching_amount ADD CONSTRAINT fk_7gk0wua5hliyxpayp6lr0d3gf FOREIGN KEY (account_operation_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-591', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1215, '9:5ceb7945692788cda1d3753123d231c2', 'addForeignKeyConstraint baseTableName=ar_matching_amount, constraintName=fk_7gk0wua5hliyxpayp6lr0d3gf, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-594::AndriusKarpavicius
ALTER TABLE cat_charge_template ADD CONSTRAINT fk_7rod1pdt2un6wjrv7og61xhil FOREIGN KEY (invoice_sub_category) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-594', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1217, '9:8021625a9f0b9192000abed73489781d', 'addForeignKeyConstraint baseTableName=cat_charge_template, constraintName=fk_7rod1pdt2un6wjrv7og61xhil, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-596::AndriusKarpavicius
ALTER TABLE crm_customer ADD CONSTRAINT fk_7x19mvbp8qjnyx4iwnsi7lsdb FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-596', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1219, '9:92b5c487e5fce363cef3f7f255e65f87', 'addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_7x19mvbp8qjnyx4iwnsi7lsdb, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-598::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_823qcm3rbvf74ntkmc8syb2w3 FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-598', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1221, '9:cb14e5b1abc13cec8ab05b200fdd24ac', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_823qcm3rbvf74ntkmc8syb2w3, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-599::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_82krx5kxchy237uw8rwdqi9c4 FOREIGN KEY (currency_id) REFERENCES adm_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-599', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1223, '9:08283f54597ec6edbe64835e9e4d9524', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_82krx5kxchy237uw8rwdqi9c4, referencedTableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-602::AndriusKarpavicius
ALTER TABLE cat_calendar_interval ADD CONSTRAINT fk_872pn60c94wp61plarqpmth21 FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-602', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1225, '9:02f921d6bc6057c5bf8a4081afc8f378', 'addForeignKeyConstraint baseTableName=cat_calendar_interval, constraintName=fk_872pn60c94wp61plarqpmth21, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-603::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_890ehdn0ssnd9c39rj5h0ualp FOREIGN KEY (billing_cycle) REFERENCES billing_cycle (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-603', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1227, '9:fb32142567aafc777c35d2a5c56ba518', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_890ehdn0ssnd9c39rj5h0ualp, referencedTableName=billing_cycle', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-606::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_8f32lmslardn8lenxgmjqhp3 FOREIGN KEY (trading_country_id) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-606', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1229, '9:ca75e75033dfaf8dad7c0f52484c1420', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_8f32lmslardn8lenxgmjqhp3, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-607::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_8g8jlmakt1wyw73oxs5yltlsd FOREIGN KEY (aggregate_id_t) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-607', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1231, '9:964c487811eaf3cbd93b40c7a5097d18', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_8g8jlmakt1wyw73oxs5yltlsd, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-609::AndriusKarpavicius
ALTER TABLE adm_notif_history ADD CONSTRAINT fk_8k2sxhjmrswxnecfo74bdmnsa FOREIGN KEY (inbound_request_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-609', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1233, '9:7dbd4308cfd912f090502b8fecc1256c', 'addForeignKeyConstraint baseTableName=adm_notif_history, constraintName=fk_8k2sxhjmrswxnecfo74bdmnsa, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-612::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_8tdcpq8ixa51nrk3ui4t8hdmq FOREIGN KEY (charge_template_id) REFERENCES cat_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-612', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1235, '9:f2a4c1f09e4f1fb2f831f590c7bb9a88', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_8tdcpq8ixa51nrk3ui4t8hdmq, referencedTableName=cat_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-613::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT fk_8uhfpy4ahtyqpk8s3ye42d09n FOREIGN KEY (offer_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-613', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1237, '9:9a3cd26bef0d499fdd3007f80cd7ae41', 'addForeignKeyConstraint baseTableName=billing_subscription, constraintName=fk_8uhfpy4ahtyqpk8s3ye42d09n, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-614::AndriusKarpavicius
ALTER TABLE dwh_chart_pie ADD CONSTRAINT fk_8vdeospih0frijbyesgetnpgq FOREIGN KEY (id) REFERENCES dwh_chart (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-614', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1239, '9:c2e74452504b8ccac9cbdd8028c22e7f', 'addForeignKeyConstraint baseTableName=dwh_chart_pie, constraintName=fk_8vdeospih0frijbyesgetnpgq, referencedTableName=dwh_chart', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-615::AndriusKarpavicius
ALTER TABLE report_emails ADD CONSTRAINT fk_8w3p2bve2i4l9uayn4qgiw5i1 FOREIGN KEY (report_id) REFERENCES bi_report (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-615', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1241, '9:a3a9872adde984c795801be85cdb15df', 'addForeignKeyConstraint baseTableName=report_emails, constraintName=fk_8w3p2bve2i4l9uayn4qgiw5i1, referencedTableName=bi_report', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-616::AndriusKarpavicius
ALTER TABLE billing_counter ADD CONSTRAINT fk_8wqr2tvmet4ppmh3dckx0arn FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-616', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1243, '9:8d30e8a64fb82c9b7f850879c3f573e4', 'addForeignKeyConstraint baseTableName=billing_counter, constraintName=fk_8wqr2tvmet4ppmh3dckx0arn, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-623::AndriusKarpavicius
ALTER TABLE cat_serv_rec_wallet_template ADD CONSTRAINT fk_9b8d2ybpb5tcws4rdlshtsitm FOREIGN KEY (wallet_template_id) REFERENCES cat_wallet_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-623', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1245, '9:f703d0a233544688fa918416942b5ba7', 'addForeignKeyConstraint baseTableName=cat_serv_rec_wallet_template, constraintName=fk_9b8d2ybpb5tcws4rdlshtsitm, referencedTableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-629::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_9kbreo3t9k9wk0vo2xld9rin2 FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-629', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1247, '9:89ffa1ca91a5301b8ba4d7ab2e48fc62', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_9kbreo3t9k9wk0vo2xld9rin2, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-631::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_9lqkbfo4yjqqbopmorht5acs7 FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-631', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1249, '9:d5e9ec92fbc5d05daa8537e863e12673', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_9lqkbfo4yjqqbopmorht5acs7, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-632::AndriusKarpavicius
ALTER TABLE cat_serv_trm_wallet_template ADD CONSTRAINT fk_9mex36caetcfv4c9f689yfdhw FOREIGN KEY (service_trm_templt_id) REFERENCES cat_serv_trm_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-632', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1251, '9:982502a40784e8de7256953176a92fa3', 'addForeignKeyConstraint baseTableName=cat_serv_trm_wallet_template, constraintName=fk_9mex36caetcfv4c9f689yfdhw, referencedTableName=cat_serv_trm_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-634::AndriusKarpavicius
ALTER TABLE adm_notification ADD CONSTRAINT fk_9o7xuvhq1a4hi7q0gkmylg1jn FOREIGN KEY (counter_instance_id) REFERENCES billing_counter (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-634', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1253, '9:e3b0daaf0aad19e6a9e017ae03e54293', 'addForeignKeyConstraint baseTableName=adm_notification, constraintName=fk_9o7xuvhq1a4hi7q0gkmylg1jn, referencedTableName=billing_counter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-635::AndriusKarpavicius
ALTER TABLE cat_chrg_edr ADD CONSTRAINT fk_9ty5cer66o6ixc5kxf49ikt5 FOREIGN KEY (trigg_edr_id) REFERENCES cat_triggered_edr (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-635', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1255, '9:8c8cb7a645443bd4b2565a7929be1bdf', 'addForeignKeyConstraint baseTableName=cat_chrg_edr, constraintName=fk_9ty5cer66o6ixc5kxf49ikt5, referencedTableName=cat_triggered_edr', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-636::AndriusKarpavicius
ALTER TABLE billing_trading_language ADD CONSTRAINT fk_9wqyi2luy5iwrbd1f17dgy33w FOREIGN KEY (language_id) REFERENCES adm_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-636', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1257, '9:6087f1541111b9332e22acef5d79722e', 'addForeignKeyConstraint baseTableName=billing_trading_language, constraintName=fk_9wqyi2luy5iwrbd1f17dgy33w, referencedTableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-637::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_9xtwx023h5d9x6uwo19gn30ur FOREIGN KEY (tax_id) REFERENCES billing_tax (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-637', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1259, '9:a3b99d6765f01032cf38d61e0b1d0568', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_9xtwx023h5d9x6uwo19gn30ur, referencedTableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-640::AndriusKarpavicius
ALTER TABLE billing_tax_language ADD CONSTRAINT fk_a41c18k21jxwnxvu0dhs9bxgl FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-640', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1261, '9:bb01a6c3654b14ee67402d696c8abb3c', 'addForeignKeyConstraint baseTableName=billing_tax_language, constraintName=fk_a41c18k21jxwnxvu0dhs9bxgl, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-641::AndriusKarpavicius
ALTER TABLE cat_serv_sub_wallet_template ADD CONSTRAINT fk_a6swrmjyqqabj90t321vhonyf FOREIGN KEY (service_sub_templt_id) REFERENCES cat_serv_sub_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-641', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1263, '9:5c1e498eb4b5a2cc5660e5ea49c75a4f', 'addForeignKeyConstraint baseTableName=cat_serv_sub_wallet_template, constraintName=fk_a6swrmjyqqabj90t321vhonyf, referencedTableName=cat_serv_sub_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-642::AndriusKarpavicius
ALTER TABLE ar_customer_account ADD CONSTRAINT fk_aaptbcu3lj7b87m97em457i3w FOREIGN KEY (customer_id) REFERENCES crm_customer (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-642', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1265, '9:601d68c3fa3a8aa066c2ff1e937d4996', 'addForeignKeyConstraint baseTableName=ar_customer_account, constraintName=fk_aaptbcu3lj7b87m97em457i3w, referencedTableName=crm_customer', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-644::AndriusKarpavicius
ALTER TABLE adm_user_role ADD CONSTRAINT fk_adtro5wh9g4byvy0pxpwwboxq FOREIGN KEY (user_id) REFERENCES adm_user (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-644', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1267, '9:ffe857ea944bfd3a3cb73d1ea57f8985', 'addForeignKeyConstraint baseTableName=adm_user_role, constraintName=fk_adtro5wh9g4byvy0pxpwwboxq, referencedTableName=adm_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-646::AndriusKarpavicius
ALTER TABLE billing_counter_period ADD CONSTRAINT fk_ah6awbukub9hunnmg30i5qgfd FOREIGN KEY (counter_instance_id) REFERENCES billing_counter (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-646', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1269, '9:79600aaee00dd1c5a6311eb206e53901', 'addForeignKeyConstraint baseTableName=billing_counter_period, constraintName=fk_ah6awbukub9hunnmg30i5qgfd, referencedTableName=billing_counter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-651::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_amwacie0nqfumpd1sc7y9nv0p FOREIGN KEY (aggregate_id_r) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-651', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1271, '9:ec4347481deab3e927afd34e750bb36b', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_amwacie0nqfumpd1sc7y9nv0p, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-652::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_anslvrbm465ossqx8surjyu22 FOREIGN KEY (wallet_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-652', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1273, '9:84184b074bf30bf589ea6757d2bc8b4a', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_anslvrbm465ossqx8surjyu22, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-654::AndriusKarpavicius
ALTER TABLE billing_discount_language ADD CONSTRAINT fk_ath36sr0ck77jhr68mm1w10dg FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-654', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1275, '9:4cc99919263cbf102dab3da96e4f1124', 'addForeignKeyConstraint baseTableName=billing_discount_language, constraintName=fk_ath36sr0ck77jhr68mm1w10dg, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-655::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_awekpkm39bhaqrf2k2gwvd4p5 FOREIGN KEY (aggregate_serv_id) REFERENCES billing_service_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-655', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1277, '9:2537b4dd3e89aff4e7ae87f2f07eb885', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_awekpkm39bhaqrf2k2gwvd4p5, referencedTableName=billing_service_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-658::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_bbnhg8vn7jkttghphr65iwug5 FOREIGN KEY (billing_account__id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-658', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1279, '9:2e221d6e88444d5d830448cb3fb7a1e5', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_bbnhg8vn7jkttghphr65iwug5, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-662::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_bo8b1b4gdnqloyib62h1qfwq2 FOREIGN KEY (trading_country_id) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-662', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1281, '9:f6264deb1db28cced8589ed92f2f363f', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_bo8b1b4gdnqloyib62h1qfwq2, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-664::AndriusKarpavicius
ALTER TABLE ar_action_dunning ADD CONSTRAINT fk_bqvc94w3y6lx7u0tc0jfsfwt7 FOREIGN KEY (customer_account_id) REFERENCES ar_customer_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-664', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1283, '9:2cf27cd9b27da1c174e5af98e1debe62', 'addForeignKeyConstraint baseTableName=ar_action_dunning, constraintName=fk_bqvc94w3y6lx7u0tc0jfsfwt7, referencedTableName=ar_customer_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-667::AndriusKarpavicius
ALTER TABLE cat_calendar_hours ADD CONSTRAINT fk_bw7sxqdsqtsddknk0qqdc91j9 FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-667', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1285, '9:9fc3886b9ac11a666c96555b57d4cfe2', 'addForeignKeyConstraint baseTableName=cat_calendar_hours, constraintName=fk_bw7sxqdsqtsddknk0qqdc91j9, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-673::AndriusKarpavicius
ALTER TABLE cat_discount_plan_item ADD CONSTRAINT fk_c8jrrvbxq6974yskydgo0wkn2 FOREIGN KEY (invoice_sub_category_id) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-673', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1287, '9:6ab3baef687043ea66b6d5af8d54d056', 'addForeignKeyConstraint baseTableName=cat_discount_plan_item, constraintName=fk_c8jrrvbxq6974yskydgo0wkn2, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-674::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_c91o61obn07uoo459jxwhfdiq FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-674', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1289, '9:2f79d7810f2ddbf526ed4514db0edec1', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_c91o61obn07uoo459jxwhfdiq, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-675::AndriusKarpavicius
ALTER TABLE billing_wallet ADD CONSTRAINT fk_c9nba6gws3ooqqqdlc07uqiha FOREIGN KEY (cat_wallet_template_id) REFERENCES cat_wallet_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-675', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1291, '9:62918e43d8205ceb1efd20d1e82b93e5', 'addForeignKeyConstraint baseTableName=billing_wallet, constraintName=fk_c9nba6gws3ooqqqdlc07uqiha, referencedTableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-677::AndriusKarpavicius
ALTER TABLE billing_service_instance ADD CONSTRAINT fk_caafr2v98pc78pkpp214twojx FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-677', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1293, '9:89e734e9cda6ab07439ee92990599ff4', 'addForeignKeyConstraint baseTableName=billing_service_instance, constraintName=fk_caafr2v98pc78pkpp214twojx, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-678::AndriusKarpavicius
ALTER TABLE billing_reservation ADD CONSTRAINT fk_cau8elf0u0q5vi6voqv07rx8p FOREIGN KEY (wallet_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-678', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1295, '9:08e4da0fc64fb407d193f33d8c80369c', 'addForeignKeyConstraint baseTableName=billing_reservation, constraintName=fk_cau8elf0u0q5vi6voqv07rx8p, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-682::AndriusKarpavicius
ALTER TABLE adm_inbound_req_cookies ADD CONSTRAINT fk_cfd55de59w792gxpcd478ujfq FOREIGN KEY (inboundrequest_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-682', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1297, '9:5917792f2e5523199a9a94c076a1feff', 'addForeignKeyConstraint baseTableName=adm_inbound_req_cookies, constraintName=fk_cfd55de59w792gxpcd478ujfq, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-684::AndriusKarpavicius
ALTER TABLE billing_service_instance ADD CONSTRAINT fk_cjdtigou2dhmp30e1je4l4la3 FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-684', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1299, '9:ef2080259c6bed3466c44350c3e678b2', 'addForeignKeyConstraint baseTableName=billing_service_instance, constraintName=fk_cjdtigou2dhmp30e1je4l4la3, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-685::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_clryk9sfqcnt5m298cpbfvnm9 FOREIGN KEY (parent_seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-685', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1301, '9:b823399649174fbf408e6d5a3b7c9e6f', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_clryk9sfqcnt5m298cpbfvnm9, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-687::AndriusKarpavicius
ALTER TABLE billing_service_instance ADD CONSTRAINT fk_ctwb65gvm9ywajg9pim86cqut FOREIGN KEY (sub_termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-687', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1303, '9:16a683a81743759d7cc319e68665cdbc', 'addForeignKeyConstraint baseTableName=billing_service_instance, constraintName=fk_ctwb65gvm9ywajg9pim86cqut, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-690::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT fk_d4iavkklx1qg1ani36hpg3o3i FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-690', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1305, '9:4c3e4da0b3cb424ee7a96f8941194140', 'addForeignKeyConstraint baseTableName=billing_subscription, constraintName=fk_d4iavkklx1qg1ani36hpg3o3i, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-692::AndriusKarpavicius
ALTER TABLE adm_notif_im_user ADD CONSTRAINT fk_damvosa961a8nk1d0sxq9eft3 FOREIGN KEY (instantmessagingnotification_id) REFERENCES adm_notif_im (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-692', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1307, '9:96637f7cbdade4c39b9b8d18b1536d7f', 'addForeignKeyConstraint baseTableName=adm_notif_im_user, constraintName=fk_damvosa961a8nk1d0sxq9eft3, referencedTableName=adm_notif_im', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-693::AndriusKarpavicius
ALTER TABLE cat_counter_template ADD CONSTRAINT fk_db0agy1pteutwwsb61imqu8f6 FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-693', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1309, '9:a2c06960cf33d94eb0e72fdaaf63bda3', 'addForeignKeyConstraint baseTableName=cat_counter_template, constraintName=fk_db0agy1pteutwwsb61imqu8f6, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-694::AndriusKarpavicius
ALTER TABLE dwh_chart_bar ADD CONSTRAINT fk_deinn6saryvr8li5c8vjoga6a FOREIGN KEY (id) REFERENCES dwh_chart (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-694', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1311, '9:55c7a01d8011e8b4cd1c56c148ca18f4', 'addForeignKeyConstraint baseTableName=dwh_chart_bar, constraintName=fk_deinn6saryvr8li5c8vjoga6a, referencedTableName=dwh_chart', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-698::AndriusKarpavicius
ALTER TABLE adm_inbound_req_params ADD CONSTRAINT fk_djmbjb6ja9fapeadjyj395020 FOREIGN KEY (inboundrequest_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-698', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1313, '9:7dcd427c25ba905fbc4c87cf079f4a05', 'addForeignKeyConstraint baseTableName=adm_inbound_req_params, constraintName=fk_djmbjb6ja9fapeadjyj395020, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-699::AndriusKarpavicius
ALTER TABLE cat_serv_usage_wallet_template ADD CONSTRAINT fk_djsiyqv4nss0aba3dfvxlo0g9 FOREIGN KEY (wallet_template_id) REFERENCES cat_wallet_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-699', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1315, '9:b95bcc9e4f35d7e6c37403a8dd497e6b', 'addForeignKeyConstraint baseTableName=cat_serv_usage_wallet_template, constraintName=fk_djsiyqv4nss0aba3dfvxlo0g9, referencedTableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-700::AndriusKarpavicius
ALTER TABLE crm_custom_field_tmpl_val ADD CONSTRAINT fk_dsb0t79daf6j4gecorhl833tf FOREIGN KEY (customfieldtemplate_id) REFERENCES crm_custom_field_tmpl (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-700', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1317, '9:5312bbb7a8653c353dee2b81294c813c', 'addForeignKeyConstraint baseTableName=crm_custom_field_tmpl_val, constraintName=fk_dsb0t79daf6j4gecorhl833tf, referencedTableName=crm_custom_field_tmpl', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-702::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_dwdlb9d5mlvdddm3yowwa9uem FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-702', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1319, '9:5505da5e307abef12fe3093fa7b919b1', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_dwdlb9d5mlvdddm3yowwa9uem, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-705::AndriusKarpavicius
ALTER TABLE com_contact_com_message ADD CONSTRAINT fk_e1trke21afbfr3v8wqnsks2is FOREIGN KEY (messages_id) REFERENCES com_message (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-705', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1321, '9:9cf90da29bcdd5165ffc8557669a6f03', 'addForeignKeyConstraint baseTableName=com_contact_com_message, constraintName=fk_e1trke21afbfr3v8wqnsks2is, referencedTableName=com_message', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-707::AndriusKarpavicius
ALTER TABLE bi_report_emails ADD CONSTRAINT fk_e5pijp4pbuitmvarlbblnyula FOREIGN KEY (email_id) REFERENCES crm_email (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-707', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1323, '9:762e2e3e289b2fd956d170b40f4fe878', 'addForeignKeyConstraint baseTableName=bi_report_emails, constraintName=fk_e5pijp4pbuitmvarlbblnyula, referencedTableName=crm_email', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-708::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_e6lpg28vestq5376ftwurc3dq FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-708', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1325, '9:492735bacfc131b86e0f4ae20ac6eca7', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_e6lpg28vestq5376ftwurc3dq, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-712::AndriusKarpavicius
ALTER TABLE billing_billing_run_list ADD CONSTRAINT fk_enol93c3egcl0hf5uhrvd8n85 FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-712', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1327, '9:63512e41c6d852de96218fc2aabfa668', 'addForeignKeyConstraint baseTableName=billing_billing_run_list, constraintName=fk_enol93c3egcl0hf5uhrvd8n85, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-713::AndriusKarpavicius
ALTER TABLE dwh_chart_line ADD CONSTRAINT fk_ertp1u2by6dldfhs76wcivhty FOREIGN KEY (id) REFERENCES dwh_chart (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-713', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1329, '9:0b846b3532c2915d73ae1a6519d99b9e', 'addForeignKeyConstraint baseTableName=dwh_chart_line, constraintName=fk_ertp1u2by6dldfhs76wcivhty, referencedTableName=dwh_chart', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-714::AndriusKarpavicius
ALTER TABLE billing_chrginst_wallet ADD CONSTRAINT fk_espkcwuorhst9youte9r59vfq FOREIGN KEY (chrg_instance_id) REFERENCES billing_charge_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-714', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1331, '9:72822235a4604d068bebc82933065bf1', 'addForeignKeyConstraint baseTableName=billing_chrginst_wallet, constraintName=fk_espkcwuorhst9youte9r59vfq, referencedTableName=billing_charge_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-716::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_eucl7of9ovyut1c4r2jkf01u6 FOREIGN KEY (priceplan_id) REFERENCES cat_price_plan_matrix (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-716', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1333, '9:ae7c4637e84a40266915b212064f6292', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_eucl7of9ovyut1c4r2jkf01u6, referencedTableName=cat_price_plan_matrix', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-718::AndriusKarpavicius
ALTER TABLE cat_serv_rec_charge_template ADD CONSTRAINT fk_exhkf6tlyfmkjik41o7pdaklk FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-718', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1335, '9:4930f0663e56d8e8d14e3a08fa4fdee4', 'addForeignKeyConstraint baseTableName=cat_serv_rec_charge_template, constraintName=fk_exhkf6tlyfmkjik41o7pdaklk, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-720::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_f0v21kf4sbdcq1wwqsxmb5tsk FOREIGN KEY (priceplan_id) REFERENCES cat_price_plan_matrix (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-720', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1337, '9:a773c1314026d683476bc090d6bbdd6e', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_f0v21kf4sbdcq1wwqsxmb5tsk, referencedTableName=cat_price_plan_matrix', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-723::AndriusKarpavicius
ALTER TABLE billing_counter ADD CONSTRAINT fk_f3e8vebhfnmyikf3xwui2eqn5 FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-723', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1339, '9:9b70976638d373705df046b071adcdc8', 'addForeignKeyConstraint baseTableName=billing_counter, constraintName=fk_f3e8vebhfnmyikf3xwui2eqn5, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-726::AndriusKarpavicius
ALTER TABLE rating_edr ADD CONSTRAINT fk_f5tulmo519cm4il45bhborgq1 FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-726', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1341, '9:18fb46282ce66f8bab7cca9531d8cff3', 'addForeignKeyConstraint baseTableName=rating_edr, constraintName=fk_f5tulmo519cm4il45bhborgq1, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-727::AndriusKarpavicius
ALTER TABLE ar_ddrequest_item ADD CONSTRAINT fk_fac0a9x4wkq2eawtebunbibxy FOREIGN KEY (payment_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-727', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1343, '9:3444316908e517052b003669e7850893', 'addForeignKeyConstraint baseTableName=ar_ddrequest_item, constraintName=fk_fac0a9x4wkq2eawtebunbibxy, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-728::AndriusKarpavicius
ALTER TABLE billing_counter ADD CONSTRAINT fk_fasnjr9ad2layx0fy99yqaqgh FOREIGN KEY (counter_template_id) REFERENCES cat_counter_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-728', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1345, '9:3bcec5162dd61ee00f16165cdccce793', 'addForeignKeyConstraint baseTableName=billing_counter, constraintName=fk_fasnjr9ad2layx0fy99yqaqgh, referencedTableName=cat_counter_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-730::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_fgcgjix0bu0jcnnh7h92gdl3f FOREIGN KEY (invoicecategory) REFERENCES billing_invoice_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-730', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1347, '9:9e0cabacd1ec1fedb26d213366fd5d94', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_fgcgjix0bu0jcnnh7h92gdl3f, referencedTableName=billing_invoice_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-738::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_fr8rdcj2vx5ityva2l4fkcns4 FOREIGN KEY (customer_account_id) REFERENCES ar_customer_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-738', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1349, '9:a7eebe608f588cdc1f3e15917ff12e3c', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_fr8rdcj2vx5ityva2l4fkcns4, referencedTableName=ar_customer_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-739::AndriusKarpavicius
ALTER TABLE cat_calendar ADD CONSTRAINT fk_fskhdurrqlhc43f27gsprqqwn FOREIGN KEY (join_cal_2_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-739', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1351, '9:7bec1204dd47cd67a58e185f89de95a8', 'addForeignKeyConstraint baseTableName=cat_calendar, constraintName=fk_fskhdurrqlhc43f27gsprqqwn, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-742::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ftwju9g5tva4btwupb5yy8wuc FOREIGN KEY (termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-742', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1353, '9:9510a32722e9839803f9eff642c165e2', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_ftwju9g5tva4btwupb5yy8wuc, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-743::AndriusKarpavicius
ALTER TABLE billing_billing_run_list ADD CONSTRAINT fk_fvujybj16rexoar6bbg65rtmw FOREIGN KEY (billing_run_id) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-743', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1355, '9:fb7389cabbd091d8a9d6abc05c003fa3', 'addForeignKeyConstraint baseTableName=billing_billing_run_list, constraintName=fk_fvujybj16rexoar6bbg65rtmw, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-745::AndriusKarpavicius
ALTER TABLE adm_notification ADD CONSTRAINT fk_g2g3git8jshnvyt4quial8rly FOREIGN KEY (counter_template_id) REFERENCES cat_counter_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-745', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1357, '9:39a50c57e4156caccae17584bd6ac2f9', 'addForeignKeyConstraint baseTableName=adm_notification, constraintName=fk_g2g3git8jshnvyt4quial8rly, referencedTableName=cat_counter_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-751::AndriusKarpavicius
ALTER TABLE ar_action_dunning ADD CONSTRAINT fk_gbkp9rahk5rqst7xvptmohhhl FOREIGN KEY (dunning_lot_id) REFERENCES ar_dunning_lot (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-751', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1359, '9:c8fffbc50096dcc5cdb080ab51a06997', 'addForeignKeyConstraint baseTableName=ar_action_dunning, constraintName=fk_gbkp9rahk5rqst7xvptmohhhl, referencedTableName=ar_dunning_lot', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-754::AndriusKarpavicius
ALTER TABLE cat_serv_usage_charge_template ADD CONSTRAINT fk_gdamyabsva5cqay9nk1fm1rr7 FOREIGN KEY (counter_template_id) REFERENCES cat_counter_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-754', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1361, '9:68d4072a3606255a3b9ea70ee4604457', 'addForeignKeyConstraint baseTableName=cat_serv_usage_charge_template, constraintName=fk_gdamyabsva5cqay9nk1fm1rr7, referencedTableName=cat_counter_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-756::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_gq86s178gc3orumcl8symk4nn FOREIGN KEY (invoice_id) REFERENCES billing_invoice (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-756', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1363, '9:eb8d6e8b81be8bf3dcb40c2a2cd522d9', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_gq86s178gc3orumcl8symk4nn, referencedTableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-757::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_gr6elpjoiw7nyro2tdwsar20v FOREIGN KEY (recorded_invoice_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-757', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1365, '9:e31c2b0b8abec938a240b8ee47aedf5e', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_gr6elpjoiw7nyro2tdwsar20v, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-763::AndriusKarpavicius
ALTER TABLE adm_inbound_resp_headers ADD CONSTRAINT fk_h07be9b84xmmx5ypkbunkxwxt FOREIGN KEY (inboundrequest_id) REFERENCES adm_inbound_request (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-763', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1367, '9:33605703750dd946410ced9aaecaf37d', 'addForeignKeyConstraint baseTableName=adm_inbound_resp_headers, constraintName=fk_h07be9b84xmmx5ypkbunkxwxt, referencedTableName=adm_inbound_request', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-767::AndriusKarpavicius
ALTER TABLE billing_rejected_billing_accounts ADD CONSTRAINT fk_hamqnc1lpwfm4b3qjbefi24rn FOREIGN KEY (billing_account) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-767', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1369, '9:0a2b5ff91680521c98b00d8a99d842d7', 'addForeignKeyConstraint baseTableName=billing_rejected_billing_accounts, constraintName=fk_hamqnc1lpwfm4b3qjbefi24rn, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-768::AndriusKarpavicius
ALTER TABLE medina_access ADD CONSTRAINT fk_hcav39o2ux8q2oaaqva8b5c8c FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-768', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1371, '9:d7bd667b42433f09e36dcdaf58d26201', 'addForeignKeyConstraint baseTableName=medina_access, constraintName=fk_hcav39o2ux8q2oaaqva8b5c8c, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-771::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_hg1a5impet68w8a37dehlnib0 FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-771', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1373, '9:c07bc6fd418b0e26984b33ef99a65996', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_hg1a5impet68w8a37dehlnib0, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-773::AndriusKarpavicius
ALTER TABLE cat_calendar_hours ADD CONSTRAINT fk_hlmhwditgy8p9em0e631ynw6r FOREIGN KEY (hour_id) REFERENCES cat_hour_in_day (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-773', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1375, '9:d08d07f872e3f2f8d450775cc2066f9a', 'addForeignKeyConstraint baseTableName=cat_calendar_hours, constraintName=fk_hlmhwditgy8p9em0e631ynw6r, referencedTableName=cat_hour_in_day', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-775::AndriusKarpavicius
ALTER TABLE billing_invoice_cat_lang ADD CONSTRAINT fk_hslb4pch5bj6m6xsy0tqmnn4j FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-775', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1377, '9:64245249033af025148b2d891515bebd', 'addForeignKeyConstraint baseTableName=billing_invoice_cat_lang, constraintName=fk_hslb4pch5bj6m6xsy0tqmnn4j, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-778::AndriusKarpavicius
ALTER TABLE cat_serv_sub_charge_template ADD CONSTRAINT fk_hxp6httf1qfs3tsvquux363y7 FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-778', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1379, '9:8a7bc8dff8ea8a3de8ce71b8ecbe03d8', 'addForeignKeyConstraint baseTableName=cat_serv_sub_charge_template, constraintName=fk_hxp6httf1qfs3tsvquux363y7, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-779::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_hyqj44hv50qhdvvvqp5eujrur FOREIGN KEY (billing_run_id) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-779', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1381, '9:70348a5bc5cdd54b7cda6c23f22a4991', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_hyqj44hv50qhdvvvqp5eujrur, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-780::AndriusKarpavicius
ALTER TABLE dwh_chart ADD CONSTRAINT fk_i6lkk8x010ktvw2clmmmmp9os FOREIGN KEY (msr_qty_id) REFERENCES dwh_measurable_quant (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-780', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1383, '9:5981a6be74f7a92c480870d288483ace', 'addForeignKeyConstraint baseTableName=dwh_chart, constraintName=fk_i6lkk8x010ktvw2clmmmmp9os, referencedTableName=dwh_measurable_quant', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-782::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_i8v257236336x3tpy7ili7ys2 FOREIGN KEY (billing_run_id) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-782', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1385, '9:3c47129b74727e2e07f248045ab3e9b8', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_i8v257236336x3tpy7ili7ys2, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-784::AndriusKarpavicius
ALTER TABLE billing_resrv_countid ADD CONSTRAINT fk_ibxc01nbhutnxtkoextnrm0a6 FOREIGN KEY (reservation_id) REFERENCES billing_reservation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-784', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1387, '9:918c6d8acc7c1c898b1f4228414a10d1', 'addForeignKeyConstraint baseTableName=billing_resrv_countid, constraintName=fk_ibxc01nbhutnxtkoextnrm0a6, referencedTableName=billing_reservation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-787::AndriusKarpavicius
ALTER TABLE bi_job_history ADD CONSTRAINT fk_ifdipuijxgp2i9k26n7bc2jnr FOREIGN KEY (job_id) REFERENCES bi_job (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-787', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1389, '9:586be66981afd2942aba908494ca6008', 'addForeignKeyConstraint baseTableName=bi_job_history, constraintName=fk_ifdipuijxgp2i9k26n7bc2jnr, referencedTableName=bi_job', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-789::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_ihqc2by1drw4jp17umkkjcguc FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-789', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1391, '9:71471dcb5360dd2a832c84ca1a0d3811', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_ihqc2by1drw4jp17umkkjcguc, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-790::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ii78vj9v7bqdip985wona13qm FOREIGN KEY (trading_country_id) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-790', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1393, '9:e7c51311f9a2e0530c7014cb545c3cea', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_ii78vj9v7bqdip985wona13qm, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-793::AndriusKarpavicius
ALTER TABLE adm_notif_email_user ADD CONSTRAINT fk_ioh6e5l8yglwedbkvmrhuuc9i FOREIGN KEY (emailnotification_id) REFERENCES adm_notif_email (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-793', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1395, '9:ff7f685b0b56f877f6d5f98b278ae510', 'addForeignKeyConstraint baseTableName=adm_notif_email_user, constraintName=fk_ioh6e5l8yglwedbkvmrhuuc9i, referencedTableName=adm_notif_email', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-794::AndriusKarpavicius
ALTER TABLE adm_notif_im_list ADD CONSTRAINT fk_irak9kuf31eoi04whmof2o1vp FOREIGN KEY (instantmessagingnotification_id) REFERENCES adm_notif_im (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-794', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1397, '9:197e71e57fe099d3542a39f036599a85', 'addForeignKeyConstraint baseTableName=adm_notif_im_list, constraintName=fk_irak9kuf31eoi04whmof2o1vp, referencedTableName=adm_notif_im', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-797::AndriusKarpavicius
ALTER TABLE billing_rejected_billing_accounts ADD CONSTRAINT fk_iyfs5u3t9m0hc9rkeadr6atq9 FOREIGN KEY (billing_run) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-797', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1399, '9:16d8212dc437cd4c302d45ec5b3dcd33', 'addForeignKeyConstraint baseTableName=billing_rejected_billing_accounts, constraintName=fk_iyfs5u3t9m0hc9rkeadr6atq9, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-802::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_j45dy6ja0ulbs15erjw2abtin FOREIGN KEY (valid_cal_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-802', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1401, '9:1f0de1f10ce692100bca5e9d34919e7c', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_j45dy6ja0ulbs15erjw2abtin, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-804::AndriusKarpavicius
ALTER TABLE billing_billing_run ADD CONSTRAINT fk_j7uk7f4r30ar8my36b338fgp3 FOREIGN KEY (pr_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-804', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1403, '9:0c45a2a6670c4821f6ccb19daaf3cac7', 'addForeignKeyConstraint baseTableName=billing_billing_run, constraintName=fk_j7uk7f4r30ar8my36b338fgp3, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-805::AndriusKarpavicius
ALTER TABLE adm_country ADD CONSTRAINT fk_j9hs06oggl0dsm766xegjd7cl FOREIGN KEY (currency_id) REFERENCES adm_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-805', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1405, '9:c40310dd8a1c8055582e4444b7b47d5f', 'addForeignKeyConstraint baseTableName=adm_country, constraintName=fk_j9hs06oggl0dsm766xegjd7cl, referencedTableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-806::AndriusKarpavicius
ALTER TABLE com_msg_tmpl_variable ADD CONSTRAINT fk_ja18lr86yy3lu9qy06wkhkjeg FOREIGN KEY (template_id) REFERENCES com_message_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-806', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1407, '9:36c168fd8e8df924339b9153f3f05789', 'addForeignKeyConstraint baseTableName=com_msg_tmpl_variable, constraintName=fk_ja18lr86yy3lu9qy06wkhkjeg, referencedTableName=com_message_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-809::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_jbw5pwksdd6x3f6ystkruwb60 FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-809', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1409, '9:f0f10cbac542b7a82d612a80590641f0', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_jbw5pwksdd6x3f6ystkruwb60, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-812::AndriusKarpavicius
ALTER TABLE cat_serv_sub_wallet_template ADD CONSTRAINT fk_jl5jtnqtxuaupodubdf49we35 FOREIGN KEY (wallet_template_id) REFERENCES cat_wallet_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-812', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1411, '9:d72c9aea8b6530ca8bfeb6fde317817d', 'addForeignKeyConstraint baseTableName=cat_serv_sub_wallet_template, constraintName=fk_jl5jtnqtxuaupodubdf49we35, referencedTableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-813::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_jlvgkggvct8w375rh8xnp0045 FOREIGN KEY (tax_invoice_agregate) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-813', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1413, '9:9030f4005a826d9f3c7fcbedfed45a40', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_jlvgkggvct8w375rh8xnp0045, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-814::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_jol1l9b38nefwe19h55gjhi FOREIGN KEY (category_invoice_agregate) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-814', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1415, '9:5a2b0471282b31ea2efe0e1f19df1e0c', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_jol1l9b38nefwe19h55gjhi, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-819::AndriusKarpavicius
ALTER TABLE cat_serv_rec_wallet_template ADD CONSTRAINT fk_jvxy2yssvh2lglsjux5lysuev FOREIGN KEY (service_rec_templt_id) REFERENCES cat_serv_rec_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-819', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1417, '9:df6e9098e4bbf7108f0906bfb4988b45', 'addForeignKeyConstraint baseTableName=cat_serv_rec_wallet_template, constraintName=fk_jvxy2yssvh2lglsjux5lysuev, referencedTableName=cat_serv_rec_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-820::AndriusKarpavicius
ALTER TABLE cat_calendar_days ADD CONSTRAINT fk_jwbui370vw0u0i4bprhep89va FOREIGN KEY (day_id) REFERENCES cat_day_in_year (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-820', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1419, '9:17d535ee1764581127c4d18687a93369', 'addForeignKeyConstraint baseTableName=cat_calendar_days, constraintName=fk_jwbui370vw0u0i4bprhep89va, referencedTableName=cat_day_in_year', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-821::AndriusKarpavicius
ALTER TABLE crm_customer ADD CONSTRAINT fk_jy0ltntuxo83krlvovb0gmmcu FOREIGN KEY (customer_brand_id) REFERENCES crm_customer_brand (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-821', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1421, '9:758ff327830f1a88903dc135addf6d30', 'addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_jy0ltntuxo83krlvovb0gmmcu, referencedTableName=crm_customer_brand', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-829::AndriusKarpavicius
ALTER TABLE billing_trading_country ADD CONSTRAINT fk_k9rx9xam7tpfhxdd9ebir310v FOREIGN KEY (country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-829', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1423, '9:2be3f30a67eedc37b7929cc7c06fb8c1', 'addForeignKeyConstraint baseTableName=billing_trading_country, constraintName=fk_k9rx9xam7tpfhxdd9ebir310v, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-833::AndriusKarpavicius
ALTER TABLE billing_billing_run ADD CONSTRAINT fk_kh24jie5tlw4y93g44d4aq4es FOREIGN KEY (pr_language_id) REFERENCES adm_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-833', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1425, '9:1e19bd98dea3f8eee367f48e90aa5752', 'addForeignKeyConstraint baseTableName=billing_billing_run, constraintName=fk_kh24jie5tlw4y93g44d4aq4es, referencedTableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-837::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_kwd24d6mb0ac27a9smche8u8u FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-837', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1427, '9:6a7b40bd84d5e162b86a3c4301c49c8d', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_kwd24d6mb0ac27a9smche8u8u, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-840::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_seller_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE crm_customer ADD CONSTRAINT fk_cust_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE ar_customer_account ADD CONSTRAINT fk_ca_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ba_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_user_account ADD CONSTRAINT fk_ua_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE com_contact ADD CONSTRAINT fk_com_contact_title FOREIGN KEY (title_id) REFERENCES adm_title (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-840', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1429, '9:8856feeb254b405c9d552c6a72bec99e', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_seller_title, referencedTableName=adm_title; addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_cust_title, referencedTableName=adm_title; addForeignKeyConstrai...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-856::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_luc75yfv40lypmgdljmbeu1l2 FOREIGN KEY (trading_language_id) REFERENCES billing_trading_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-856', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1431, '9:c114e4324e5cf62d2531621ce86106ce', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_luc75yfv40lypmgdljmbeu1l2, referencedTableName=billing_trading_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-860::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_m1k0p8afwiq28x9jfexqy8bvx FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-860', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1433, '9:31f12390515e4fdb375fabeed2ab9bdb', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_m1k0p8afwiq28x9jfexqy8bvx, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-861::AndriusKarpavicius
ALTER TABLE cat_offer_serv_templates ADD CONSTRAINT fk_m4r0891967ixswyppuy3oh925 FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-861', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1435, '9:af8f81e5b3b63322ba6479416bc0a93b', 'addForeignKeyConstraint baseTableName=cat_offer_serv_templates, constraintName=fk_m4r0891967ixswyppuy3oh925, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-862::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_m5u8n11dsbf2q9yy5vy5ehwmf FOREIGN KEY (language_id) REFERENCES adm_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-862', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1437, '9:838064cfce549f61f915ceb9502b9a34', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_m5u8n11dsbf2q9yy5vy5ehwmf, referencedTableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-865::AndriusKarpavicius
ALTER TABLE cat_serv_trm_wallet_template ADD CONSTRAINT fk_mds23tfwffrfaiag61ujhh2mt FOREIGN KEY (wallet_template_id) REFERENCES cat_wallet_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-865', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1439, '9:f8d92a47a06e1dcc98b29901b900eeaa', 'addForeignKeyConstraint baseTableName=cat_serv_trm_wallet_template, constraintName=fk_mds23tfwffrfaiag61ujhh2mt, referencedTableName=cat_wallet_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-866::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_mhpt572myu8mok6vrf6kbari2 FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-866', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1441, '9:927dbd15ad33fbe0f7c6114549c2aa4b', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_mhpt572myu8mok6vrf6kbari2, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-868::AndriusKarpavicius
ALTER TABLE adm_notif_email_user ADD CONSTRAINT fk_mp4h7biod5wtjo1x3yp80q3um FOREIGN KEY (users_id) REFERENCES adm_user (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-868', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1443, '9:4f6366322ecffc8f8c0c9ba6bfbd6619', 'addForeignKeyConstraint baseTableName=adm_notif_email_user, constraintName=fk_mp4h7biod5wtjo1x3yp80q3um, referencedTableName=adm_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-871::AndriusKarpavicius
ALTER TABLE adm_notif_webhooks ADD CONSTRAINT fk_n1n2i3ht998wlegdshme4gykm FOREIGN KEY (id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-871', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1445, '9:538f412edcd886090dd047949b204c08', 'addForeignKeyConstraint baseTableName=adm_notif_webhooks, constraintName=fk_n1n2i3ht998wlegdshme4gykm, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-872::AndriusKarpavicius
ALTER TABLE billing_invoice_cat_lang ADD CONSTRAINT fk_n38yh52xgofxupiojjjp6w0ss FOREIGN KEY (invoice_category_id) REFERENCES billing_invoice_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-872', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1447, '9:384897bd667833aadf00ed56d80f6d86', 'addForeignKeyConstraint baseTableName=billing_invoice_cat_lang, constraintName=fk_n38yh52xgofxupiojjjp6w0ss, referencedTableName=billing_invoice_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-879::AndriusKarpavicius
ALTER TABLE billing_billing_account ADD CONSTRAINT fk_nhkxa8vr7ta6e0l7xg5j7injp FOREIGN KEY (billing_run) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-879', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1449, '9:3afd9c96a9e942551161e767f48bd077', 'addForeignKeyConstraint baseTableName=billing_billing_account, constraintName=fk_nhkxa8vr7ta6e0l7xg5j7injp, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-880::AndriusKarpavicius
ALTER TABLE ar_dunning_lot ADD CONSTRAINT fk_ni07ki1fjggoysarccglqdy7k FOREIGN KEY (dunning_history_id) REFERENCES bi_job_history (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-880', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1451, '9:2410437ac4e4f41dce30ee4ae400981d', 'addForeignKeyConstraint baseTableName=ar_dunning_lot, constraintName=fk_ni07ki1fjggoysarccglqdy7k, referencedTableName=bi_job_history', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-885::AndriusKarpavicius
ALTER TABLE adm_notif_email_attach ADD CONSTRAINT fk_nsvkcha8gfihqji903fs5n516 FOREIGN KEY (emailnotification_id) REFERENCES adm_notif_email (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-885', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1453, '9:bce19a8c04895269e4886477d8560efd', 'addForeignKeyConstraint baseTableName=adm_notif_email_attach, constraintName=fk_nsvkcha8gfihqji903fs5n516, referencedTableName=adm_notif_email', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-887::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_o2mp1mqcyi2l7q2b1p88h20dw FOREIGN KEY (billing_run_id) REFERENCES billing_billing_run (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-887', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1455, '9:f49d1e553129830a0ffba4c4debdc480', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_o2mp1mqcyi2l7q2b1p88h20dw, referencedTableName=billing_billing_run', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-889::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_o5yu3c0bnac626w755w5f0voc FOREIGN KEY (invoice_sub_category_id) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-889', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1457, '9:d7a5fb68068b6f227f5dcf8fce1d9937', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_o5yu3c0bnac626w755w5f0voc, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-897::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_oj0fk2nkpqevu9warau9u2m FOREIGN KEY (wallet_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-897', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1459, '9:3dc595b48a78d7df53c5cf0fa3ef8b79', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_oj0fk2nkpqevu9warau9u2m, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-903::AndriusKarpavicius
ALTER TABLE cat_serv_usage_charge_template ADD CONSTRAINT fk_oxrjl1e7g6y1ehtpbse9cl1bi FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-903', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1461, '9:7fdc6c0d88ba9096bb1b5f39f493cec1', 'addForeignKeyConstraint baseTableName=cat_serv_usage_charge_template, constraintName=fk_oxrjl1e7g6y1ehtpbse9cl1bi, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-906::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_p3lcj2g3sjry0355gqki3crfo FOREIGN KEY (invoicesubcategory) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-906', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1463, '9:14b2dbd13603b983f5c25e29316694cf', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_p3lcj2g3sjry0355gqki3crfo, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-912::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_pgo533tdbe0f5aq3rqv6oaouv FOREIGN KEY (trading_country) REFERENCES billing_trading_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-912', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1465, '9:02ad6d2b7d0771e1340c930937de9b93', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_pgo533tdbe0f5aq3rqv6oaouv, referencedTableName=billing_trading_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-916::AndriusKarpavicius
ALTER TABLE billing_user_account ADD CONSTRAINT fk_pvrmaqdyj4v7c2i5qa7cldvp6 FOREIGN KEY (termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-916', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1467, '9:2a42788cc01db1a483ba47e0a5f3d384', 'addForeignKeyConstraint baseTableName=billing_user_account, constraintName=fk_pvrmaqdyj4v7c2i5qa7cldvp6, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-917::AndriusKarpavicius
ALTER TABLE billing_billing_run ADD CONSTRAINT fk_pwbkc74fonnsw237agcx8q4yh FOREIGN KEY (pr_currency_id) REFERENCES adm_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-917', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1469, '9:07a9cf94cf4cac2639886fa43a41a822', 'addForeignKeyConstraint baseTableName=billing_billing_run, constraintName=fk_pwbkc74fonnsw237agcx8q4yh, referencedTableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-920::AndriusKarpavicius
ALTER TABLE billing_user_account ADD CONSTRAINT fk_q0dpia4wwv4l8x31b4ovxx7ce FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-920', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1471, '9:354c28d01da4e60a37a78ea273a669ad', 'addForeignKeyConstraint baseTableName=billing_user_account, constraintName=fk_q0dpia4wwv4l8x31b4ovxx7ce, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-921::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_q2j1979epl7edcd9uogum5f7w FOREIGN KEY (country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-921', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1473, '9:d2e4260f34354c0774cce766e7bd07b4', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_q2j1979epl7edcd9uogum5f7w, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-925::AndriusKarpavicius
ALTER TABLE report_emails ADD CONSTRAINT fk_q4qvf0tlci0disibhrkhm1j3y FOREIGN KEY (email_id) REFERENCES crm_email (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-925', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1475, '9:a73933c7b594134891f4907047b9da63', 'addForeignKeyConstraint baseTableName=report_emails, constraintName=fk_q4qvf0tlci0disibhrkhm1j3y, referencedTableName=crm_email', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-926::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT fk_q6d91d7b6bc2ypdbx4tjbr0ac FOREIGN KEY (sub_termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-926', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1477, '9:ad221a66b0670e82972ee0c6557b93af', 'addForeignKeyConstraint baseTableName=billing_subscription, constraintName=fk_q6d91d7b6bc2ypdbx4tjbr0ac, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-928::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_qfuhf684i6lsatohaxe9m2f61 FOREIGN KEY (offer_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-928', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1479, '9:652bbc98c0eb3350ec83ad43c35e9fb6', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_qfuhf684i6lsatohaxe9m2f61, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-931::AndriusKarpavicius
ALTER TABLE adm_user_role ADD CONSTRAINT fk_qm8p95secwfawo60ydmfexipj FOREIGN KEY (role_id) REFERENCES adm_role (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-931', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1481, '9:669bb988204eadf9215543216dca499e', 'addForeignKeyConstraint baseTableName=adm_user_role, constraintName=fk_qm8p95secwfawo60ydmfexipj, referencedTableName=adm_role', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-932::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_qnko98glwxl0fa47s3a2c13ib FOREIGN KEY (customer_id) REFERENCES crm_customer (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-932', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1483, '9:8716c7f4e701674ab085b636928cb3a3', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_qnko98glwxl0fa47s3a2c13ib, referencedTableName=crm_customer', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-936::AndriusKarpavicius
ALTER TABLE com_contact_com_message ADD CONSTRAINT fk_qt1luy1u282dcl8c3s8ct9erj FOREIGN KEY (com_contact_id) REFERENCES com_contact (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-936', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1485, '9:335de5bcf4f66725691c236f014dc7ea', 'addForeignKeyConstraint baseTableName=com_contact_com_message, constraintName=fk_qt1luy1u282dcl8c3s8ct9erj, referencedTableName=com_contact', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-939::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_qy24ot93d7lan8ghf0gek7wfb FOREIGN KEY (trading_currency) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-939', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1487, '9:84a40705b6d5317d34cfafe8b4b8e398', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_qy24ot93d7lan8ghf0gek7wfb, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-940::AndriusKarpavicius
ALTER TABLE dwh_measured_value ADD CONSTRAINT fk_r84wig2o1808ybsy4jm0158aj FOREIGN KEY (measurable_quantity) REFERENCES dwh_measurable_quant (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-940', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1489, '9:ae6745f4d4a4e9de299d0fb80a9fea3c', 'addForeignKeyConstraint baseTableName=dwh_measured_value, constraintName=fk_r84wig2o1808ybsy4jm0158aj, referencedTableName=dwh_measurable_quant', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-942::AndriusKarpavicius
ALTER TABLE billing_cycle ADD CONSTRAINT fk_r9kcmcn6nyrdvg5t81oowjf3q FOREIGN KEY (calendar) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-942', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1491, '9:e5d09e7a153359e390d3b20012f5807e', 'addForeignKeyConstraint baseTableName=billing_cycle, constraintName=fk_r9kcmcn6nyrdvg5t81oowjf3q, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-945::AndriusKarpavicius
ALTER TABLE com_msg_var_value ADD CONSTRAINT fk_rebglohh2k5d8etwlemsy42ey FOREIGN KEY (message) REFERENCES com_message (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-945', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1493, '9:848ed60548453fb42ef908c4078b11c8', 'addForeignKeyConstraint baseTableName=com_msg_var_value, constraintName=fk_rebglohh2k5d8etwlemsy42ey, referencedTableName=com_message', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-946::AndriusKarpavicius
ALTER TABLE bi_report_emails ADD CONSTRAINT fk_rfbvc0x1132dpv5vumm8lp76f FOREIGN KEY (report_id) REFERENCES bi_report (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-946', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1495, '9:ce325f07eeead4e2acea4cc3de454cfa', 'addForeignKeyConstraint baseTableName=bi_report_emails, constraintName=fk_rfbvc0x1132dpv5vumm8lp76f, referencedTableName=bi_report', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-947::AndriusKarpavicius
ALTER TABLE cat_serv_trm_charge_template ADD CONSTRAINT fk_rfluuqo2xx0vxu0410qtcls6m FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-947', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1497, '9:97ee0b07f3b1e714dcb354b401edfce1', 'addForeignKeyConstraint baseTableName=cat_serv_trm_charge_template, constraintName=fk_rfluuqo2xx0vxu0410qtcls6m, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-948::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_rjpm9k6xsumg297fxefffyryh FOREIGN KEY (aggregate_id_f) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-948', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1499, '9:016e6e9223b80e95911e562dda1bbf1b', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_rjpm9k6xsumg297fxefffyryh, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-949::AndriusKarpavicius
ALTER TABLE billing_chrginst_wallet ADD CONSTRAINT fk_rmhpvs7y2f70xbo4v94cg0lmy FOREIGN KEY (wallet_instance_id) REFERENCES billing_wallet (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-949', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1501, '9:7c27f6ffc916ad849420877c43a30288', 'addForeignKeyConstraint baseTableName=billing_chrginst_wallet, constraintName=fk_rmhpvs7y2f70xbo4v94cg0lmy, referencedTableName=billing_wallet', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-951::AndriusKarpavicius
ALTER TABLE adm_notif_history ADD CONSTRAINT fk_ro7f48utjcqduq62a0h9veyse FOREIGN KEY (notification_id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-951', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1503, '9:0a4cf3b75513e5eba47fe61f229e1270', 'addForeignKeyConstraint baseTableName=adm_notif_history, constraintName=fk_ro7f48utjcqduq62a0h9veyse, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-954::AndriusKarpavicius
ALTER TABLE adm_country ADD CONSTRAINT fk_rwj0gv80o7o8ufd4fgsweafcp FOREIGN KEY (language_id) REFERENCES adm_language (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-954', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1505, '9:e45440a48eaa1882121615a6b8b5a508', 'addForeignKeyConstraint baseTableName=adm_country, constraintName=fk_rwj0gv80o7o8ufd4fgsweafcp, referencedTableName=adm_language', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-955::AndriusKarpavicius
ALTER TABLE cat_calendar_days ADD CONSTRAINT fk_rwouj86saa1b0ox91xjgs05ea FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-955', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1507, '9:d9df72cdb4be3f949396807831dbe1a0', 'addForeignKeyConstraint baseTableName=cat_calendar_days, constraintName=fk_rwouj86saa1b0ox91xjgs05ea, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-958::AndriusKarpavicius
ALTER TABLE adm_role_permission ADD CONSTRAINT fk_s1wxui3m4sv9x5mbyi8gp77hu FOREIGN KEY (role_id) REFERENCES adm_role (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-958', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1509, '9:bce4ddf2f8f23e7d0885e8766bf4bcb4', 'addForeignKeyConstraint baseTableName=adm_role_permission, constraintName=fk_s1wxui3m4sv9x5mbyi8gp77hu, referencedTableName=adm_role', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-966::AndriusKarpavicius
ALTER TABLE ar_customer_account ADD CONSTRAINT fk_sj9gf0r8v1hjihl7qosbtnfdp FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-966', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1511, '9:c639d1a446fcdf4062acc121c9521daa', 'addForeignKeyConstraint baseTableName=ar_customer_account, constraintName=fk_sj9gf0r8v1hjihl7qosbtnfdp, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-970::AndriusKarpavicius
ALTER TABLE billing_tax_language ADD CONSTRAINT fk_stn0ce8rlgqun9j1acm9nx8tk FOREIGN KEY (tax_id) REFERENCES billing_tax (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-970', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1513, '9:a3fe18d9b141fc93add1788c8700d4fa', 'addForeignKeyConstraint baseTableName=billing_tax_language, constraintName=fk_stn0ce8rlgqun9j1acm9nx8tk, referencedTableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-972::AndriusKarpavicius
ALTER TABLE billing_discplan_inst ADD CONSTRAINT fk_syr7kuj91e9nvtj725becu8sr FOREIGN KEY (billing_account_id) REFERENCES billing_billing_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-972', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1515, '9:a2c3b1ab02b753a14eb2aa29d92a23c1', 'addForeignKeyConstraint baseTableName=billing_discplan_inst, constraintName=fk_syr7kuj91e9nvtj725becu8sr, referencedTableName=billing_billing_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-974::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_t98kqb1prnfw6scvudimx1u0q FOREIGN KEY (currency_id) REFERENCES adm_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-974', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1517, '9:e39e7b8b151a84c3b316e19daa40d92c', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_t98kqb1prnfw6scvudimx1u0q, referencedTableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-980::AndriusKarpavicius
ALTER TABLE billing_invoice_sub_cat ADD CONSTRAINT fk_thcocka474paj6d2ql8nnsvu1 FOREIGN KEY (invoice_category_id) REFERENCES billing_invoice_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-980', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1519, '9:69ac3b4979b37a3b16aa63d20e6ded6c', 'addForeignKeyConstraint baseTableName=billing_invoice_sub_cat, constraintName=fk_thcocka474paj6d2ql8nnsvu1, referencedTableName=billing_invoice_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-981::AndriusKarpavicius
ALTER TABLE cat_serv_usage_wallet_template ADD CONSTRAINT fk_tiptj63pxitxaivwa5pc9m6gm FOREIGN KEY (service_usage_templt_id) REFERENCES cat_serv_usage_charge_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-981', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1521, '9:4bd91b8a1df51ab34d7f393f51f5ee32', 'addForeignKeyConstraint baseTableName=cat_serv_usage_wallet_template, constraintName=fk_tiptj63pxitxaivwa5pc9m6gm, referencedTableName=cat_serv_usage_charge_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-983::AndriusKarpavicius
ALTER TABLE cat_calendar ADD CONSTRAINT fk_tl28syslj879hbfvlau8n4gym FOREIGN KEY (join_cal_1_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-983', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1523, '9:53e806dce6d09a2915aea22b913d855c', 'addForeignKeyConstraint baseTableName=cat_calendar, constraintName=fk_tl28syslj879hbfvlau8n4gym, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-984::AndriusKarpavicius
ALTER TABLE billing_trading_currency ADD CONSTRAINT fk_tmo8nfjd2matrvhtdgw1fp7m2 FOREIGN KEY (currency_id) REFERENCES adm_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-984', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1525, '9:e728cd9922444dd04ed14e1c6f5d5e4b', 'addForeignKeyConstraint baseTableName=billing_trading_currency, constraintName=fk_tmo8nfjd2matrvhtdgw1fp7m2, referencedTableName=adm_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-988::AndriusKarpavicius
ALTER TABLE ar_matching_amount ADD CONSTRAINT fk_wnbeqoiv9cho17331pob3t8j FOREIGN KEY (matching_code_id) REFERENCES ar_matching_code (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-988', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1527, '9:f1da574cd010a2eccad1db63784c812e', 'addForeignKeyConstraint baseTableName=ar_matching_amount, constraintName=fk_wnbeqoiv9cho17331pob3t8j, referencedTableName=ar_matching_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-992::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fkc92fa77a520f2e17 FOREIGN KEY (sub_cat_invoice_agregate_id) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-992', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1529, '9:f0b0f967f2ab75b3321389a2887ee0d9', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fkc92fa77a520f2e17, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-996::AndriusKarpavicius
ALTER TABLE adm_notification_params ADD CONSTRAINT fk_params_notification FOREIGN KEY (notification_id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-996', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1531, '9:2e4e0b8cc236ab361da1c773ce03d7f0', 'addForeignKeyConstraint baseTableName=adm_notification_params, constraintName=fk_params_notification, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-997::AndriusKarpavicius
ALTER TABLE adm_notif_job_params ADD CONSTRAINT fk_params_job_trigger FOREIGN KEY (jobtrigger_id) REFERENCES adm_notif_job (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-997', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1533, '9:187638f3b4eca79279ad2b0269606bf9', 'addForeignKeyConstraint baseTableName=adm_notif_job_params, constraintName=fk_params_job_trigger, referencedTableName=adm_notif_job', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1000::AndriusKarpavicius
ALTER TABLE meveo_filter_oc_field_names ADD CONSTRAINT fk_meveo_filter_order_condition_field_names FOREIGN KEY (order_condition_id) REFERENCES meveo_filter_order_condition (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1000', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1535, '9:b3a4fb9f4d3017c1456479a8ea67be89', 'addForeignKeyConstraint baseTableName=meveo_filter_oc_field_names, constraintName=fk_meveo_filter_order_condition_field_names, referencedTableName=meveo_filter_order_condition', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1003::AndriusKarpavicius
ALTER TABLE meveo_filter ADD CONSTRAINT fk_meveo_filter_filter_condition FOREIGN KEY (filter_condition_id) REFERENCES meveo_filter_condition (id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE meveo_filter ADD CONSTRAINT fk_meveo_filter_order_condition FOREIGN KEY (order_condition_id) REFERENCES meveo_filter_order_condition (id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE meveo_filter ADD CONSTRAINT fk_meveo_filter_primary_selector FOREIGN KEY (primary_selector_id) REFERENCES meveo_filter_selector (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1003', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1537, '9:af6f4f337d83c0a7edb3027778ee9c32', 'addForeignKeyConstraint baseTableName=meveo_filter, constraintName=fk_meveo_filter_filter_condition, referencedTableName=meveo_filter_condition; addForeignKeyConstraint baseTableName=meveo_filter, constraintName=fk_meveo_filter_order_condition, re...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1004::AndriusKarpavicius
ALTER TABLE meveo_filter_selector ADD CONSTRAINT fk_meveo_filter_secondary_selector FOREIGN KEY (filter_id) REFERENCES meveo_filter (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1004', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1539, '9:8fbe2ef70632a66619a18108ab2105f6', 'addForeignKeyConstraint baseTableName=meveo_filter_selector, constraintName=fk_meveo_filter_secondary_selector, referencedTableName=meveo_filter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1006::AndriusKarpavicius
ALTER TABLE meveo_filter_condition ADD CONSTRAINT fk_meveo_or_composite_filter_condition_or FOREIGN KEY (composite_or_filter_condition_id) REFERENCES meveo_or_composite_filter_condition (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1006', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1541, '9:c3c5b0ce1f222cb92bcbf83538e8cc24', 'addForeignKeyConstraint baseTableName=meveo_filter_condition, constraintName=fk_meveo_or_composite_filter_condition_or, referencedTableName=meveo_or_composite_filter_condition', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1007::AndriusKarpavicius
ALTER TABLE meveo_filter_condition ADD CONSTRAINT fk_meveo_and_composite_filter_condition_and FOREIGN KEY (composite_and_filter_condition_id) REFERENCES meveo_and_composite_filter_condition (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1007', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1543, '9:a8d57fc73a40dc63016b44222d40ad2b', 'addForeignKeyConstraint baseTableName=meveo_filter_condition, constraintName=fk_meveo_and_composite_filter_condition_and, referencedTableName=meveo_and_composite_filter_condition', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1008::AndriusKarpavicius
ALTER TABLE meveo_filter_selector_display_fields ADD CONSTRAINT fk_meveo_filter_selector_display_fields FOREIGN KEY (filter_selector_id) REFERENCES meveo_filter_selector (id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE meveo_filter_selector_export_fields ADD CONSTRAINT fk_meveo_filter_selector_export_fields FOREIGN KEY (filter_selector_id) REFERENCES meveo_filter_selector (id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE meveo_filter_selector_ignore_fields ADD CONSTRAINT fk_filter_selector_ignore_fields FOREIGN KEY (filter_selector_id) REFERENCES meveo_filter_selector (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1008', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1545, '9:3af7660e66e0e0e274cbde24cbe94970', 'addForeignKeyConstraint baseTableName=meveo_filter_selector_display_fields, constraintName=fk_meveo_filter_selector_display_fields, referencedTableName=meveo_filter_selector; addForeignKeyConstraint baseTableName=meveo_filter_selector_export_field...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1009::AndriusKarpavicius
ALTER TABLE job_execution ADD CONSTRAINT fk_job_execution_job_instance_id FOREIGN KEY (job_instance_id) REFERENCES meveo_job_instance (id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE ar_customer_account ADD CONSTRAINT fk_ar_credit_category_ar_customer_account FOREIGN KEY (credit_category_id) REFERENCES ar_credit_category (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1009', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1547, '9:fd55345b80fb37a08218353966d975f7', 'addForeignKeyConstraint baseTableName=job_execution, constraintName=fk_job_execution_job_instance_id, referencedTableName=meveo_job_instance; addForeignKeyConstraint baseTableName=ar_customer_account, constraintName=fk_ar_credit_category_ar_custom...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1011::AndriusKarpavicius
ALTER TABLE com_meveo_instance ADD CONSTRAINT fk_398jtw7cvvcjmyalvke9iwoqw FOREIGN KEY (customer_id) REFERENCES crm_customer (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE com_meveo_instance ADD CONSTRAINT fk_userid FOREIGN KEY (user_id) REFERENCES adm_user (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1011', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1549, '9:293a4fe28bb51cb65e98218d71f46762', 'addForeignKeyConstraint baseTableName=com_meveo_instance, constraintName=fk_398jtw7cvvcjmyalvke9iwoqw, referencedTableName=crm_customer; addForeignKeyConstraint baseTableName=com_meveo_instance, constraintName=fk_userid, referencedTableName=adm_user', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1013::AndriusKarpavicius
ALTER TABLE crm_custom_field_tmpl ADD CONSTRAINT fk_cft_calendar FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1013', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1551, '9:db684489d31a43dee6f87d87b7e23a82', 'addForeignKeyConstraint baseTableName=crm_custom_field_tmpl, constraintName=fk_cft_calendar, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1016::AndriusKarpavicius
ALTER TABLE meveo_job_instance ADD CONSTRAINT fk_following_job_id FOREIGN KEY (following_job_id) REFERENCES meveo_job_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE meveo_job_instance ADD CONSTRAINT fk_4hgoocwc77rh6ne8fct0f2y2h FOREIGN KEY (timerentity_id) REFERENCES meveo_timer (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1016', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1553, '9:2faa5a3adc581ba3be749d2ef0947ed2', 'addForeignKeyConstraint baseTableName=meveo_job_instance, constraintName=fk_following_job_id, referencedTableName=meveo_job_instance; addForeignKeyConstraint baseTableName=meveo_job_instance, constraintName=fk_4hgoocwc77rh6ne8fct0f2y2h, referenced...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1018::AndriusKarpavicius
ALTER TABLE adm_notification ADD CONSTRAINT fk_notif_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1018', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1555, '9:5d95c56a4583be812f43f70a88b6a25e', 'addForeignKeyConstraint baseTableName=adm_notification, constraintName=fk_notif_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1019::AndriusKarpavicius
ALTER TABLE adm_notif_job ADD CONSTRAINT fk_job_trigger_notif FOREIGN KEY (job_instance_id) REFERENCES meveo_job_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1019', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1557, '9:26fb1c2cc1af7bac865af047c4db1583', 'addForeignKeyConstraint baseTableName=adm_notif_job, constraintName=fk_job_trigger_notif, referencedTableName=meveo_job_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1027::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_billing_invoice_adjusted_invoice FOREIGN KEY (invoice_id) REFERENCES billing_invoice (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1027', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1559, '9:4c271a7a7f485fcb3f40d9c3f28a9ea0', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_billing_invoice_adjusted_invoice, referencedTableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1032::AndriusKarpavicius
ALTER TABLE adm_script_notification ADD CONSTRAINT fk_n1n2i3ht998wlegdshme8gyfd FOREIGN KEY (id) REFERENCES adm_notification (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1032', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1561, '9:d5a0ad227151b2af9e6bd11953f6b5aa', 'addForeignKeyConstraint baseTableName=adm_script_notification, constraintName=fk_n1n2i3ht998wlegdshme8gyfd, referencedTableName=adm_notification', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1039::AndriusKarpavicius
ALTER TABLE meveo_module_item ADD CONSTRAINT fk_meveo_module_item_meveo_module FOREIGN KEY (module_id) REFERENCES meveo_module (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1039', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1563, '9:cdcf805b8d93b7204a19931972480171', 'addForeignKeyConstraint baseTableName=meveo_module_item, constraintName=fk_meveo_module_item_meveo_module, referencedTableName=meveo_module', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1044::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_cat_offer_template_script_instance_termination FOREIGN KEY (termination_script_instance_id) REFERENCES meveo_script_instance (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1044', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1565, '9:081957d68faf85d67d9107e07d7dc5e9', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_cat_offer_template_script_instance_termination, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1045::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_cat_offer_template_script_instance_subscription FOREIGN KEY (subscription_script_instance_id) REFERENCES meveo_script_instance (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1045', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1567, '9:b634066acda549d51b336bc7308c5167', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_cat_offer_template_script_instance_subscription, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1046::AndriusKarpavicius
ALTER TABLE cat_service_template ADD CONSTRAINT fk_cat_service_template_script_instance_termination FOREIGN KEY (termination_script_instance_id) REFERENCES meveo_script_instance (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1046', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1569, '9:9e3fda03156c2238ed82ad4c75a28dea', 'addForeignKeyConstraint baseTableName=cat_service_template, constraintName=fk_cat_service_template_script_instance_termination, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1047::AndriusKarpavicius
ALTER TABLE cat_service_template ADD CONSTRAINT fk_cat_service_template_script_instance_activation FOREIGN KEY (activation_script_instance_id) REFERENCES meveo_script_instance (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1047', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1571, '9:16af4ad0b539eba5c290dd4d5316a334', 'addForeignKeyConstraint baseTableName=cat_service_template, constraintName=fk_cat_service_template_script_instance_activation, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1050::AndriusKarpavicius
ALTER TABLE adm_script_exec_role ADD CONSTRAINT fk_sc_exc_role_sc FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1050', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1573, '9:1a1509251c4c3359d40e5f9cae7f5076', 'addForeignKeyConstraint baseTableName=adm_script_exec_role, constraintName=fk_sc_exc_role_sc, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1052::AndriusKarpavicius
ALTER TABLE adm_script_sourc_role ADD CONSTRAINT fk_sc_src_role_sc FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1052', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1575, '9:94546275cecd0655f0903924780c6135', 'addForeignKeyConstraint baseTableName=adm_script_sourc_role, constraintName=fk_sc_src_role_sc, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1057::AndriusKarpavicius
ALTER TABLE cat_offer_template_category ADD CONSTRAINT fk_offer_cat_template_offer_cat_template FOREIGN KEY (offer_template_category_id) REFERENCES cat_offer_template_category (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1057', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1577, '9:d5681c8f879c23091dd83d1ff129518d', 'addForeignKeyConstraint baseTableName=cat_offer_template_category, constraintName=fk_offer_cat_template_offer_cat_template, referencedTableName=cat_offer_template_category', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1058::AndriusKarpavicius
ALTER TABLE cat_business_offer_model ADD CONSTRAINT fk_cat_bom_meveo_module FOREIGN KEY (id) REFERENCES meveo_module (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1058', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1579, '9:be5164360ffc221609520065fc727643', 'addForeignKeyConstraint baseTableName=cat_business_offer_model, constraintName=fk_cat_bom_meveo_module, referencedTableName=meveo_module', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1059::AndriusKarpavicius
ALTER TABLE cat_business_offer_model ADD CONSTRAINT fk_cat_bom_offer_template FOREIGN KEY (offer_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1059', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1581, '9:b64c53684f599e69d7a4ed78448328e0', 'addForeignKeyConstraint baseTableName=cat_business_offer_model, constraintName=fk_cat_bom_offer_template, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1061::AndriusKarpavicius
ALTER TABLE cat_business_serv_model ADD CONSTRAINT fk_cat_bsm_meveo_module FOREIGN KEY (id) REFERENCES meveo_module (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1061', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1583, '9:2e6ad3570c435bb9014467ec64d4c544', 'addForeignKeyConstraint baseTableName=cat_business_serv_model, constraintName=fk_cat_bsm_meveo_module, referencedTableName=meveo_module', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1062::AndriusKarpavicius
ALTER TABLE cat_business_serv_model ADD CONSTRAINT fk_cat_bsm_service_template FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1062', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1585, '9:c111d1bfae7c3aa9a677e1b943541c23', 'addForeignKeyConstraint baseTableName=cat_business_serv_model, constraintName=fk_cat_bsm_service_template, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1064::AndriusKarpavicius
ALTER TABLE cat_offer_serv_incomp ADD CONSTRAINT fk_cat_os_incomp_service_template FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1064', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1587, '9:0e9f128d02bb9e9c0ede9a4878ae3377', 'addForeignKeyConstraint baseTableName=cat_offer_serv_incomp, constraintName=fk_cat_os_incomp_service_template, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1065::AndriusKarpavicius
ALTER TABLE cat_offer_serv_incomp ADD CONSTRAINT fk_cat_os_incomp_offer_template FOREIGN KEY (offer_service_template_id) REFERENCES cat_offer_serv_templates (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1065', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1589, '9:9db99b8d546af1de9e504254938b336f', 'addForeignKeyConstraint baseTableName=cat_offer_serv_incomp, constraintName=fk_cat_os_incomp_offer_template, referencedTableName=cat_offer_serv_templates', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1066::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_cat_offer_template_bom FOREIGN KEY (business_offer_model_id) REFERENCES cat_business_offer_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1066', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1591, '9:8b94227620225393b29baa2584e4b1e0', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_cat_offer_template_bom, referencedTableName=cat_business_offer_model', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1067::AndriusKarpavicius
ALTER TABLE cat_service_template ADD CONSTRAINT fk_cat_service_template_bsm FOREIGN KEY (business_service_model_id) REFERENCES cat_business_serv_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1067', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1593, '9:9fb149df4cdefb78e31c0e5782e6c72c', 'addForeignKeyConstraint baseTableName=cat_service_template, constraintName=fk_cat_service_template_bsm, referencedTableName=cat_business_serv_model', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1068::AndriusKarpavicius
ALTER TABLE crm_custom_field_tmpl_mcols ADD CONSTRAINT fk_cft_mcols_cft FOREIGN KEY (cft_id) REFERENCES crm_custom_field_tmpl (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1068', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1595, '9:0336e12ae5df8efe8fc31b634c3f3df6', 'addForeignKeyConstraint baseTableName=crm_custom_field_tmpl_mcols, constraintName=fk_cft_mcols_cft, referencedTableName=crm_custom_field_tmpl', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1073::AndriusKarpavicius
ALTER TABLE ar_revenue_recog_rule ADD CONSTRAINT fk_ar_revenue_recog_rule_script FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1073', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1597, '9:7342dd0f3fa7eca3dbac77caa3ad376f', 'addForeignKeyConstraint baseTableName=ar_revenue_recog_rule, constraintName=fk_ar_revenue_recog_rule_script, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1074::AndriusKarpavicius
ALTER TABLE cat_charge_template ADD CONSTRAINT fk_cat_charge_template_recog_rule FOREIGN KEY (revenue_recog_rule_id) REFERENCES ar_revenue_recog_rule (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1074', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1599, '9:94db31e2d31de5dab67b6f81e6a558aa', 'addForeignKeyConstraint baseTableName=cat_charge_template, constraintName=fk_cat_charge_template_recog_rule, referencedTableName=ar_revenue_recog_rule', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1076::AndriusKarpavicius
ALTER TABLE ar_revenue_schedule ADD CONSTRAINT fk_ar_revenue_schedule_charge FOREIGN KEY (charge_instance_id) REFERENCES billing_charge_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1076', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1601, '9:c8b29bd760bff4de4bf99fafcbac06c2', 'addForeignKeyConstraint baseTableName=ar_revenue_schedule, constraintName=fk_ar_revenue_schedule_charge, referencedTableName=billing_charge_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1078::AndriusKarpavicius
ALTER TABLE meveo_module ADD CONSTRAINT fk_meveo_module_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1078', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1603, '9:044e885ad8bdf41391d1572ec21a8298', 'addForeignKeyConstraint baseTableName=meveo_module, constraintName=fk_meveo_module_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1082::AndriusKarpavicius
ALTER TABLE crm_custom_action ADD CONSTRAINT fk_cust_action_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1082', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1605, '9:5b6a14cf9eb03d698ae2b61ffe879e84', 'addForeignKeyConstraint baseTableName=crm_custom_action, constraintName=fk_cust_action_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1086::AndriusKarpavicius
ALTER TABLE billing_invoice_type ADD CONSTRAINT fk_occ_template_id_billing_invoice_type FOREIGN KEY (occ_template_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1086', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1607, '9:ad63d4617b65257a6c86e4c5df30e397', 'addForeignKeyConstraint baseTableName=billing_invoice_type, constraintName=fk_occ_template_id_billing_invoice_type, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1087::AndriusKarpavicius
ALTER TABLE billing_invoice_type_applies_to ADD CONSTRAINT fk_invoice_type_appl_to_id_billing_invoice_type_applies_to FOREIGN KEY (invoice_type_id) REFERENCES billing_invoice_type (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1087', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1609, '9:6d242e68197cfb3d077661f7329e62c3', 'addForeignKeyConstraint baseTableName=billing_invoice_type_applies_to, constraintName=fk_invoice_type_appl_to_id_billing_invoice_type_applies_to, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1088::AndriusKarpavicius
ALTER TABLE billing_invoice_type_applies_to ADD CONSTRAINT fk_applies_to_id_billing_invoice_type_applies_to FOREIGN KEY (applies_to_id) REFERENCES billing_invoice_type (id) ON UPDATE CASCADE ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1088', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1611, '9:64cb686585182057cdd9419f192c1720', 'addForeignKeyConstraint baseTableName=billing_invoice_type_applies_to, constraintName=fk_applies_to_id_billing_invoice_type_applies_to, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1089::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_invoice_type_id_billing_invoice FOREIGN KEY (invoice_type_id) REFERENCES billing_invoice_type (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1089', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1613, '9:4075d68bcd9f308aeb66170f865095da', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_invoice_type_id_billing_invoice, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1092::AndriusKarpavicius
ALTER TABLE billing_cycle ADD CONSTRAINT fk_invoice_type_id_billing_cycle FOREIGN KEY (invoice_type_id) REFERENCES billing_invoice_type (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1092', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1615, '9:42493aba85830cfcf9ca3bd48b967527', 'addForeignKeyConstraint baseTableName=billing_cycle, constraintName=fk_invoice_type_id_billing_cycle, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1093::AndriusKarpavicius
ALTER TABLE billing_invoice_type ADD CONSTRAINT fk_occ_templ_negative_id_billing_invoice_type FOREIGN KEY (occ_templ_negative_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1093', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1617, '9:8fb2150f450a5a5bea3564a310088065', 'addForeignKeyConstraint baseTableName=billing_invoice_type, constraintName=fk_occ_templ_negative_id_billing_invoice_type, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1094::AndriusKarpavicius
ALTER TABLE cat_triggered_edr ADD CONSTRAINT fk_meveo_instance_id_com_meveo_instance FOREIGN KEY (meveo_instance_id) REFERENCES com_meveo_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1094', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1619, '9:ec0ed7726c754f0e84eef6655059b646', 'addForeignKeyConstraint baseTableName=cat_triggered_edr, constraintName=fk_meveo_instance_id_com_meveo_instance, referencedTableName=com_meveo_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1101::AndriusKarpavicius
ALTER TABLE ord_order_item ADD CONSTRAINT fk_ord_order_item_ord_order FOREIGN KEY (order_id) REFERENCES ord_order (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1101', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1621, '9:5202835101b240bca0e369bd15686357', 'addForeignKeyConstraint baseTableName=ord_order_item, constraintName=fk_ord_order_item_ord_order, referencedTableName=ord_order', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1102::AndriusKarpavicius
ALTER TABLE ord_order_item ADD CONSTRAINT fk_ord_order_item_user_account FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1102', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1623, '9:f6745c134deb10180294262cb7276060', 'addForeignKeyConstraint baseTableName=ord_order_item, constraintName=fk_ord_order_item_user_account, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1103::AndriusKarpavicius
ALTER TABLE ord_order_item ADD CONSTRAINT fk_ord_order_item_subscription FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1103', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1625, '9:68a3e3e623fe36ffa84a8b2e87c3601c', 'addForeignKeyConstraint baseTableName=ord_order_item, constraintName=fk_ord_order_item_subscription, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1107::AndriusKarpavicius
ALTER TABLE cat_product_offer_digital_res ADD CONSTRAINT fk_cat_product_offer_digital_res_l FOREIGN KEY (product_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1107', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1627, '9:a240443af941b483f24543d05d999945', 'addForeignKeyConstraint baseTableName=cat_product_offer_digital_res, constraintName=fk_cat_product_offer_digital_res_l, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1108::AndriusKarpavicius
ALTER TABLE cat_product_offer_digital_res ADD CONSTRAINT fk_cat_product_offer_digital_res_r FOREIGN KEY (digital_resource_id) REFERENCES cat_digital_resource (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1108', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1629, '9:a64a3d037555ae7914bf9741837c1f45', 'addForeignKeyConstraint baseTableName=cat_product_offer_digital_res, constraintName=fk_cat_product_offer_digital_res_r, referencedTableName=cat_digital_resource', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1110::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_cat_off_tpl_buss_prod_mod FOREIGN KEY (business_product_model_id) REFERENCES cat_business_product_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1110', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1631, '9:27ce80b7ed2597ecf490499983c0187c', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_cat_off_tpl_buss_prod_mod, referencedTableName=cat_business_product_model', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1111::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_off_tpl_prodcal FOREIGN KEY (invoicing_calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1111', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1633, '9:639ffba65ec613fa7bf6d4a74095014e', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_off_tpl_prodcal, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1112::AndriusKarpavicius
ALTER TABLE cat_offer_product_template ADD CONSTRAINT fk_cat_off_pro_tpl_offer_template FOREIGN KEY (offer_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1112', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1635, '9:75883a487019ca0c45d149bce1f1947b', 'addForeignKeyConstraint baseTableName=cat_offer_product_template, constraintName=fk_cat_off_pro_tpl_offer_template, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1113::AndriusKarpavicius
ALTER TABLE cat_offer_product_template ADD CONSTRAINT fk_cat_off_prod_tpl_off_tpl FOREIGN KEY (product_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1113', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1637, '9:d0a956b9e3c8fb7e3efd78a05e398ad5', 'addForeignKeyConstraint baseTableName=cat_offer_product_template, constraintName=fk_cat_off_prod_tpl_off_tpl, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1114::AndriusKarpavicius
ALTER TABLE cat_bundle_product_template ADD CONSTRAINT fk_cat_bun_pro_tpl_prod_off_tpl FOREIGN KEY (product_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1114', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1639, '9:578ef2cd1c9f4055c5b29b0de4fbd4ab', 'addForeignKeyConstraint baseTableName=cat_bundle_product_template, constraintName=fk_cat_bun_pro_tpl_prod_off_tpl, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1115::AndriusKarpavicius
ALTER TABLE cat_bundle_product_template ADD CONSTRAINT fk_cat_bun_prod_tpl_prod_off_tpl FOREIGN KEY (bundle_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1115', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1641, '9:351533aa7fe85fe668e9bcaf1984b24e', 'addForeignKeyConstraint baseTableName=cat_bundle_product_template, constraintName=fk_cat_bun_prod_tpl_prod_off_tpl, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1116::AndriusKarpavicius
ALTER TABLE billing_charge_instance ADD CONSTRAINT fk_chrg_instance_ua FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1116', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1643, '9:7e92900797295a442bf10f6964f31950', 'addForeignKeyConstraint baseTableName=billing_charge_instance, constraintName=fk_chrg_instance_ua, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1121::AndriusKarpavicius
ALTER TABLE billing_product_instance ADD CONSTRAINT fk_productci_off_tpl FOREIGN KEY (product_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1121', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1645, '9:47f125a18f5e32ed0c5c2b607091bfaa', 'addForeignKeyConstraint baseTableName=billing_product_instance, constraintName=fk_productci_off_tpl, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1122::AndriusKarpavicius
ALTER TABLE billing_product_instance ADD CONSTRAINT fk_prod_instance_ua FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1122', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1647, '9:c0b44198d57b75f9f3c664db25766ba4', 'addForeignKeyConstraint baseTableName=billing_product_instance, constraintName=fk_prod_instance_ua, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1123::AndriusKarpavicius
ALTER TABLE ord_item_prd_instance ADD CONSTRAINT fk_ord_item_prd_instance_order FOREIGN KEY (order_item_id) REFERENCES ord_order_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1123', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1649, '9:4393292c6925cac4683a17ce585fa135', 'addForeignKeyConstraint baseTableName=ord_item_prd_instance, constraintName=fk_ord_item_prd_instance_order, referencedTableName=ord_order_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1124::AndriusKarpavicius
ALTER TABLE ord_item_prd_instance ADD CONSTRAINT fk_ord_item_prd_instance_prd_instance FOREIGN KEY (prd_instance_id) REFERENCES billing_product_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1124', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1651, '9:2183199a5b3a1978a185751419dc48b7', 'addForeignKeyConstraint baseTableName=ord_item_prd_instance, constraintName=fk_ord_item_prd_instance_prd_instance, referencedTableName=billing_product_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1125::AndriusKarpavicius
ALTER TABLE ord_item_offerings ADD CONSTRAINT fk_ord_item_offerings_order FOREIGN KEY (order_item_id) REFERENCES ord_order_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1125', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1653, '9:0e4dd649f9cd8f7314d7ac143783817f', 'addForeignKeyConstraint baseTableName=ord_item_offerings, constraintName=fk_ord_item_offerings_order, referencedTableName=ord_order_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1126::AndriusKarpavicius
ALTER TABLE ord_item_offerings ADD CONSTRAINT fk_ord_item_offerings_prd_offering FOREIGN KEY (prd_offering_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1126', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1655, '9:12a84dd4d12006e27ce0b62d42c57f67', 'addForeignKeyConstraint baseTableName=ord_item_offerings, constraintName=fk_ord_item_offerings_prd_offering, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1130::AndriusKarpavicius
ALTER TABLE hierarchy_entity ADD CONSTRAINT fk_hierarchy_entity_hierarchy_entity FOREIGN KEY (parent_id) REFERENCES hierarchy_entity (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1130', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1657, '9:947f99bfde716ee3183971a6287c70e7', 'addForeignKeyConstraint baseTableName=hierarchy_entity, constraintName=fk_hierarchy_entity_hierarchy_entity, referencedTableName=hierarchy_entity', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1135::AndriusKarpavicius
ALTER TABLE wf_transition_decision_rule ADD CONSTRAINT fk_transition_id_wf_transition FOREIGN KEY (transition_id) REFERENCES wf_transition (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1135', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1659, '9:af47b1c6dd85cb52a0a98288225a2602', 'addForeignKeyConstraint baseTableName=wf_transition_decision_rule, constraintName=fk_transition_id_wf_transition, referencedTableName=wf_transition', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1136::AndriusKarpavicius
ALTER TABLE wf_transition_decision_rule ADD CONSTRAINT fk_decision_rule_id_decision_rule FOREIGN KEY (decision_rule_id) REFERENCES wf_decision_rule (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1136', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1661, '9:c24963e9c3d18784e2394aae78876cfa', 'addForeignKeyConstraint baseTableName=wf_transition_decision_rule, constraintName=fk_decision_rule_id_decision_rule, referencedTableName=wf_decision_rule', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1137::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_seller_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE crm_customer ADD CONSTRAINT fk_cust_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE ar_customer_account ADD CONSTRAINT fk_ca_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ba_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_user_account ADD CONSTRAINT fk_ua_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE com_contact ADD CONSTRAINT fk_com_contact_bam FOREIGN KEY (bam_id) REFERENCES crm_business_account_model (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1137', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1663, '9:3e27b91254f68565baf38e5b914d8707', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_seller_bam, referencedTableName=crm_business_account_model; addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_cust_bam, referencedTableName=crm_business_accoun...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1143::AndriusKarpavicius
ALTER TABLE wf_history ADD CONSTRAINT fk_workflow_wf_history_wf_workflow FOREIGN KEY (workflow_id) REFERENCES wf_workflow (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1143', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1665, '9:d175d8803f137ca146aebeb704bbbf2a', 'addForeignKeyConstraint baseTableName=wf_history, constraintName=fk_workflow_wf_history_wf_workflow, referencedTableName=wf_workflow', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1144::AndriusKarpavicius
ALTER TABLE wf_history_action ADD CONSTRAINT fk_workflow_history_wf_history_action_wf_history FOREIGN KEY (wf_history_id) REFERENCES wf_history (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1144', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1667, '9:cd8029ed8d9820b53c6f9d04245cd2b1', 'addForeignKeyConstraint baseTableName=wf_history_action, constraintName=fk_workflow_history_wf_history_action_wf_history, referencedTableName=wf_history', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1151::AndriusKarpavicius
ALTER TABLE ord_quote_item ADD CONSTRAINT fk_ord_quote_item_ord_order FOREIGN KEY (quote_id) REFERENCES ord_quote (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1151', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1669, '9:37e73f9d8685d3950617d3a745aa78e2', 'addForeignKeyConstraint baseTableName=ord_quote_item, constraintName=fk_ord_quote_item_ord_order, referencedTableName=ord_quote', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1152::AndriusKarpavicius
ALTER TABLE ord_quote_item ADD CONSTRAINT fk_ord_quote_item_user_account FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1152', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1671, '9:532ec4376ba6577271b744486f184f8a', 'addForeignKeyConstraint baseTableName=ord_quote_item, constraintName=fk_ord_quote_item_user_account, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1153::AndriusKarpavicius
ALTER TABLE ord_quot_item_offerings ADD CONSTRAINT fk_ord_quote_item_offerings_order FOREIGN KEY (quote_item_id) REFERENCES ord_quote_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1153', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1673, '9:55b5aa7d0fc5e8e4b1d59181465255c5', 'addForeignKeyConstraint baseTableName=ord_quot_item_offerings, constraintName=fk_ord_quote_item_offerings_order, referencedTableName=ord_quote_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1154::AndriusKarpavicius
ALTER TABLE ord_quot_item_offerings ADD CONSTRAINT fk_ord_quote_item_offerings_prd_offering FOREIGN KEY (prd_offering_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1154', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1675, '9:c22ede419fd1ef6302b873f11003ae37', 'addForeignKeyConstraint baseTableName=ord_quot_item_offerings, constraintName=fk_ord_quote_item_offerings_prd_offering, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1155::AndriusKarpavicius
ALTER TABLE billing_invoices_orders ADD CONSTRAINT "fk_invoice_id_bill_invoices-orders" FOREIGN KEY (invoice_id) REFERENCES billing_invoice (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1155', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1677, '9:23c97d6f4062667cb589fe220b5dbda4', 'addForeignKeyConstraint baseTableName=billing_invoices_orders, constraintName=fk_invoice_id_bill_invoices-orders, referencedTableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1156::AndriusKarpavicius
ALTER TABLE billing_invoices_orders ADD CONSTRAINT "fk_order_id_bill_invoices-orders" FOREIGN KEY (order_id) REFERENCES ord_order (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1156', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1679, '9:aa3f42e26126159887bc4d35c9c7c3a8', 'addForeignKeyConstraint baseTableName=billing_invoices_orders, constraintName=fk_order_id_bill_invoices-orders, referencedTableName=ord_order', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1158::AndriusKarpavicius
ALTER TABLE cat_product_templ_charge_templ ADD CONSTRAINT fk_prd_templ_ct_pt_id FOREIGN KEY (product_template_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1158', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1681, '9:be9315eb1cea61f1a4d6e95235169d52', 'addForeignKeyConstraint baseTableName=cat_product_templ_charge_templ, constraintName=fk_prd_templ_ct_pt_id, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1159::AndriusKarpavicius
ALTER TABLE ord_quote ADD CONSTRAINT fk_ord_quote_user_account FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1159', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1683, '9:1c1c962e20064639dd11e33369a895ca', 'addForeignKeyConstraint baseTableName=ord_quote, constraintName=fk_ord_quote_user_account, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1160::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_bill_invoice_quote FOREIGN KEY (quote_id) REFERENCES ord_quote (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1160', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1685, '9:cb3d842e8e3d5bdae8f9e00dd01ef52b', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_bill_invoice_quote, referencedTableName=ord_quote', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1161::AndriusKarpavicius
ALTER TABLE billing_seq_invtyp_sell ADD CONSTRAINT fk_2rjk30cy77bs2jxqwsbrhk6qb FOREIGN KEY (invoicetype_id) REFERENCES billing_invoice_type (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1161', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1687, '9:475bb129dddc9ae233506646818cf898', 'addForeignKeyConstraint baseTableName=billing_seq_invtyp_sell, constraintName=fk_2rjk30cy77bs2jxqwsbrhk6qb, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1162::AndriusKarpavicius
ALTER TABLE billing_seq_invtyp_sell ADD CONSTRAINT fk_ivmab13iml7v0n29giw9w8kor FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1162', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1689, '9:6e3b5466fd48ebf4f2e8adb440df6128', 'addForeignKeyConstraint baseTableName=billing_seq_invtyp_sell, constraintName=fk_ivmab13iml7v0n29giw9w8kor, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1163::AndriusKarpavicius
ALTER TABLE ar_payment_token ADD CONSTRAINT fk_ca_id_payment_token FOREIGN KEY (customer_account_id) REFERENCES ar_customer_account (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1163', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1691, '9:17ceaa3715af8d120337efc647b7bc9e', 'addForeignKeyConstraint baseTableName=ar_payment_token, constraintName=fk_ca_id_payment_token, referencedTableName=ar_customer_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-11633::hhanine
ALTER TABLE ar_credit_category ADD CONSTRAINT fk_acc_id_payment_token FOREIGN KEY (provider_id) REFERENCES crm_provider (id) ON UPDATE NO ACTION ON DELETE CASCADE;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-11633', 'hhanine', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1693, '9:7ff5a46072c8e9e3fabcc85c4998bba0', 'addForeignKeyConstraint baseTableName=ar_credit_category, constraintName=fk_acc_id_payment_token, referencedTableName=crm_provider', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1164::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT fk_sub_auto_tr_id FOREIGN KEY (auto_termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1164', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1695, '9:64c33bcf8ffcfe655526ab5ef4adc896', 'addForeignKeyConstraint baseTableName=billing_subscription, constraintName=fk_sub_auto_tr_id, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1165::AndriusKarpavicius
ALTER TABLE ord_order ADD CONSTRAINT fk_order_payment_method FOREIGN KEY (payment_method_id) REFERENCES ar_payment_token (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1165', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1697, '9:d65390a6b9d85d2eb924a58133e143a1', 'addForeignKeyConstraint baseTableName=ord_order, constraintName=fk_order_payment_method, referencedTableName=ar_payment_token', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1166::AndriusKarpavicius
ALTER TABLE ord_order ADD CONSTRAINT fk_order_quote FOREIGN KEY (quote_id) REFERENCES ord_quote (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1166', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1699, '9:7dd9b03f2987ea0ee922fdb8d0fe6196', 'addForeignKeyConstraint baseTableName=ord_order, constraintName=fk_order_quote, referencedTableName=ord_quote', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1167::AndriusKarpavicius
ALTER TABLE ar_payment_gateway ADD CONSTRAINT fk_paygw_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1167', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1701, '9:ff3721a20df14e7a3fddd5c69b1045de', 'addForeignKeyConstraint baseTableName=ar_payment_gateway, constraintName=fk_paygw_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1169::AndriusKarpavicius
ALTER TABLE ar_payment_gateway ADD CONSTRAINT fk_paygw_trad_currency FOREIGN KEY (trading_currency_id) REFERENCES billing_trading_currency (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1169', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1703, '9:eef60c020067298d3bb958de0670c29a', 'addForeignKeyConstraint baseTableName=ar_payment_gateway, constraintName=fk_paygw_trad_currency, referencedTableName=billing_trading_currency', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1170::AndriusKarpavicius
ALTER TABLE cat_offer_template ADD CONSTRAINT fk_offer_script FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1170', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1705, '9:451a9bf73ab20f424375bd6b824d8e9d', 'addForeignKeyConstraint baseTableName=cat_offer_template, constraintName=fk_offer_script, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1171::AndriusKarpavicius
ALTER TABLE cat_product_offer_seller ADD CONSTRAINT fk_pos_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1171', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1707, '9:bbe85374d674f8f3a9c38f38a7ac0dc8', 'addForeignKeyConstraint baseTableName=cat_product_offer_seller, constraintName=fk_pos_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1172::AndriusKarpavicius
ALTER TABLE cat_product_offer_seller ADD CONSTRAINT fk_pos_product FOREIGN KEY (product_id) REFERENCES cat_offer_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1172', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1709, '9:85f6ac010394277a439c5982a9f15acc', 'addForeignKeyConstraint baseTableName=cat_product_offer_seller, constraintName=fk_pos_product, referencedTableName=cat_offer_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1173::AndriusKarpavicius
ALTER TABLE cat_price_plan_matrix ADD CONSTRAINT fk_pp_script FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1173', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1711, '9:1951a8eb5448cd8a87364acb04ecd44f', 'addForeignKeyConstraint baseTableName=cat_price_plan_matrix, constraintName=fk_pp_script, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1174::AndriusKarpavicius
ALTER TABLE ar_payment_history ADD CONSTRAINT fk_payhisto_ao_pay FOREIGN KEY (payment_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1174', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1713, '9:3bfa3d68063cb5879e003746a721131f', 'addForeignKeyConstraint baseTableName=ar_payment_history, constraintName=fk_payhisto_ao_pay, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1175::AndriusKarpavicius
ALTER TABLE ar_payment_history ADD CONSTRAINT fk_payhisto_ao_refund FOREIGN KEY (refund_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1175', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1715, '9:701f28e264371a1583510a688e28de17', 'addForeignKeyConstraint baseTableName=ar_payment_history, constraintName=fk_payhisto_ao_refund, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1176::AndriusKarpavicius
ALTER TABLE crm_seller ADD CONSTRAINT fk_seller_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE crm_customer ADD CONSTRAINT fk_cust_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE ar_customer_account ADD CONSTRAINT fk_ca_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_billing_account ADD CONSTRAINT fk_ba_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE billing_user_account ADD CONSTRAINT fk_ua_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE com_contact ADD CONSTRAINT fk_com_contact_country_id FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1176', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1717, '9:e6d39fde65947d459dad5715a3d536e2', 'addForeignKeyConstraint baseTableName=crm_seller, constraintName=fk_seller_country_id, referencedTableName=adm_country; addForeignKeyConstraint baseTableName=crm_customer, constraintName=fk_cust_country_id, referencedTableName=adm_country; addFore...', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1177::AndriusKarpavicius
ALTER TABLE com_sender_config ADD CONSTRAINT fk_country_id_sender FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1177', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1719, '9:c1209e85016a30e0cebdc7d41b91991c', 'addForeignKeyConstraint baseTableName=com_sender_config, constraintName=fk_country_id_sender, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1178::AndriusKarpavicius
ALTER TABLE crm_provider_contact ADD CONSTRAINT fk_country_id_prov_contact FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1178', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1721, '9:b744e4cd8a39954da464e97e65a747cb', 'addForeignKeyConstraint baseTableName=crm_provider_contact, constraintName=fk_country_id_prov_contact, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1179::AndriusKarpavicius
ALTER TABLE crm_provider ADD CONSTRAINT fk_country_id_prov FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1179', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1723, '9:8bd1ec6ed13837a54864aa780f61c508', 'addForeignKeyConstraint baseTableName=crm_provider, constraintName=fk_country_id_prov, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1181::AndriusKarpavicius
ALTER TABLE ord_order_item ADD CONSTRAINT fk_country_id_order FOREIGN KEY (address_country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1181', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1725, '9:f3c2d7451c4a862dc4070e575ffd6a09', 'addForeignKeyConstraint baseTableName=ord_order_item, constraintName=fk_country_id_order, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1182::AndriusKarpavicius
ALTER TABLE ar_payment_gateway ADD CONSTRAINT fk_paygw_country FOREIGN KEY (country_id) REFERENCES adm_country (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1182', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1727, '9:2d87875217a60e2f64e989b5ea5b25bc', 'addForeignKeyConstraint baseTableName=ar_payment_gateway, constraintName=fk_paygw_country, referencedTableName=adm_country', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1183::AndriusKarpavicius
ALTER TABLE dwh_report_extract ADD CONSTRAINT fk_report_extract_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1183', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1729, '9:7b1a0ddb93c20422f1df1f9c0360f760', 'addForeignKeyConstraint baseTableName=dwh_report_extract, constraintName=fk_report_extract_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1184::AndriusKarpavicius
ALTER TABLE billing_accounting_code ADD CONSTRAINT fk_billing_accounting_code_parent FOREIGN KEY (parent_accounting_code_id) REFERENCES billing_accounting_code (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1184', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1731, '9:f082255b214c985c2c5e8e2177298578', 'addForeignKeyConstraint baseTableName=billing_accounting_code, constraintName=fk_billing_accounting_code_parent, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1185::AndriusKarpavicius
ALTER TABLE billing_invoice_sub_cat ADD CONSTRAINT fk_billing_invoice_sub_cat_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1185', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1733, '9:6d81265706f6f7d34764caf83b34b60d', 'addForeignKeyConstraint baseTableName=billing_invoice_sub_cat, constraintName=fk_billing_invoice_sub_cat_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1186::AndriusKarpavicius
ALTER TABLE billing_tax ADD CONSTRAINT fk_billing_tax_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1186', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1735, '9:c2789b35db0559194ebedc1a10e255ea', 'addForeignKeyConstraint baseTableName=billing_tax, constraintName=fk_billing_tax_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1187::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_billing_invoice_aggregate_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1187', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1737, '9:ee2d06654aacede5ffb43004baac0d85', 'addForeignKeyConstraint baseTableName=billing_invoice_agregate, constraintName=fk_billing_invoice_aggregate_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1188::AndriusKarpavicius
ALTER TABLE dwh_account_operation ADD CONSTRAINT fk_dwh_account_operation_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1188', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1739, '9:bebdecb825415455d65291b42756b6c4', 'addForeignKeyConstraint baseTableName=dwh_account_operation, constraintName=fk_dwh_account_operation_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1189::AndriusKarpavicius
ALTER TABLE dwh_journal_entries ADD CONSTRAINT fk_dwh_journal_entries_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1189', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1741, '9:bae6ce98f2a344f73b8fb83dc8aad3e8', 'addForeignKeyConstraint baseTableName=dwh_journal_entries, constraintName=fk_dwh_journal_entries_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1190::AndriusKarpavicius
ALTER TABLE ar_occ_template ADD CONSTRAINT fk_ar_occ_template_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1190', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1743, '9:7b6f72851cd7828af4c952f1c8c753c4', 'addForeignKeyConstraint baseTableName=ar_occ_template, constraintName=fk_ar_occ_template_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1191::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_ar_account_operation_accounting_code FOREIGN KEY (accounting_code_id) REFERENCES billing_accounting_code (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1191', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1745, '9:c89ef4b0038afcb3947ff7cc838e22e7', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_ar_account_operation_accounting_code, referencedTableName=billing_accounting_code', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1192::AndriusKarpavicius
ALTER TABLE ord_order_history ADD CONSTRAINT fk_order_history_order_item FOREIGN KEY (order_item_id) REFERENCES ord_order_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1192', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1747, '9:565bdbff6e8691345205cd7567c543e1', 'addForeignKeyConstraint baseTableName=ord_order_history, constraintName=fk_order_history_order_item, referencedTableName=ord_order_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1193::AndriusKarpavicius
ALTER TABLE ord_order_history ADD CONSTRAINT fk_order_history_billing_service_instance FOREIGN KEY (service_instance_id) REFERENCES billing_service_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1193', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1749, '9:4f0bbb0f9ea308bf6a814a35539431a1', 'addForeignKeyConstraint baseTableName=ord_order_history, constraintName=fk_order_history_billing_service_instance, referencedTableName=billing_service_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1194::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_billing_wallet_operation_billing_invoice_sub_cat FOREIGN KEY (invoice_sub_category_id) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1194', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1751, '9:dd5c7825a3505944f5abe834db814908', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_billing_wallet_operation_billing_invoice_sub_cat, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1195::AndriusKarpavicius
ALTER TABLE dwh_report_extract_execution ADD CONSTRAINT dwh_report_extract_execution_re_fk FOREIGN KEY (report_extract_id) REFERENCES dwh_report_extract (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1195', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1753, '9:6dfcf6a378c52cdd501f79b3193e6fa7', 'addForeignKeyConstraint baseTableName=dwh_report_extract_execution, constraintName=dwh_report_extract_execution_re_fk, referencedTableName=dwh_report_extract', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1196::AndriusKarpavicius
ALTER TABLE meveo_script_instance ADD CONSTRAINT "fk_meveo_script_instance-category" FOREIGN KEY (script_instance_cat_id) REFERENCES meveo_script_instance_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1196', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1755, '9:22d4564cb48d11c609b466c70d7e86c5', 'addForeignKeyConstraint baseTableName=meveo_script_instance, constraintName=fk_meveo_script_instance-category, referencedTableName=meveo_script_instance_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1197::AndriusKarpavicius
ALTER TABLE cat_service_template ADD CONSTRAINT fk_st_auto_tr_id FOREIGN KEY (auto_termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1197', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1757, '9:99700ce1dc43b4ef1ff3552c0ee073dd', 'addForeignKeyConstraint baseTableName=cat_service_template, constraintName=fk_st_auto_tr_id, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1198::AndriusKarpavicius
ALTER TABLE billing_service_instance ADD CONSTRAINT fk_si_auto_tr_id FOREIGN KEY (auto_termin_reason_id) REFERENCES billing_subscrip_termin_reason (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1198', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1759, '9:d06affc6be92ba57e801505c756fa8ef', 'addForeignKeyConstraint baseTableName=billing_service_instance, constraintName=fk_si_auto_tr_id, referencedTableName=billing_subscrip_termin_reason', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1199::AndriusKarpavicius
ALTER TABLE billing_invoice_cat ADD CONSTRAINT fk_occ_cat_inv FOREIGN KEY (occ_template_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1199', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1761, '9:673dd9634abf1c41ea1ae703109a0f98', 'addForeignKeyConstraint baseTableName=billing_invoice_cat, constraintName=fk_occ_cat_inv, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1200::AndriusKarpavicius
ALTER TABLE billing_invoice_cat ADD CONSTRAINT fk_occ_neg_cat_inv FOREIGN KEY (occ_templ_negative_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1200', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1763, '9:d62fb9b33294849d3bfaf6035ecafe14', 'addForeignKeyConstraint baseTableName=billing_invoice_cat, constraintName=fk_occ_neg_cat_inv, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1201::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_inv_aos FOREIGN KEY (recorded_invoice_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1201', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1765, '9:af1e273b7f12e57ea4188ab766626d5c', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_inv_aos, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1202::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_inv_cat_agregate FOREIGN KEY (cat_inv_agregate_id) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1202', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1767, '9:33bd03220516e1c9355047f32263fafe', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_inv_cat_agregate, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1203::AndriusKarpavicius
ALTER TABLE billing_invoice_type ADD CONSTRAINT fk_invoice_type_script_instance FOREIGN KEY (script_instance_id) REFERENCES meveo_script_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1203', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1769, '9:999bb62859b6975755fb3e1b30deb9a7', 'addForeignKeyConstraint baseTableName=billing_invoice_type, constraintName=fk_invoice_type_script_instance, referencedTableName=meveo_script_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1204::AndriusKarpavicius
ALTER TABLE billing_seq_invtyp_sell ADD CONSTRAINT fk_billing_seq_invtyp_sell_billing_seq_invoice FOREIGN KEY (invoice_sequence_id) REFERENCES billing_seq_invoice (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1204', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1771, '9:b40a8b01dc2fff70a9dd7645f8885f79', 'addForeignKeyConstraint baseTableName=billing_seq_invtyp_sell, constraintName=fk_billing_seq_invtyp_sell_billing_seq_invoice, referencedTableName=billing_seq_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1205::AndriusKarpavicius
ALTER TABLE billing_invoice_type ADD CONSTRAINT fk_billing_invoice_type_billing_seq_invoice FOREIGN KEY (invoice_sequence_id) REFERENCES billing_seq_invoice (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1205', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1773, '9:4a3d23806c8afa9953296d26d7d01f36', 'addForeignKeyConstraint baseTableName=billing_invoice_type, constraintName=fk_billing_invoice_type_billing_seq_invoice, referencedTableName=billing_seq_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1206::AndriusKarpavicius
ALTER TABLE billing_subscription ADD CONSTRAINT fk_billing_subscription_crm_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1206', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1775, '9:0f7f3f1ae3e06d552fb628f31dc0ec84', 'addForeignKeyConstraint baseTableName=billing_subscription, constraintName=fk_billing_subscription_crm_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1207::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_billing_invoice_crm_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1207', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1777, '9:f86cf1a98108eba4d0690ecdeb2f4093', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_billing_invoice_crm_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1208::AndriusKarpavicius
ALTER TABLE billing_product_instance ADD CONSTRAINT fk_billing_product_instance_crm_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1208', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1779, '9:cb3e9daca39a96d39eab7d6e58d75874', 'addForeignKeyConstraint baseTableName=billing_product_instance, constraintName=fk_billing_product_instance_crm_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1209::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_billing_rated_transaction_crm_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1209', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1781, '9:25d4fffda1cb1ea26eb8461b13162d31', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_billing_rated_transaction_crm_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1211::AndriusKarpavicius
ALTER TABLE ar_ddrequest_lot_op ADD CONSTRAINT fk_op_ddreq_builder_id FOREIGN KEY (ddrequest_builder_id) REFERENCES ar_ddrequest_builder (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1211', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1783, '9:42cf5f62f1ddc7a615a506555670efc5', 'addForeignKeyConstraint baseTableName=ar_ddrequest_lot_op, constraintName=fk_op_ddreq_builder_id, referencedTableName=ar_ddrequest_builder', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1212::AndriusKarpavicius
ALTER TABLE ar_ddrequest_lot_op ADD CONSTRAINT fk_op_ddreq_filter_id FOREIGN KEY (filter_id) REFERENCES meveo_filter (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1212', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1785, '9:4c6eff6c7e3cd9ffd87f9dfb6405eacf', 'addForeignKeyConstraint baseTableName=ar_ddrequest_lot_op, constraintName=fk_op_ddreq_filter_id, referencedTableName=meveo_filter', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1213::AndriusKarpavicius
ALTER TABLE ar_ddrequest_lot ADD CONSTRAINT fk_lot_req_builder_id FOREIGN KEY (ddrequest_builder_id) REFERENCES ar_ddrequest_builder (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1213', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1787, '9:ca53db86fe60e99549aee0137f2636e2', 'addForeignKeyConstraint baseTableName=ar_ddrequest_lot, constraintName=fk_lot_req_builder_id, referencedTableName=ar_ddrequest_builder', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1214::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_ao_ddreq_item_id FOREIGN KEY (ddrequest_item_id) REFERENCES ar_ddrequest_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1214', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1789, '9:d31ebc5b000112a343b6078b02b085f8', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_ao_ddreq_item_id, referencedTableName=ar_ddrequest_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1215::AndriusKarpavicius
ALTER TABLE billing_invoice_sub_cat ADD CONSTRAINT fk_occ_sub_cat_inv FOREIGN KEY (occ_template_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1215', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1791, '9:99162054294d8e374d5b91954b9d8772', 'addForeignKeyConstraint baseTableName=billing_invoice_sub_cat, constraintName=fk_occ_sub_cat_inv, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1216::AndriusKarpavicius
ALTER TABLE billing_invoice_sub_cat ADD CONSTRAINT fk_occ_neg_sub_cat_inv FOREIGN KEY (occ_templ_negative_id) REFERENCES ar_occ_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1216', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1793, '9:5eed38d3db06dc00772693f8886228f0', 'addForeignKeyConstraint baseTableName=billing_invoice_sub_cat, constraintName=fk_occ_neg_sub_cat_inv, referencedTableName=ar_occ_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1217::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_inv_sub_cat_agregate FOREIGN KEY (sub_cat_inv_agregate_id) REFERENCES billing_invoice_agregate (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1217', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1795, '9:3368df03c4e729def1afc640972e81c1', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_inv_sub_cat_agregate, referencedTableName=billing_invoice_agregate', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1218::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_tmpl ADD CONSTRAINT fk_ps_calendar FOREIGN KEY (calendar_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1218', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1797, '9:4d29b597c0cb295600b0007cad4ae720', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_tmpl, constraintName=fk_ps_calendar, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1219::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_tmpl ADD CONSTRAINT fk_ps_service_template FOREIGN KEY (service_template_id) REFERENCES cat_service_template (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1219', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1799, '9:196e17a6b65096a60ef7d3577b15ccc3', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_tmpl, constraintName=fk_ps_service_template, referencedTableName=cat_service_template', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1220::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_tmpl ADD CONSTRAINT fk_ps_invoice_type FOREIGN KEY (adv_pay_inv_type_id) REFERENCES billing_invoice_type (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1220', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1801, '9:0f881d48eab8e028a59d2aaf31249e6f', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_tmpl, constraintName=fk_ps_invoice_type, referencedTableName=billing_invoice_type', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1221::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_tmpl ADD CONSTRAINT fk_ps_usage_charge FOREIGN KEY (adv_pay_sub_cat_id) REFERENCES billing_invoice_sub_cat (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1221', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1803, '9:2380517d7dde2070399e982c6d74ff9b', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_tmpl, constraintName=fk_ps_usage_charge, referencedTableName=billing_invoice_sub_cat', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1222::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_inst ADD CONSTRAINT fk_payment_schedule_tmpl_id FOREIGN KEY (payment_schedule_tmpl_id) REFERENCES ar_payment_schedule_tmpl (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1222', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1805, '9:d960d3cce68e7a72750ea4864bc00993', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_inst, constraintName=fk_payment_schedule_tmpl_id, referencedTableName=ar_payment_schedule_tmpl', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1223::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_inst ADD CONSTRAINT fk_service_instance_id FOREIGN KEY (service_instance_id) REFERENCES billing_service_instance (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1223', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1807, '9:e34084d7a0067cded797b253772f2d00', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_inst, constraintName=fk_service_instance_id, referencedTableName=billing_service_instance', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1224::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_inst_item ADD CONSTRAINT fk_ps_item_ps_innst FOREIGN KEY (payment_schedule_inst_id) REFERENCES ar_payment_schedule_inst (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1224', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1809, '9:344169f70db2b7b94e22a8712dd0efac', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_inst_item, constraintName=fk_ps_item_ps_innst, referencedTableName=ar_payment_schedule_inst', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1225::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_inst_item ADD CONSTRAINT fk_ao_ps_id FOREIGN KEY (ao_ps_id) REFERENCES ar_account_operation (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1225', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1811, '9:e1e29d901b45cc9f038325b716a28e28', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_inst_item, constraintName=fk_ao_ps_id, referencedTableName=ar_account_operation', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1226::AndriusKarpavicius
ALTER TABLE ar_payment_schedule_inst_item ADD CONSTRAINT fk_invoice_id FOREIGN KEY (invoice_id) REFERENCES billing_invoice (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1226', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1813, '9:b4c5db1a989000a3510f4bed8bfe7163', 'addForeignKeyConstraint baseTableName=ar_payment_schedule_inst_item, constraintName=fk_invoice_id, referencedTableName=billing_invoice', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1227::AndriusKarpavicius
ALTER TABLE ar_account_operation ADD CONSTRAINT fk_pay_schdl_inst_item_id FOREIGN KEY (pay_schdl_inst_item_id) REFERENCES ar_payment_schedule_inst_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1227', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1815, '9:87a9f3f54208bbe3ec90d8e880853066', 'addForeignKeyConstraint baseTableName=ar_account_operation, constraintName=fk_pay_schdl_inst_item_id, referencedTableName=ar_payment_schedule_inst_item', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1228::AndriusKarpavicius
ALTER TABLE billing_service_instance ADD CONSTRAINT fk_calendar_srv_inst FOREIGN KEY (calendar_ps_id) REFERENCES cat_calendar (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1228', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1817, '9:69ef3467ba9eec9f1f543b4552133f22', 'addForeignKeyConstraint baseTableName=billing_service_instance, constraintName=fk_calendar_srv_inst, referencedTableName=cat_calendar', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1229::AndriusKarpavicius
ALTER TABLE crm_customer_sequence ADD CONSTRAINT fk_crm_customer_sequence_seller FOREIGN KEY (seller_id) REFERENCES crm_seller (id);

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1229', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1819, '9:3a27d7f5e535ba6df95eab4dfba0d3e1', 'addForeignKeyConstraint baseTableName=crm_customer_sequence, constraintName=fk_crm_customer_sequence_seller, referencedTableName=crm_seller', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1231::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_rt_tax FOREIGN KEY (tax_id) REFERENCES billing_tax (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1231', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1821, '9:c051411f3439b492911add2e09a50d05', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_rt_tax, referencedTableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1232::AndriusKarpavicius
ALTER TABLE billing_rated_transaction ADD CONSTRAINT fk_rt_ua FOREIGN KEY (user_account_id) REFERENCES billing_user_account (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1232', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1823, '9:943066c14a3c5fad5f007bcf9d69c78c', 'addForeignKeyConstraint baseTableName=billing_rated_transaction, constraintName=fk_rt_ua, referencedTableName=billing_user_account', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1233::AndriusKarpavicius
ALTER TABLE billing_wallet_operation ADD CONSTRAINT fk_wo_tax FOREIGN KEY (tax_id) REFERENCES billing_tax (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1233', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1825, '9:054f4a60685f7f22ac637442d4f42e3b', 'addForeignKeyConstraint baseTableName=billing_wallet_operation, constraintName=fk_wo_tax, referencedTableName=billing_tax', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1234::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_inv_subscription FOREIGN KEY (subscription_id) REFERENCES billing_subscription (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1234', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1827, '9:10c53ba2ad190b703161006fae3364f6', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_inv_subscription, referencedTableName=billing_subscription', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1235::AndriusKarpavicius
ALTER TABLE billing_invoice ADD CONSTRAINT fk_inv_order FOREIGN KEY (order_id) REFERENCES ord_order (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('rebuild-str-fk-1235', 'AndriusKarpavicius', 'src/main/resources/db_resources/changelog/rebuild/structure.xml', NOW(), 1829, '9:c74061970bdf7ba29f77174e9549eb64', 'addForeignKeyConstraint baseTableName=billing_invoice, constraintName=fk_inv_order, referencedTableName=ord_order', '', 'EXECUTED', NULL, NULL, '4.29.0', '1490728281');

-- Changeset src/main/resources/db_resources/changelog/rebuild/structure.xml::rebuild-str-fk-1236::AndriusKarpavicius
ALTER TABLE billing_invoice_agregate ADD CONSTRAINT fk_ia_dpi FOREIGN KEY (discount_plan_item_id) REFERENCES cat_discount_plan_item (id) ON UPDATE NO ACTION ON DELETE NO ACTION;

