-
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 #73 from Giveth/develop
Test deploy to main
- Loading branch information
Showing
4 changed files
with
60 additions
and
9 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 |
---|---|---|
|
@@ -11,3 +11,6 @@ | |
|
||
# Backup file | ||
.env.backup | ||
|
||
# Exclude add-organisation updates on pushes | ||
add-organisation.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = class AddHonoraryMexican1727705021366 { | ||
name = "AddHonoraryMexican1727705021366"; | ||
|
||
async up(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "eth-sepolia") return; | ||
// add organisation with name "Honorary Mexican" and schema id "0xc80d5c0209976a6c994aa6dc3680f4ad2de2dbc1aa9f46164c251ad9e5e10e09" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color") | ||
VALUES ( | ||
'0xc80d5c0209976a6c994aa6dc3680f4ad2de2dbc1aa9f46164c251ad9e5e10e09', | ||
'Honorary Mexican', | ||
'0x826976d7c600d45fb8287ca1d7c76fc8eb732030', | ||
'#ff0022' | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "eth-sepolia") return; | ||
// remove organisation with name "Honorary Mexican" and schema id "0xc80d5c0209976a6c994aa6dc3680f4ad2de2dbc1aa9f46164c251ad9e5e10e09" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0xc80d5c0209976a6c994aa6dc3680f4ad2de2dbc1aa9f46164c251ad9e5e10e09'` | ||
); | ||
} | ||
}; | ||
|
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 @@ | ||
module.exports = class AddDegen1727705168214 { | ||
name = "AddDegen1727705168214"; | ||
|
||
async up(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "eth-sepolia") return; | ||
// add organisation with name "Degen" and schema id "0xa8122bdee6c8949308c097c2b28ab3d154bf4f27bf5a1e850a91884498b7de8c" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color") | ||
VALUES ( | ||
'0xa8122bdee6c8949308c097c2b28ab3d154bf4f27bf5a1e850a91884498b7de8c', | ||
'Degen', | ||
'0x826976d7c600d45fb8287ca1d7c76fc8eb732030', | ||
'#fff3c4' | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "eth-sepolia") return; | ||
// remove organisation with name "Degen" and schema id "0xa8122bdee6c8949308c097c2b28ab3d154bf4f27bf5a1e850a91884498b7de8c" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0xa8122bdee6c8949308c097c2b28ab3d154bf4f27bf5a1e850a91884498b7de8c'` | ||
); | ||
} | ||
}; | ||
|