🚸 (dashboard) Add unpublish menu item in dashboard
Also remove the useless publishedTypebotId field in Typebot Closes #232
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `publishedTypebotId` on the `Typebot` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Typebot" DROP COLUMN "publishedTypebotId";
|
||||
@@ -155,7 +155,6 @@ model Typebot {
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
icon String?
|
||||
name String
|
||||
publishedTypebotId String?
|
||||
folderId String?
|
||||
groups Json
|
||||
variables Json[]
|
||||
|
||||
@@ -52,7 +52,6 @@ export const typebotSchema = schemaForType<TypebotPrisma>()(
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
icon: z.string().nullable(),
|
||||
publishedTypebotId: z.string().nullable(),
|
||||
folderId: z.string().nullable(),
|
||||
publicId: z.string().nullable(),
|
||||
customDomain: z.string().nullable(),
|
||||
|
||||
@@ -24,7 +24,6 @@ export const parseTestTypebot = (
|
||||
publicId: null,
|
||||
updatedAt: new Date(),
|
||||
createdAt: new Date(),
|
||||
publishedTypebotId: null,
|
||||
customDomain: null,
|
||||
icon: null,
|
||||
isArchived: false,
|
||||
|
||||
Reference in New Issue
Block a user