@smarttj/core 1.1.2 → 1.1.3

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": "@smarttj/core",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Shared enums, constants and database schemas for SmartTJ ecosystem",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,7 +22,8 @@
22
22
  "scripts": {
23
23
  "clean": "rimraf dist",
24
24
  "build": "npm run clean && tsc",
25
- "prepare": "npm run build"
25
+ "prepare": "npm run build",
26
+ "prisma:migrate": "npx prisma migrate dev --name init --create-only"
26
27
  },
27
28
  "publishConfig": {
28
29
  "access": "public"
@@ -0,0 +1,10 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `message` on the `Banner` table. All the data in the column will be lost.
5
+ - Added the required column `description` to the `Banner` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "Banner" DROP COLUMN "message",
10
+ ADD COLUMN "description" TEXT NOT NULL;
@@ -785,13 +785,13 @@ enum BannerPosition {
785
785
  }
786
786
 
787
787
  model Banner {
788
- id String @id @default(uuid(7))
789
- title String
790
- message String
791
- url String
792
- position BannerPosition @default(MAIN)
793
- image String?
794
- imageId String?
788
+ id String @id @default(uuid(7))
789
+ title String
790
+ description String
791
+ url String
792
+ position BannerPosition @default(MAIN)
793
+ image String?
794
+ imageId String?
795
795
 
796
796
  createdAt DateTime @default(now())
797
797
  updatedAt DateTime @updatedAt