Skip to content

Commit

Permalink
chore: create migration (#180)
Browse files Browse the repository at this point in the history
* chore: create migration

* chore: remove codacy badge
  • Loading branch information
killbasa authored Nov 2, 2023
1 parent 0163561 commit 29bb5c4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
[![Uptime Kuma](https://status.kbot.ca/api/badge/8/status?upLabel=online&downLabel=offline&label=Bot+status)](https://status.kbot.ca/status/kbot)

[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b1a776ba1a064d34a1886e3c74c0cada)](https://www.codacy.com/gh/KBot-discord/KBot/dashboard?utm_source=github.com&utm_medium=referral&utm_content=KBot-discord/KBot&utm_campaign=Badge_Grade)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FKBot-discord%2FKBot.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FKBot-discord%2FKBot?ref=badge_shield)

### A multi-purpose Discord bot using [Sapphire](https://www.sapphirejs.dev/) and [discord.js](https://discord.js.org).
Expand Down
3 changes: 2 additions & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"db:generate": "yarn schemix && prisma generate",
"db:push": "prisma db push",
"db:sync": "yarn db:generate && yarn db:push",
"db:deploy": "prisma migrate deploy"
"db:deploy": "prisma migrate deploy",
"db:migrate": "prisma migrate reset && prisma migrate dev"
},
"dependencies": {
"@prisma/client": "^5.5.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Warnings:
- You are about to drop the column `twitchId` on the `HolodexChannel` table. All the data in the column will be lost.
- You are about to drop the column `twitchSubscriptionId` on the `HolodexChannel` table. All the data in the column will be lost.
- You are about to drop the `TwitchConflict` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropIndex
DROP INDEX "HolodexChannel_twitchId_key";

-- AlterTable
ALTER TABLE "HolodexChannel" DROP COLUMN "twitchId",
DROP COLUMN "twitchSubscriptionId";

-- DropTable
DROP TABLE "TwitchConflict";

-- DropEnum
DROP TYPE "ModerationActionType";

0 comments on commit 29bb5c4

Please sign in to comment.