Created
September 5, 2013 09:12
-
-
Save timlinux/6447810 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| alter table dictionaries_instrumenttype add column default_processing_level_id integer null references dictionaries_processinglevel(id) deferrable initially deferred; | |
| update dictionaries_instrumenttype set default_processing_level_id = base_processing_level_id; | |
| CREATE INDEX "dictionaries_instrumenttype_default_processing_level_id" ON "dictionaries_instrumenttype" ("default_processing_level_id"); | |
| ALTER TABLE dictionaries_instrumenttype ALTER COLUMN default_processing_level_id SET NOT NULL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment