-
Notifications
You must be signed in to change notification settings - Fork 1
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 #113 from Plant-for-the-Planet-org/feature/add-del…
…eted-data-count Enhance Data Cleanup and Stats Tracking in db-cleanup cronjob
- Loading branch information
Showing
4 changed files
with
197 additions
and
134 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
apps/server/prisma/migrations/20231219000000_stats/migration.sql
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,10 @@ | ||
-- CreateTable | ||
CREATE TABLE "Stats" ( | ||
"id" TEXT NOT NULL, | ||
"metric" TEXT NOT NULL, | ||
"count" INTEGER NOT NULL, | ||
"lastUpdated" TIMESTAMP(3) NOT NULL, | ||
|
||
CONSTRAINT "Stats_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "Stats_metric_key" UNIQUE ("metric") | ||
); |
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