lang-database 13.1.0 → 13.1.1

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.
@@ -0,0 +1,8 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[purchaseToken]` on the table `purchases` will be added. If there are existing duplicate values, this will fail.
5
+
6
+ */
7
+ -- CreateIndex
8
+ CREATE UNIQUE INDEX "purchases_purchaseToken_key" ON "purchases"("purchaseToken");
@@ -0,0 +1,2 @@
1
+ -- AlterEnum
2
+ ALTER TYPE "PurchaseState" ADD VALUE 'CANCELED';
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "lang-database",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
8
  "create-migration": "npx prisma migrate dev --create-only",
9
+ "migrate": "npx prisma migrate deploy",
9
10
  "generate": "npx prisma generate",
10
- "push-dev-dbs": "npm run push-dev-db && npm run push-local-db && npm run push-test-db",
11
- "push-prod-db": "copy .env-prod .env && prisma db push --skip-generate",
12
- "push-dev-db": "copy .env-dev .env && prisma db push --skip-generate",
13
- "push-local-db": "copy .env-local .env && prisma db push --skip-generate",
14
- "push-test-db": "copy .env-test .env && prisma db push --skip-generate",
11
+ "push": "prisma db push --skip-generate",
15
12
  "test": "echo \"Error: no test specified\" && exit 1",
16
13
  "postinstall": "npm run generate"
17
14
  },
package/schema.prisma CHANGED
@@ -190,6 +190,7 @@ enum PurchaseState {
190
190
  COMPLETED
191
191
  REFUNDED
192
192
  FAILED
193
+ CANCELED
193
194
  }
194
195
 
195
196
  model Purchase {