-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from catenax-ng/fix/adress_identifiers
fix(gate): fixed the persistence of AddressIdentifier
- Loading branch information
Showing
9 changed files
with
60 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
bpdm-gate/src/main/resources/db/migration/V4_0_0_8__create table address_identifiers.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE address_identifiers ( | ||
id int8 NOT NULL, | ||
uuid uuid NOT NULL, | ||
created_at timestamp with time zone not null, | ||
updated_at timestamp with time zone not null, | ||
value varchar(255) NOT NULL, | ||
identifier_type_key varchar(255) NOT NULL, | ||
address_id int8 NOT NULL, | ||
CONSTRAINT pk_address_identifiers PRIMARY KEY (id), | ||
CONSTRAINT uc_address_identifiers_uuid UNIQUE (uuid) | ||
); | ||
CREATE INDEX idx_address_identifiers_on_address ON address_identifiers USING btree (address_id); | ||
|
||
|
||
ALTER TABLE address_identifiers ADD CONSTRAINT fk_address_identifiers_on_address FOREIGN KEY (address_id) REFERENCES logistic_addresses(id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters