diff --git a/add-organisation.js b/add-organisation.js index 4517d57..e8099a0 100644 --- a/add-organisation.js +++ b/add-organisation.js @@ -1,11 +1,11 @@ const createOrganisationAddMigration = require("./db/create-organisation-add-migration").default; -const ORGANISATION_NAME = "Giveth Verification Team"; // Replace with your own organisation name +const ORGANISATION_NAME = "Pizza Lovers"; // Replace with your own organisation name const SCHEMA_ID = - "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"; // Replace with your own schema id + "0x9224f06bd11d0076dbcb28e4f0c654d78cb071930653510360a3a00518ad1710"; // Replace with your own schema id const AUTHORIZED_ATTESTOR = "0x826976d7C600d45FB8287CA1d7c76FC8eb732030"; -const COLOR = "#7f64cb"; +const COLOR = "#db284a"; // staging: eth-sepolia // production: optimism-mainnet const network = "eth-sepolia"; diff --git a/db/migrations/1727513623446-AddPizza Lovers.js b/db/migrations/1727513623446-AddPizza Lovers.js new file mode 100644 index 0000000..114cb65 --- /dev/null +++ b/db/migrations/1727513623446-AddPizza Lovers.js @@ -0,0 +1,28 @@ +module.exports = class AddPizzaLovers1727513623446 { + name = "AddPizzaLovers1727513623446"; + + async up(db) { + const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; + if (SQUID_NETWORK !== "eth-sepolia") return; + // add organisation with name "Pizza Lovers" and schema id "0x9224f06bd11d0076dbcb28e4f0c654d78cb071930653510360a3a00518ad1710" + await db.query( + `INSERT INTO "organisation" ("id", "name", "issuer", "color") + VALUES ( + '0x9224f06bd11d0076dbcb28e4f0c654d78cb071930653510360a3a00518ad1710', + 'Pizza Lovers', + '0x826976d7c600d45fb8287ca1d7c76fc8eb732030', + '#db284a' + )` + ); + } + + async down(db) { + const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; + if (SQUID_NETWORK !== "eth-sepolia") return; + // remove organisation with name "Pizza Lovers" and schema id "0x9224f06bd11d0076dbcb28e4f0c654d78cb071930653510360a3a00518ad1710" + await db.query( + `DELETE FROM "organisation" WHERE "id" = '0x9224f06bd11d0076dbcb28e4f0c654d78cb071930653510360a3a00518ad1710'` + ); + } +}; + \ No newline at end of file