Skip to content

Commit

Permalink
Merge pull request #81 from Giveth/fix-gitcoin-passport-holder
Browse files Browse the repository at this point in the history
fix passport holder
  • Loading branch information
MohammadPCh authored Jun 10, 2024
2 parents 0be4452 + 9c4d87f commit 985ad5e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = class AddGitcoinPassportHolder1727513801035 {
name = "AddGitcoinPassportHolder1727513801035";
module.exports = class AddGitcoinPassportHolder1728040623823 {
name = "AddGitcoinPassportHolder1728040623823";

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 "0x110c216190edf1c2cab264505c0b83437f0caa50298f371ad91a87394d9c55b2"
// add organisation with name "Gitcoin Passport Holder" and schema id "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89"
await db.query(
`INSERT INTO "organisation" ("id", "name", "issuer", "color")
VALUES (
'0x110c216190edf1c2cab264505c0b83437f0caa50298f371ad91a87394d9c55b2',
'0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89',
'Gitcoin Passport Holder',
'0x843829986e895facd330486a61ebee9e1f1adb1a',
'#00433b'
Expand All @@ -19,9 +19,9 @@ module.exports = class AddGitcoinPassportHolder1727513801035 {
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 "0x110c216190edf1c2cab264505c0b83437f0caa50298f371ad91a87394d9c55b2"
// remove organisation with name "Gitcoin Passport Holder" and schema id "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89"
await db.query(
`DELETE FROM "organisation" WHERE "id" = '0x110c216190edf1c2cab264505c0b83437f0caa50298f371ad91a87394d9c55b2'`
`DELETE FROM "organisation" WHERE "id" = '0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89'`
);
}
};
Expand Down

0 comments on commit 985ad5e

Please sign in to comment.