-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generic repo TagType implementation
1. Added URI column (not requiring uniqueness, for the time being) 2. Added basic add/modify/search/delete tests 3. Fixed scripts for H2
- Loading branch information
Showing
9 changed files
with
183 additions
and
47 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 was deleted.
Oops, something went wrong.
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,18 @@ | ||
CREATE TABLE m_tag ( | ||
name_norm VARCHAR(255), | ||
name_orig VARCHAR(255), | ||
uri VARCHAR(255), | ||
oid VARCHAR(36) NOT NULL, | ||
PRIMARY KEY (oid) | ||
); | ||
|
||
CREATE INDEX iTagNameOrig | ||
ON m_tag (name_orig); | ||
ALTER TABLE m_tag | ||
ADD CONSTRAINT uc_tag_name UNIQUE (name_norm); | ||
|
||
ALTER TABLE m_tag | ||
ADD CONSTRAINT fk_tag FOREIGN KEY (oid) REFERENCES m_object; | ||
|
||
-- WRITE CHANGES ABOVE ^^ | ||
UPDATE m_global_metadata SET value = '4.7' WHERE name = 'databaseSchemaVersion'; |
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
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