Skip to content

Commit

Permalink
fix migration permission key svm (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
anihamde authored Jan 10, 2025
1 parent 76d65c2 commit 8f760ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
UPDATE bid
SET permission_key = SUBSTRING(permission_key FROM 2)
WHERE chain_type = 'svm';

UPDATE auction
SET permission_key = SUBSTRING(permission_key FROM 2)
WHERE chain_id = 'svm';

UPDATE opportunity
SET permission_key = SUBSTRING(permission_key FROM 2)
WHERE chain_id = 'svm';
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
UPDATE bid
SET permission_key = BYTEA '\x00' || permission_key
WHERE chain_type = 'svm';

UPDATE auction
SET permission_key = BYTEA '\x00' || permission_key
WHERE chain_id = 'svm';

UPDATE opportunity
SET permission_key = BYTEA '\x00' || permission_key
WHERE chain_id = 'svm';

0 comments on commit 8f760ef

Please sign in to comment.