-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Db migration from save to cosv (#2927)
- Loading branch information
1 parent
b710b4d
commit 9ac8f10
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
<include file="migration-from-save-to-cosv.xml" relativeToChangelogFile="true"/> | ||
|
||
<changeSet id="migration" author="frolov"> | ||
<tagDatabase tag="migration"/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
|
||
<changeSet id="migration-from-save-to-cosv" author="frolov" context="prod"> | ||
<sql> | ||
insert into cosv.cosv_file select * from save_cloud.cosv_file; | ||
insert into cosv.raw_cosv_file select * from save_cloud.raw_cosv_file; | ||
insert into cosv.cosv_generated_id select * from save_cloud.cosv_generated_id; | ||
insert into cosv.vulnerability_metadata select * from save_cloud.vulnerability_metadata; | ||
insert into cosv.vulnerability_metadata_project select * from save_cloud.vulnerability_metadata_project; | ||
insert into cosv.lnk_vulnerability_metadata_tag select * from save_cloud.lnk_vulnerability_metadata_tag; | ||
insert into cosv.lnk_vulnerability_metadata_user select * from save_cloud.lnk_vulnerability_metadata_user; | ||
</sql> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |