-
Notifications
You must be signed in to change notification settings - Fork 238
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
language "plpgsql" does not exist
on Ubuntu Dev Container on Windows
#465
Comments
Do you reproduce the issue with |
I don’t have such. But everything works on one machine without it. Here is Drizzle migration files: CREATE TABLE IF NOT EXISTS "sessions" (
"createdAt" timestamp DEFAULT now() NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"token" text NOT NULL,
"usedAt" timestamp DEFAULT now() NOT NULL,
"userId" text NOT NULL
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "users" (
"createdAt" timestamp DEFAULT now() NOT NULL,
"id" text PRIMARY KEY NOT NULL
);
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "sessions" ADD CONSTRAINT "sessions_userId_users_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."users"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "sessionsUserIdx" ON "sessions" USING btree ("userId");
ALTER TABLE "users" ADD COLUMN "passwordHash" text;
ALTER TABLE "sessions" ADD COLUMN "clientId" text; Do you know why I may need it on one machine and do not need on another? |
@ai which node version are you using ? and which CPU architecture. Those can help investigating why you have such a difference |
I started to have But seems like we can close it. |
Hi. I got strange error when I tried to run my server on different environment.
JS code:
The projects use Dev Container with Ubuntu image and works correctly on my laptop (with Fedora) but we are getting this issue on Windows machine.
We are also using pnpm if it is related.
The text was updated successfully, but these errors were encountered: