procbay-schema 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "procbay-schema",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system",
5
5
  "main": "src/prisma/index.js",
6
6
  "type": "module",
@@ -0,0 +1,30 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - The values [BIDSUBMITTED] on the enum `EventVendorBidStatus` will be removed. If these variants are still used in the database, this will fail.
5
+
6
+ */
7
+ -- AlterEnum
8
+ -- This migration adds more than one value to an enum.
9
+ -- With PostgreSQL versions 11 and earlier, this is not possible
10
+ -- in a single migration. This can be worked around by creating
11
+ -- multiple migrations, each migration adding only one value to
12
+ -- the enum.
13
+
14
+
15
+ ALTER TYPE "BidStatus" ADD VALUE 'LOWEST_BIDDER';
16
+ ALTER TYPE "BidStatus" ADD VALUE 'NOT_LOWEST_BIDDER';
17
+
18
+ -- AlterEnum
19
+ BEGIN;
20
+ CREATE TYPE "EventVendorBidStatus_new" AS ENUM ('INVITED', 'VIEWED', 'DRAFT', 'SUBMITTED', 'ENDED', 'NORESPONSE', 'EVALUATION', 'WON', 'NOTAWARDED', 'CANCELLED', 'EXPIRED', 'ACCEPTED', 'REJECTED', 'LASTBIDREJECTED', 'BLOCKED');
21
+ ALTER TABLE "event_vendors" ALTER COLUMN "event_vendor_bid_status" DROP DEFAULT;
22
+ ALTER TABLE "event_vendors" ALTER COLUMN "event_vendor_bid_status" TYPE "EventVendorBidStatus_new" USING ("event_vendor_bid_status"::text::"EventVendorBidStatus_new");
23
+ ALTER TYPE "EventVendorBidStatus" RENAME TO "EventVendorBidStatus_old";
24
+ ALTER TYPE "EventVendorBidStatus_new" RENAME TO "EventVendorBidStatus";
25
+ DROP TYPE "EventVendorBidStatus_old";
26
+ ALTER TABLE "event_vendors" ALTER COLUMN "event_vendor_bid_status" SET DEFAULT 'INVITED';
27
+ COMMIT;
28
+
29
+ -- AlterTable
30
+ ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
@@ -1066,7 +1066,6 @@ enum EventVendorBidStatus {
1066
1066
  INVITED
1067
1067
  VIEWED
1068
1068
  DRAFT
1069
- BIDSUBMITTED
1070
1069
  SUBMITTED
1071
1070
  ENDED
1072
1071
  NORESPONSE
@@ -1431,6 +1430,8 @@ model CustomerNotification {
1431
1430
  enum BidStatus {
1432
1431
  NOT_HIGHEST_BIDDER
1433
1432
  HIGHEST_BIDDER
1433
+ LOWEST_BIDDER
1434
+ NOT_LOWEST_BIDDER
1434
1435
  CANCELLED
1435
1436
  REJECTED
1436
1437
  ACCEPTED