-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "removed duplicate AddGitcoin Passport Holder migration"
This reverts commit 71be6d6.
- Loading branch information
1 parent
71be6d6
commit 1688d62
Showing
1 changed file
with
29 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,29 @@ | ||
module.exports = class AddGitcoinPassportHolder1728389519384 { | ||
name = "AddGitcoinPassportHolder1728389519384"; | ||
|
||
async up(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// add organisation with name "Gitcoin Passport Holder" and schema id "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color", "start_block") | ||
VALUES ( | ||
'0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89', | ||
'Gitcoin Passport Holder', | ||
'0x843829986e895facd330486a61ebee9e1f1adb1a', | ||
'#00433b', | ||
108517456 | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// remove organisation with name "Gitcoin Passport Holder" and schema id "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89'` | ||
); | ||
} | ||
}; | ||
|