You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't migrate, looks like #4926 but can't understood that.
馃檪 Expected Behavior
migration success
鈽癸笍 Actual Behavior
migration failed
馃摑 Steps to Reproduce
git checkout master
git pull
npm run cleanall
npm i
NODE_ENV=production npm run build
npm i ts-node
npm run migrate
馃搶 Environment
Ubuntu18.04
Logs
misskey@gothloli.club:~/misskey$ npm run migrate
> misskey@11.15.0 migrate /home/misskey/misskey
> npm run ormconfig && ts-node ./node_modules/typeorm/cli.js migration:run
> misskey@11.15.0 ormconfig /home/misskey/misskey
> node ./built/ormconfig.js
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = curren t_schema() AND "table_name" = 'migrations'
query: CREATE TABLE "migrations" ("id" SERIAL NOT NULL, "timestamp" bigint NOT N ULL, "name" character varying NOT NULL, CONSTRAINT "PK_8c82d7f526340ab734260ea46 be" PRIMARY KEY ("id"))
query: SELECT * FROM "migrations" "migrations"
0 migrations are already loaded in the database.
5 migrations were found in the source code.
5 migrations are new migrations that needs to be executed.
query: START TRANSACTION
query: CREATE TYPE "page_visibility_enum" AS ENUM('public', 'followers', 'specif ied')
query failed: CREATE TYPE "page_visibility_enum" AS ENUM('public', 'followers', 'specified')
error: { error: type "page_visibility_enum" already exists
at Connection.parseE (/home/misskey/misskey/node_modules/pg/lib/connection.j s:602:11)
at Connection.parseMessage (/home/misskey/misskey/node_modules/pg/lib/connec tion.js:399:19)
at Socket.<anonymous> (/home/misskey/misskey/node_modules/pg/lib/connection. js:121:22)
at Socket.emit (events.js:193:13)
at Socket.EventEmitter.emit (domain.js:481:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:231:10)
at TCP.onStreamRead (internal/stream_base_commons.js:154:17)
name: 'error',
length: 100,
severity: 'ERROR',
code: '42710',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'typecmds.c',
line: '1139',
routine: 'DefineEnum' }
query: ROLLBACK
Error during migration run:
{ QueryFailedError: type "page_visibility_enum" already exists
at new QueryFailedError (/home/misskey/misskey/src/error/QueryFailedError.ts :9:9)
at Query.callback (/home/misskey/misskey/src/driver/postgres/PostgresQueryRu nner.ts:176:30)
at Query.handleError (/home/misskey/misskey/node_modules/pg/lib/query.js:142 :17)
at Connection.connectedErrorMessageHandler (/home/misskey/misskey/node_modul es/pg/lib/client.js:194:17)
at Connection.emit (events.js:193:13)
at Connection.EventEmitter.emit (domain.js:481:20)
at Socket.<anonymous> (/home/misskey/misskey/node_modules/pg/lib/connection. js:126:12)
at Socket.emit (events.js:193:13)
at Socket.EventEmitter.emit (domain.js:481:20)
at addChunk (_stream_readable.js:295:12)
message: 'type "page_visibility_enum" already exists',
name: 'QueryFailedError',
length: 100,
severity: 'ERROR',
code: '42710',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'typecmds.c',
line: '1139',
routine: 'DefineEnum',
query:
`CREATE TYPE "page_visibility_enum" AS ENUM('public', 'followers', 'specified ')`,
parameters: [] }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! misskey@11.15.0 migrate: `npm run ormconfig && ts-node ./node_modules/t ypeorm/cli.js migration:run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the misskey@11.15.0 migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in:
The text was updated successfully, but these errors were encountered:
馃挕 Summary
Can't migrate, looks like #4926 but can't understood that.
馃檪 Expected Behavior
migration success
migration failed
馃摑 Steps to Reproduce
馃搶 Environment
Ubuntu18.04
Logs
The text was updated successfully, but these errors were encountered: