Skip to content

Commit

Permalink
DB migration to add UUID columns to Pacman tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthew committed Jun 27, 2023
1 parent 6f7c4ec commit d0e7102
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions db/migrate/20230627203547_add_uuid_to_pacman_tables.rb
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

0 comments on commit d0e7102

Please sign in to comment.