-
Notifications
You must be signed in to change notification settings - Fork 18
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 #1275 from Giveth/staging
v1.22.0 2024-02-18(first release)
- Loading branch information
Showing
99 changed files
with
5,730 additions
and
1,432 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.17.1 | ||
v20.11.0 |
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
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
3 changes: 0 additions & 3 deletions
3
migration/1696421249294-Add_cryptoCompareId_and_coingeckoId_to_token_table.ts
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
48 changes: 48 additions & 0 deletions
48
migration/1702364570535-create_anchor_contract_address_table.ts
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,48 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class createAnchorContractAddressTable1702364570535 | ||
implements MigrationInterface | ||
{ | ||
async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
CREATE TABLE "anchor_contract_address" ( | ||
"id" SERIAL PRIMARY KEY, | ||
"networkId" INTEGER NOT NULL, | ||
"isActive" BOOLEAN DEFAULT false, | ||
"address" TEXT NOT NULL, | ||
"txHash" TEXT NOT NULL, | ||
"projectId" INTEGER NULL, | ||
"creatorId" INTEGER NULL, | ||
"ownerId" INTEGER NULL, | ||
"updatedAt" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"createdAt" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
CONSTRAINT "UQ_address_networkId_project" UNIQUE ("address", "networkId", "projectId") | ||
); | ||
CREATE INDEX "IDX_address" ON "anchor_contract_address" ("address"); | ||
CREATE INDEX "IDX_networkId" ON "anchor_contract_address" ("networkId"); | ||
CREATE INDEX "IDX_projectId" ON "anchor_contract_address" ("projectId"); | ||
CREATE INDEX "IDX_creatorId" ON "anchor_contract_address" ("creatorId"); | ||
CREATE INDEX "IDX_ownerId" ON "anchor_contract_address" ("ownerId"); | ||
`); | ||
|
||
await queryRunner.query(` | ||
ALTER TABLE "anchor_contract_address" | ||
ADD CONSTRAINT "FK_anchor_contract_address_project" | ||
FOREIGN KEY ("projectId") REFERENCES "project"("id") | ||
ON DELETE SET NULL; | ||
`); | ||
} | ||
|
||
async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TABLE "anchor_contract_address" | ||
DROP CONSTRAINT "FK_anchor_contract_address_project"; | ||
`); | ||
|
||
await queryRunner.query(` | ||
DROP TABLE "anchor_contract_address"; | ||
`); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
migration/1702445735585-create_recurring_donation_table.ts
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,40 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class createRecurringDonationTable1702445735585 | ||
implements MigrationInterface | ||
{ | ||
async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
CREATE TABLE recurring_donation ( | ||
id SERIAL PRIMARY KEY, | ||
"networkId" INT NOT NULL, | ||
"txHash" text NOT NULL, | ||
"projectId" INT, | ||
"anchorContractAddressId" INT, | ||
"donorId" INT, | ||
"updatedAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, | ||
"createdAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, | ||
finished BOOLEAN, | ||
CONSTRAINT fk_project | ||
FOREIGN KEY("projectId") | ||
REFERENCES project(id), | ||
CONSTRAINT fk_anchor_contract_address | ||
FOREIGN KEY("anchorContractAddressId") | ||
REFERENCES anchor_contract_address(id), | ||
CONSTRAINT fk_donor | ||
FOREIGN KEY("donorId") | ||
REFERENCES "user"(id), | ||
UNIQUE("txHash", "networkId", "projectId") | ||
); | ||
CREATE INDEX "idx_txHash" ON recurring_donation("txHash"); | ||
CREATE INDEX "idx_projectId" ON recurring_donation("projectId"); | ||
CREATE INDEX "idx_anchorContractAddressId" ON recurring_donation("anchorContractAddressId"); | ||
CREATE INDEX "donorId" ON recurring_donation("donorId"); | ||
`); | ||
} | ||
|
||
async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`DROP TABLE IF EXISTS recurring_donations;`); | ||
} | ||
} |
Oops, something went wrong.