Skip to content
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

[BUG]: Migrations Quick Start is outdated in docs #2305

Closed
alexisveryreal opened this issue May 12, 2024 · 2 comments
Closed

[BUG]: Migrations Quick Start is outdated in docs #2305

alexisveryreal opened this issue May 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@alexisveryreal
Copy link

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.21.1

Describe the Bug

image

Expected behavior

  • quick start should have similar setup to whats in drizzle-kit docs, either with Satifies Config or defineConfig function
export default {
  schema: "./server/db/schema.ts",
  out: "./drizzle",
  dialect: "postgresql",
  dbCredentials: {
    url: env.DATABASE_URL,
  },
  tablesFilter: ["project1_*"],
} satisfies Config;
export default defineConfig({
  schema: "./server/db/schema.ts",
  out: "./drizzle",
  dialect: "postgresql",
  dbCredentials: {
    url: env.DATABASE_URL,
  },
  tablesFilter: ["project1_*"],
});

I understand y'all put warnings here however this was a fresh install of drizzle-kit so I didn't even find what to do until I looked at the typescript type for Config.

I am willing to make a PR if y'all wish!

Environment & setup

N/A

@alexisveryreal alexisveryreal added the bug Something isn't working label May 12, 2024
@AndriiSherman
Copy link
Member

thanks! fixing it!

@AndriiSherman
Copy link
Member

Just fixed all the places, also found a few in tutorials. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants