-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename sheltersuppliesLogs to suppliesHistory
- Loading branch information
Danilo Romano
committed
May 22, 2024
1 parent
7e4e193
commit c22adce
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
.../migrations/20240522130911_renaming_shelter_supply_logs_to_supplies_history/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,24 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the `item_updates_log` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropTable | ||
DROP TABLE "item_updates_log"; | ||
|
||
-- CreateTable | ||
CREATE TABLE "supplies_history" ( | ||
"id" TEXT NOT NULL, | ||
"supply_name" TEXT, | ||
"shelter_name" TEXT, | ||
"ip_address" TEXT, | ||
"previousPriority" INTEGER, | ||
"currentPriority" INTEGER, | ||
"previousQuantity" INTEGER, | ||
"currentQuantity" INTEGER, | ||
"user_id" TEXT, | ||
"updated_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "supplies_history_pkey" PRIMARY KEY ("id") | ||
); |
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