Skip to content

Commit

Permalink
Merge pull request #115 from Giveth/add-rf5-voters
Browse files Browse the repository at this point in the history
add rf 5 voter
  • Loading branch information
divine-comedian authored Sep 6, 2024
2 parents 2ab33f6 + 02dc97c commit 3c4fd12
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions db/migrations/1735646045434-AddRF 5 Voter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = class AddRF5Voter1735646045434 {
name = "AddRF5Voter1735646045434";

async up(db) {
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia";
if (SQUID_NETWORK !== "optimism-mainnet") return;
// add organisation with name "RF 5 Voter" and schema id "0x41513aa7b99bfea09d389c74aacedaeb13c28fb748569e9e2400109cbe284ee5"
await db.query(
`INSERT INTO "organisation" ("id", "name", "issuer", "color", "start_block")
VALUES (
'0x41513aa7b99bfea09d389c74aacedaeb13c28fb748569e9e2400109cbe284ee5',
'RF 5 Voter',
'0xe4553b743e74da3424ac51f8c1e586fd43ae226f',
'#ff0420',
124930763
)`
);
}

async down(db) {
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia";
if (SQUID_NETWORK !== "optimism-mainnet") return;
// remove organisation with name "RF 5 Voter" and schema id "0x41513aa7b99bfea09d389c74aacedaeb13c28fb748569e9e2400109cbe284ee5"
await db.query(
`DELETE FROM "organisation" WHERE "id" = '0x41513aa7b99bfea09d389c74aacedaeb13c28fb748569e9e2400109cbe284ee5'`
);
}
};

0 comments on commit 3c4fd12

Please sign in to comment.