No config path provided, using default 'drizzle.config.ts'
Reading config file '<repo_root>e/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...
[i] No changes detected
No changes in the database e.g. when using drizzle-kit studio / running logging in and running \dn.
I would expect drizzle to create the schema and the tables for this schema. e.g.:
CREATE SCHEMA IF NOT EXISTS "test";
CREATE TABLE IF NOT EXISTS "test"."users" (
"id" serial PRIMARY KEY NOT NULL,
"full_name" text,
"phone" varchar(256)
);
using default schema (public)
However, when using the default public schema, it works:
No config path provided, using default 'drizzle.config.ts'
Reading config file '<repo_root>/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...
Warning You are about to execute current statements:
CREATE TABLE IF NOT EXISTS "users" (
"id" serial PRIMARY KEY NOT NULL,
"full_name" text,
"phone" varchar(256)
);
[✓] Changes applied
Now I see the changes in the database e.g. when using drizzle-kit studio.
drizzle-kit
version 0.23.2When running having a
pgSchema
e.g.test
, the database is not synced when runningdrizzle-kit push
.using schema
output
No changes in the database e.g. when using
drizzle-kit studio
/ running logging in and running\dn
.I would expect drizzle to create the
schema
and the tables for this schema. e.g.:using default schema (
public
)However, when using the default
public
schema, it works:output
Now I see the changes in the database e.g. when using
drizzle-kit studio
.