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 +1 -1
- package/prisma/migrations/20250806062243_alter_code_in_department_budget/migration.sql +0 -0
- package/prisma/migrations/20250806125844_init_fast_catalogue_tables/migration.sql +0 -0
- package/prisma/migrations/20250808094033_alter_bid_status/migration.sql +30 -0
- package/prisma/schema.prisma +2 -1
- package/src/prisma/edge.js +5 -4
- package/src/prisma/index-browser.js +2 -1
- package/src/prisma/index.d.ts +2 -1
- package/src/prisma/index.js +5 -4
- package/src/prisma/package.json +1 -1
- package/src/prisma/schema.prisma +2 -1
- package/src/prisma/wasm.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procbay-schema",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
|
File without changes
|
|
File without changes
|
|
@@ -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';
|
package/prisma/schema.prisma
CHANGED
|
@@ -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
|