-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[database] Make migration script between version 1 and 0
Signed-off-by: Mykola Kobets <[email protected]>
- Loading branch information
1 parent
cf34891
commit ad37988
Showing
8 changed files
with
251 additions
and
16 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
Empty file.
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,6 @@ | ||
UPDATE certificates | ||
SET | ||
keyURL = SUBSTR(keyURL, 1, INSTR(keyURL, 'pin-source=') - 1) || | ||
'pin-value=' || (SELECT value FROM pins WHERE path = SUBSTR(keyURL, INSTR(keyURL, 'pin-source=') + 11) LIMIT 1), | ||
certURL = SUBSTR(certURL, 1, INSTR(certURL, 'pin-source=') - 1) || | ||
'pin-value=' || (SELECT value FROM pins WHERE path = SUBSTR(certURL, INSTR(certURL, 'pin-source=') + 11) LIMIT 1); |
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,6 @@ | ||
UPDATE certificates | ||
SET | ||
keyURL = SUBSTR(keyURL, 1, INSTR(keyURL, 'pin-value=') - 1) || | ||
'pin-source=' || (SELECT path FROM pins WHERE value = SUBSTR(keyURL, INSTR(keyURL, 'pin-value=') + 10) LIMIT 1), | ||
certURL = SUBSTR(certURL, 1, INSTR(certURL, 'pin-value=') - 1) || | ||
'pin-source=' || (SELECT path FROM pins WHERE value = SUBSTR(certURL, INSTR(certURL, 'pin-value=') + 10) LIMIT 1); |
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