forscht / ddrive

Discord as a filesystem.
https://ddrive.forscht.dev
MIT License
475 stars 90 forks source link

Error when executing npm run migration:up #106

Open MatinHQ opened 7 months ago

MatinHQ commented 7 months ago

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)