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
CREATETABLEIF NOT EXISTS "account"."users" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"email"varchar(255) NOT NULL,
// ...
);
CREATEINDEXIF NOT EXISTS users_email_index ON users ("email");
CREATEUNIQUE INDEXIF NOT EXISTS users_email_unique ON users ("email");
CREATEUNIQUE INDEXIF NOT EXISTS users_id_unique ON users ("id");
the indexes are created on public.user rather than account.users
If there is an API for this let me know, I will submit a docs update PR.
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.23.2
Describe the Bug
Basically indexes are applied to
public
schema no matter if you use custom postgresql schema or notContents of my schema.ts looks like this:
that generates this sql migration output:
the indexes are created on
public.user
rather thanaccount.users
If there is an API for this let me know, I will submit a docs update PR.
The text was updated successfully, but these errors were encountered: