-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DB migration to add UUID columns to Pacman tables
- Loading branch information
1 parent
6f7c4ec
commit d0e7102
Showing
1 changed file
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class AddUuidToPacmanTables < Caseflow::Migration | ||
def up | ||
add_column :vbms_communication_packages, | ||
:uuid, | ||
:string, | ||
comment: "UUID of the communication package in Package Manager (Pacman)" | ||
|
||
add_column :vbms_distribution_destinations, | ||
:uuid, | ||
:string, | ||
comment: "UUID of the distrubtion destination in Package Manager (Pacman)" | ||
|
||
add_column :vbms_distributions, | ||
:uuid, | ||
:string, | ||
comment: "UUID of the distrubtion in Package Manager (Pacman)" | ||
end | ||
|
||
def down | ||
remove_column :vbms_communication_packages, :uuid | ||
remove_column :vbms_distribution_destinations, :uuid | ||
remove_column :vbms_distributions, :uuid | ||
end | ||
end |