diff --git a/add-organisation.js b/add-organisation.js index 219901c..26bd405 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 = "Trace"; // Replace with your own organisation name +const ORGANISATION_NAME = "Giveth Verification Team"; // Replace with your own organisation name const SCHEMA_ID = - "0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722"; // Replace with your own schema id -const AUTHORIZED_ATTESTOR = "0xF23eA0b5F14afcbe532A1df273F7B233EBe41C78"; -const COLOR = "#FF0000"; + "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"; // Replace with your own schema id +const AUTHORIZED_ATTESTOR = "0x826976d7C600d45FB8287CA1d7c76FC8eb732030"; +const COLOR = "#7f64cb"; function main() { createOrganisationAddMigration( diff --git a/db/migrations/1715344741698-AddGiveth Verification Team.js b/db/migrations/1715344741698-AddGiveth Verification Team.js new file mode 100644 index 0000000..d643965 --- /dev/null +++ b/db/migrations/1715344741698-AddGiveth Verification Team.js @@ -0,0 +1,25 @@ + +module.exports = class AddGivethVerificationTeam1715344741698 { + name = "AddGivethVerificationTeam1715344741698"; + + async up(db) { + // add organisation with name "Giveth Verification Team" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404" + await db.query( + `INSERT INTO "organisation" ("id", "name", "issuer", "color") + VALUES ( + '0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404', + 'Giveth Verification Team', + '0x826976d7c600d45fb8287ca1d7c76fc8eb732030', + '#7f64cb' + )` + ); + } + + async down(db) { + // remove organisation with name "Giveth Verification Team" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404" + await db.query( + `DELETE FROM "organisation" WHERE "id" = '0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404'` + ); + } +}; + \ No newline at end of file