Skip to content

Commit

Permalink
Merge pull request #62 from Giveth:add-pizza-lovers
Browse files Browse the repository at this point in the history
add pizza lovers
  • Loading branch information
divine-comedian authored Jun 4, 2024
2 parents 39be43a + 53713be commit 3f61dbe
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions add-organisation.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
28 changes: 28 additions & 0 deletions db/migrations/1727513623446-AddPizza Lovers.js
Original file line number Diff line number Diff line change
@@ -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'`
);
}
};

0 comments on commit 3f61dbe

Please sign in to comment.