mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
feat: remove copyright report type, private repo changes, fix instructions not removing booleans
This commit is contained in:
parent
949e86111a
commit
307aefa894
10 changed files with 18 additions and 818 deletions
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- The values [COPYRIGHT] on the enum `ReportReason` will be removed. If these variants are still used in the database, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterEnum
|
||||
BEGIN;
|
||||
CREATE TYPE "ReportReason_new" AS ENUM ('INAPPROPRIATE', 'SPAM', 'BAD_QUALITY', 'OTHER');
|
||||
ALTER TABLE "reports" ALTER COLUMN "reason" TYPE "ReportReason_new" USING ("reason"::text::"ReportReason_new");
|
||||
ALTER TYPE "ReportReason" RENAME TO "ReportReason_old";
|
||||
ALTER TYPE "ReportReason_new" RENAME TO "ReportReason";
|
||||
DROP TYPE "public"."ReportReason_old";
|
||||
COMMIT;
|
||||
|
|
@ -193,7 +193,6 @@ enum ReportType {
|
|||
enum ReportReason {
|
||||
INAPPROPRIATE
|
||||
SPAM
|
||||
COPYRIGHT
|
||||
BAD_QUALITY
|
||||
OTHER
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue