-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/codersforcauses/repair-labs …
…into issue-194-Create_events_carousel
- Loading branch information
Showing
54 changed files
with
1,749 additions
and
437 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 |
---|---|---|
|
@@ -17,4 +17,7 @@ DATABASE_URL_DIRECT="postgres://postgres:password@localhost:5432/db" | |
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_BUCKET_NAME=repair-lab-images | ||
AWS_REGION=ap-southeast-2 | ||
AWS_REGION=ap-southeast-2 | ||
AWS_SES_SOURCE_EMAIL="[email protected]" | ||
AWS_SES_SWITCH=ON | ||
AWS_SES_MOCK_ENDPOINT="http://localhost:8005" |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Warnings: | ||
- The primary key for the `RepairRequest` table will be changed. If it partially fails, the table could be left without primary key constraint. | ||
- The `id` column on the `RepairRequest` table would be dropped and recreated. This will lead to data loss if there is data in the column. | ||
- You are about to drop the column `organisationId` on the `Staff` table. All the data in the column will be lost. | ||
- You are about to drop the `Brand` table. If the table is not empty, all the data it contains will be lost. | ||
- You are about to drop the `Organisation` table. If the table is not empty, all the data it contains will be lost. | ||
- Changed the type of `repairRequestId` on the `RepairRequestImage` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "RepairRequestImage" DROP CONSTRAINT "RepairRequestImage_repairRequestId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Staff" DROP CONSTRAINT "Staff_organisationId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "RepairRequest" DROP CONSTRAINT "RepairRequest_pkey", | ||
DROP COLUMN "id", | ||
ADD COLUMN "id" SERIAL NOT NULL, | ||
ADD CONSTRAINT "RepairRequest_pkey" PRIMARY KEY ("id"); | ||
|
||
-- AlterTable | ||
ALTER TABLE "RepairRequestImage" DROP COLUMN "repairRequestId", | ||
ADD COLUMN "repairRequestId" INTEGER NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Staff" DROP COLUMN "organisationId"; | ||
|
||
-- DropTable | ||
DROP TABLE "Brand"; | ||
|
||
-- DropTable | ||
DROP TABLE "Organisation"; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "RepairRequestImage" ADD CONSTRAINT "RepairRequestImage_repairRequestId_fkey" FOREIGN KEY ("repairRequestId") REFERENCES "RepairRequest"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.