lang-database 17.1.0 → 17.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,10 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `type` on the `badges` table. All the data in the column will be lost.
5
+ - Added the required column `reason` to the `badges` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "badges" DROP COLUMN "type",
10
+ ADD COLUMN "reason" "BadgeReason" NOT NULL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lang-database",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/schema.prisma CHANGED
@@ -140,7 +140,7 @@ model Badge {
140
140
  id String @id @default(cuid())
141
141
  user User @relation(fields: [userId], references: [id])
142
142
  userId String
143
- type BadgeReason
143
+ reason BadgeReason
144
144
  timestamp DateTime
145
145
  @@map("badges")
146
146
  }