-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from Giveth/develop
Release No Affiliation to Production
- Loading branch information
Showing
6 changed files
with
123 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const ethers = require("ethers"); | ||
const easSdk = require("@ethereum-attestation-service/eas-sdk"); | ||
|
||
const ZERO_UID = easSdk.ZERO_BYTES32; | ||
module.exports = class AddNoAffiliation1735226891776 { | ||
name = "AddNoAffiliation1735226891776"; | ||
|
||
async up(db) { | ||
// Add organisation with name "No Affiliation" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color", "start_block") | ||
VALUES ( | ||
'${ZERO_UID}', | ||
'No Affiliation', | ||
'${ethers.ZeroAddress}', | ||
'#0049b7', | ||
null | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
// Remove organisation with name "No Affiliation" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '${ZERO_UID}'` | ||
); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters