From cefb274a98cb53837bd5d588a2ea489e22b64684 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Wed, 29 Mar 2023 21:10:00 +0000 Subject: [PATCH] Update 'docs/migrate.md' --- docs/migrate.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/migrate.md b/docs/migrate.md index cdb59951fb..b7cc606d0c 100644 --- a/docs/migrate.md +++ b/docs/migrate.md @@ -24,6 +24,24 @@ NODE_ENV=production pnpm run migrate # build using prefered method ``` +Depending on the version you're migrating from, you may have to open Postgres with `psql -d your_database` and run the following commands: + +```sql +ALTER TABLE "meta" ADD COLUMN "disableLocalTimeline" boolean DEFAULT false; +ALTER TABLE "meta" ADD COLUMN "disableGlobalTimeline" boolean DEFAULT false; +ALTER TABLE "meta" ADD COLUMN "localDriveCapacityMb" integer DEFAULT 512; +ALTER TABLE "meta" ADD COLUMN "remoteDriveCapacityMb" integer DEFAULT 128; +ALTER TABLE "user" ADD COLUMN "isSilenced" boolean DEFAULT false; +ALTER TABLE "user" ADD COLUMN "isAdmin" boolean DEFAULT false; +ALTER TABLE "user" ADD COLUMN "isModerator" boolean DEFAULT false; +ALTER TABLE "user" ADD COLUMN "remoteDriveCapacityMb" integer DEFAULT 128; +ALTER TABLE "user" ADD COLUMN "driveCapacityOverrideMb" integer DEFAULT 128; +ALTER TABLE "instance" ADD COLUMN "caughtAt" date; +ALTER TABLE "instance" ADD COLUMN "latestRequestSentAt" date; +ALTER TABLE "instance" ADD COLUMN "latestStatus" character varying(512); +ALTER TABLE "instance" ADD COLUMN "lastCommunicatedAt" date; +``` + ## Misskey v12.119 and before ```sh