Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when executing npm run migration:up #106

Open
MatinHQ opened this issue Dec 13, 2023 · 0 comments
Open

Error when executing npm run migration:up #106

MatinHQ opened this issue Dec 13, 2023 · 0 comments

Comments

@MatinHQ
Copy link

MatinHQ commented Dec 13, 2023

npm run migration:up

@forscht/ddrive@4.3.0 migration:up
knex migrate:up

Using environment: development
migration file "20230104113348_1.0.0.js" failed
migration failed with error: create table "directory" ("id" uuid default gen_random_uuid(), "name" varchar(255) not null, "parentId" uuid, "type" text check ("type" in ('directory', 'file')) not null, "createdAt" timestamptz not null default CURRENT_TIMESTAMP, constraint "directory_pkey" primary key ("id")) - function gen_random_uuid() does not exist
create table "directory" ("id" uuid default gen_random_uuid(), "name" varchar(255) not null, "parentId" uuid, "type" text check ("type" in ('directory', 'file')) not null, "createdAt" timestamptz not null default CURRENT_TIMESTAMP, constraint "directory_pkey" primary key ("id")) - function gen_random_uuid() does not exist
error: create table "directory" ("id" uuid default gen_random_uuid(), "name" varchar(255) not null, "parentId" uuid, "type" text check ("type" in ('directory', 'file')) not null, "createdAt" timestamptz not null default CURRENT_TIMESTAMP, constraint "directory_pkey" primary key ("id")) - function gen_random_uuid() does not exist
at Parser.parseErrorMessage (/root/ddrive/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/root/ddrive/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/root/ddrive/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket. (/root/ddrive/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:199:23)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant