From 5fbdf131e64ee01c0bae9159d135e1d8c4ccf039 Mon Sep 17 00:00:00 2001 From: Royhan <60024250+ookamiiixd@users.noreply.github.com> Date: Tue, 3 Jan 2023 11:46:11 +0700 Subject: [PATCH] delete migrations --- .../20221208155846_init/migration.sql | 160 ------------------ prisma/migrations/migration_lock.toml | 3 - 2 files changed, 163 deletions(-) delete mode 100644 prisma/migrations/20221208155846_init/migration.sql delete mode 100644 prisma/migrations/migration_lock.toml diff --git a/prisma/migrations/20221208155846_init/migration.sql b/prisma/migrations/20221208155846_init/migration.sql deleted file mode 100644 index f90d5c4c..00000000 --- a/prisma/migrations/20221208155846_init/migration.sql +++ /dev/null @@ -1,160 +0,0 @@ --- CreateTable -CREATE TABLE `Chat` ( - `pkId` INTEGER NOT NULL AUTO_INCREMENT, - `sessionId` VARCHAR(128) NOT NULL, - `archived` BOOLEAN NULL, - `contactPrimaryIdentityKey` LONGBLOB NULL, - `conversationTimestamp` BIGINT NULL, - `createdAt` BIGINT NULL, - `createdBy` VARCHAR(128) NULL, - `description` VARCHAR(255) NULL, - `disappearingMode` JSON NULL, - `displayName` VARCHAR(128) NULL, - `endOfHistoryTransfer` BOOLEAN NULL, - `endOfHistoryTransferType` INTEGER NULL, - `ephemeralExpiration` INTEGER NULL, - `ephemeralSettingTimestamp` BIGINT NULL, - `id` VARCHAR(128) NOT NULL, - `isDefaultSubgroup` BOOLEAN NULL, - `isParentGroup` BOOLEAN NULL, - `lastMsgTimestamp` BIGINT NULL, - `lidJid` VARCHAR(128) NULL, - `markedAsUnread` BOOLEAN NULL, - `mediaVisibility` INTEGER NULL, - `messages` JSON NULL, - `muteEndTime` BIGINT NULL, - `name` VARCHAR(128) NULL, - `newJid` VARCHAR(128) NULL, - `notSpam` BOOLEAN NULL, - `oldJid` VARCHAR(128) NULL, - `pHash` VARCHAR(128) NULL, - `parentGroupId` VARCHAR(128) NULL, - `participant` JSON NULL, - `pinned` INTEGER NULL, - `pnJid` VARCHAR(128) NULL, - `pnhDuplicateLidThread` BOOLEAN NULL, - `readOnly` BOOLEAN NULL, - `shareOwnPn` BOOLEAN NULL, - `support` BOOLEAN NULL, - `suspended` BOOLEAN NULL, - `tcToken` LONGBLOB NULL, - `tcTokenSenderTimestamp` BIGINT NULL, - `tcTokenTimestamp` BIGINT NULL, - `terminated` BOOLEAN NULL, - `unreadCount` INTEGER NULL, - `unreadMentionCount` INTEGER NULL, - `wallpaper` JSON NULL, - `lastMessageRecvTimestamp` INTEGER NULL, - - INDEX `Chat_sessionId_idx`(`sessionId`), - UNIQUE INDEX `unique_id_per_session_id`(`sessionId`, `id`), - PRIMARY KEY (`pkId`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - --- CreateTable -CREATE TABLE `Contact` ( - `pkId` INTEGER NOT NULL AUTO_INCREMENT, - `sessionId` VARCHAR(128) NOT NULL, - `id` VARCHAR(128) NOT NULL, - `name` VARCHAR(128) NULL, - `notify` VARCHAR(128) NULL, - `verifiedName` VARCHAR(128) NULL, - `imgUrl` VARCHAR(255) NULL, - `status` VARCHAR(128) NULL, - - INDEX `Contact_sessionId_idx`(`sessionId`), - UNIQUE INDEX `unique_id_per_session_id`(`sessionId`, `id`), - PRIMARY KEY (`pkId`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - --- CreateTable -CREATE TABLE `GroupMetadata` ( - `pkId` INTEGER NOT NULL AUTO_INCREMENT, - `sessionId` VARCHAR(128) NOT NULL, - `id` VARCHAR(128) NOT NULL, - `owner` VARCHAR(128) NULL, - `subject` VARCHAR(128) NOT NULL, - `subjectOwner` VARCHAR(128) NULL, - `subjectTime` INTEGER NULL, - `creation` INTEGER NULL, - `desc` VARCHAR(255) NULL, - `descOwner` VARCHAR(128) NULL, - `descId` VARCHAR(128) NULL, - `restrict` BOOLEAN NULL, - `announce` BOOLEAN NULL, - `size` INTEGER NULL, - `participants` JSON NOT NULL, - `ephemeralDuration` INTEGER NULL, - `inviteCode` VARCHAR(255) NULL, - - INDEX `GroupMetadata_sessionId_idx`(`sessionId`), - UNIQUE INDEX `unique_id_per_session_id`(`sessionId`, `id`), - PRIMARY KEY (`pkId`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - --- CreateTable -CREATE TABLE `Message` ( - `pkId` INTEGER NOT NULL AUTO_INCREMENT, - `sessionId` VARCHAR(128) NOT NULL, - `remoteJid` VARCHAR(128) NOT NULL, - `id` VARCHAR(128) NOT NULL, - `agentId` VARCHAR(128) NULL, - `bizPrivacyStatus` INTEGER NULL, - `broadcast` BOOLEAN NULL, - `clearMedia` BOOLEAN NULL, - `duration` INTEGER NULL, - `ephemeralDuration` INTEGER NULL, - `ephemeralOffToOn` BOOLEAN NULL, - `ephemeralOutOfSync` BOOLEAN NULL, - `ephemeralStartTimestamp` BIGINT NULL, - `finalLiveLocation` JSON NULL, - `futureproofData` LONGBLOB NULL, - `ignore` BOOLEAN NULL, - `keepInChat` JSON NULL, - `key` JSON NOT NULL, - `labels` JSON NULL, - `mediaCiphertextSha256` LONGBLOB NULL, - `mediaData` JSON NULL, - `message` JSON NULL, - `messageC2STimestamp` BIGINT NULL, - `messageSecret` LONGBLOB NULL, - `messageStubParameters` JSON NULL, - `messageStubType` INTEGER NULL, - `messageTimestamp` BIGINT NULL, - `multicast` BOOLEAN NULL, - `originalSelfAuthorUserJidString` VARCHAR(128) NULL, - `participant` VARCHAR(128) NULL, - `paymentInfo` JSON NULL, - `photoChange` JSON NULL, - `pollAdditionalMetadata` JSON NULL, - `pollUpdates` JSON NULL, - `pushName` VARCHAR(128) NULL, - `quotedPaymentInfo` JSON NULL, - `quotedStickerData` JSON NULL, - `reactions` JSON NULL, - `revokeMessageTimestamp` BIGINT NULL, - `starred` BOOLEAN NULL, - `status` INTEGER NULL, - `statusAlreadyViewed` BOOLEAN NULL, - `statusPsa` JSON NULL, - `urlNumber` BOOLEAN NULL, - `urlText` BOOLEAN NULL, - `userReceipt` JSON NULL, - `verifiedBizName` VARCHAR(128) NULL, - - INDEX `Message_sessionId_idx`(`sessionId`), - UNIQUE INDEX `unique_message_key_per_session_id`(`sessionId`, `remoteJid`, `id`), - PRIMARY KEY (`pkId`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - --- CreateTable -CREATE TABLE `Session` ( - `pkId` INTEGER NOT NULL AUTO_INCREMENT, - `sessionId` VARCHAR(128) NOT NULL, - `id` VARCHAR(255) NOT NULL, - `data` TEXT NOT NULL, - - INDEX `Session_sessionId_idx`(`sessionId`), - UNIQUE INDEX `unique_id_per_session_id`(`sessionId`, `id`), - PRIMARY KEY (`pkId`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml deleted file mode 100644 index e5a788a7..00000000 --- a/prisma/migrations/migration_lock.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Please do not edit this file manually -# It should be added in your version-control system (i.e. Git) -provider = "mysql" \ No newline at end of file