Skip to content

Commit

Permalink
Merge pull request #111 from decentraland/fix/remove-alter-foerign-table
Browse files Browse the repository at this point in the history
fix: Remove alter foreign table
  • Loading branch information
LautaroPetaccio authored May 16, 2024
2 parents c580643 + 7a69153 commit d88535f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const materializedViewName = 'mv_builder_server_items_utility'

export async function up(pgm: MigrationBuilder): Promise<void> {
// Add utility to the foreign table
pgm.sql('ALTER FOREIGN TABLE builder_server_items ADD COLUMN IF NOT EXISTS utility text;')
// pgm.sql('ALTER FOREIGN TABLE builder_server_items ADD COLUMN IF NOT EXISTS utility text;')

// New materialized view for the utility
pgm.createMaterializedView(
Expand All @@ -27,5 +27,5 @@ export async function down(pgm: MigrationBuilder): Promise<void> {
pgm.dropMaterializedView(materializedViewName)

// Restore old foreign table
pgm.sql('ALTER FOREIGN TABLE builder_server_items DROP COLUMN utility;')
// pgm.sql('ALTER FOREIGN TABLE builder_server_items DROP COLUMN utility;')
}

0 comments on commit d88535f

Please sign in to comment.