Skip to content

drizzle-kit pull produces a malformed relations.ts when there are no relations at all. #4333

Open
@minhoryang

Description

@minhoryang

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.41.0

What version of drizzle-kit are you using?

0.30.6

Other packages

No response

Describe the Bug

With this schema.ts, drizzle-kit pull produces a malformed relations.ts

  • schema.ts
import { integer, pgTable, text, varchar } from "drizzle-orm/pg-core";
export const users = pgTable('users', {
  id: integer(),
  first_name: text().notNull().default(''),
  last_name: varchar().notNull().default(''),
});
  • malformed relations.ts
import { relations } from "drizzle-orm/relations";
import {  } from "./schema";

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions