-
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.
Added offset for add organisation migrations
- Loading branch information
1 parent
566ca69
commit 45cd17f
Showing
5 changed files
with
51 additions
and
51 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
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
db/migrations/1715344741698-AddGiveth Verification Team.js
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
module.exports = class AddTrace1725254645149 { | ||
name = "AddTrace1725254645149"; | ||
|
||
async up(db) { | ||
// add organisation with name "Trace" and schema id "0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color") | ||
VALUES ( | ||
'0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722', | ||
'Trace', | ||
'0xf23ea0b5f14afcbe532a1df273f7b233ebe41c78', | ||
'#ff0000' | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
// remove organisation with name "Trace" and schema id "0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722'` | ||
); | ||
} | ||
}; |
23 changes: 23 additions & 0 deletions
23
db/migrations/1725344741698-AddGiveth Verification Team.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = class AddGivethVerificationTeam1725344741698 { | ||
name = "AddGivethVerificationTeam1725344741698"; | ||
|
||
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'` | ||
); | ||
} | ||
}; |