mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
Update 'docs/migrate.md'
This commit is contained in:
parent
6aa4a43ca1
commit
2293c21d64
@ -24,6 +24,24 @@ NODE_ENV=production pnpm run migrate
|
|||||||
# build using prefered method
|
# 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
|
## Misskey v12.119 and before
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
Reference in New Issue
Block a user