Skip to content

Commit

Permalink
Change tag column to text
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Jul 11, 2023
1 parent d7cf83e commit 06b437a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Added migration to change tags column from varchar(64) to text.
8 changes: 8 additions & 0 deletions marlowe-runtime/marlowe-indexer/deploy/tag-text.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Deploy marlowe:tag-text to pg
-- requires: tags

BEGIN;

ALTER TABLE marlowe.contractTxOutTag ALTER COLUMN tag TYPE TEXT;

COMMIT;
7 changes: 7 additions & 0 deletions marlowe-runtime/marlowe-indexer/revert/tag-text.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert marlowe:tag-text from pg

BEGIN;

ALTER TABLE marlowe.contractTxOutTag ALTER COLUMN tag TYPE VARCHAR(64);

COMMIT;
1 change: 1 addition & 0 deletions marlowe-runtime/marlowe-indexer/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ withdrawalCreateNotNull [block-cols] 2023-02-03T19:58:45Z Jamie Bertram <jamie.b
fixPayouts [schema] 2023-02-03T20:02:36Z Jamie Bertram <jamie.bertram@iohk.io> # Fixes payout columns.
indexRoleCurrency [schema] 2023-02-28T21:16:41Z Jamie Bertram <jamie.bertram@iohk.io> # Fixes adds index to role currency columns.
tags [schema] 2023-03-02T18:33:26Z Jamie Bertram <jamie.bertram@iohk.io> # Adds contract tags table.
tag-text [tags] 2023-07-11T12:37:05Z Jamie Bertram <jamie.bertram@iohk.io> # Changes tags from varchar(64) to text.
7 changes: 7 additions & 0 deletions marlowe-runtime/marlowe-indexer/verify/tag-text.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify marlowe:tag-text on pg

BEGIN;

-- XXX Add verifications here.

ROLLBACK;

0 comments on commit 06b437a

Please sign in to comment.