Liquibase-Changesets für Legacy-ID Mapping of Office-Admininistration-Tables #6
@ -10,7 +10,7 @@
|
|||||||
CREATE TABLE hs_office_coopassetstransaction_legacy_id
|
CREATE TABLE hs_office_coopassetstransaction_legacy_id
|
||||||
(
|
(
|
||||||
uuid uuid NOT NULL REFERENCES hs_office_coopassetstransaction(uuid),
|
uuid uuid NOT NULL REFERENCES hs_office_coopassetstransaction(uuid),
|
||||||
member_asstr_id integer NOT NULL
|
member_asset_id integer NOT NULL
|
||||||
hsh-timotheuspokorra marked this conversation as resolved
Outdated
|
|||||||
);
|
);
|
||||||
--//
|
--//
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ CREATE TABLE hs_office_coopassetstransaction_legacy_id
|
|||||||
CREATE SEQUENCE IF NOT EXISTS hs_office_coopassetstransaction_legacy_id_seq
|
CREATE SEQUENCE IF NOT EXISTS hs_office_coopassetstransaction_legacy_id_seq
|
||||||
AS integer
|
AS integer
|
||||||
START 1000000000
|
START 1000000000
|
||||||
OWNED BY hs_office_coopassetstransaction_legacy_id.member_asstr_id;
|
OWNED BY hs_office_coopassetstransaction_legacy_id.member_asset_id;
|
||||||
--//
|
--//
|
||||||
|
|
||||||
|
|
||||||
@ -31,17 +31,17 @@ CREATE SEQUENCE IF NOT EXISTS hs_office_coopassetstransaction_legacy_id_seq
|
|||||||
-- ----------------------------------------------------------------------------
|
-- ----------------------------------------------------------------------------
|
||||||
|
|
||||||
ALTER TABLE hs_office_coopassetstransaction_legacy_id
|
ALTER TABLE hs_office_coopassetstransaction_legacy_id
|
||||||
ALTER COLUMN member_asstr_id
|
ALTER COLUMN member_asset_id
|
||||||
SET DEFAULT nextVal('hs_office_coopassetstransaction_legacy_id_seq');
|
SET DEFAULT nextVal('hs_office_coopassetstransaction_legacy_id_seq');
|
||||||
|
|
||||||
--/
|
--/
|
||||||
|
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
--changeset hs-office-coopassets-MIGRATION-insert:1 endDelimiter:--//
|
--changeset hs-office-coopassets-MIGRATION-insert:1 endDelimiter:--//
|
||||||
-- ----------------------------------------------------------------------------
|
-- ----------------------------------------------------------------------------
|
||||||
|
|
||||||
CALL defineContext('schema-migration');
|
CALL defineContext('schema-migration');
|
||||||
INSERT INTO hs_office_coopassetstransaction_legacy_id(uuid, member_asstr_id)
|
INSERT INTO hs_office_coopassetstransaction_legacy_id(uuid, member_asset_id)
|
||||||
SELECT uuid, nextVal('hs_office_coopassetstransaction_legacy_id_seq') FROM hs_office_coopassetstransaction;
|
SELECT uuid, nextVal('hs_office_coopassetstransaction_legacy_id_seq') FROM hs_office_coopassetstransaction;
|
||||||
--/
|
--/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
in CSV Datei falsch?