a752a399c2
Build & Deploy / Build & Push Docker Image (push) Successful in 12m39s
Test / Type Check (all packages) (push) Successful in 5m8s
Build & Deploy / Deploy to VPS (push) Successful in 7s
Test / API Unit Tests (push) Failing after 4m24s
Test / Homepage Unit Tests (push) Successful in 3m27s
Test / Storefront Unit Tests (push) Successful in 4m48s
Test / Admin Unit Tests (push) Successful in 3m0s
Test / Dashboard Unit Tests (push) Successful in 4m18s
Test / API Integration Tests (push) Failing after 4m34s
18 lines
606 B
SQL
18 lines
606 B
SQL
ALTER TYPE "PaymentProvider" ADD VALUE IF NOT EXISTS 'MANUAL';
|
|
|
|
ALTER TABLE "rental_payments"
|
|
ADD COLUMN "reference" TEXT,
|
|
ADD COLUMN "note" TEXT,
|
|
ADD COLUMN "receivedAt" TIMESTAMP(3),
|
|
ADD COLUMN "recordedByEmployeeId" TEXT,
|
|
ADD COLUMN "idempotencyKey" TEXT;
|
|
|
|
ALTER TABLE "rental_payments"
|
|
ADD CONSTRAINT "rental_payments_recordedByEmployeeId_fkey"
|
|
FOREIGN KEY ("recordedByEmployeeId") REFERENCES "employees"("id")
|
|
ON DELETE SET NULL ON UPDATE CASCADE;
|
|
|
|
ALTER TABLE "rental_payments"
|
|
ADD CONSTRAINT "rental_payments_companyId_idempotencyKey_key"
|
|
UNIQUE ("companyId", "idempotencyKey");
|