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

fix copypasta error where the column name should be country_name #495

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

krashidov
Copy link
Contributor

Hey y'all not sure if this was a typo or if that column name is named like that on purpose. Great library, cheers

@@ -224,7 +224,7 @@ export const cities = pgTable('cities', {
id: serial('id').primaryKey(),
name: varchar('name', { length: 256 }),
countryId: integer('country_id').references(() => countries.id), // inline foreign key
countryName: varchar('country_id'),
countryName: varchar('country_name'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a .references(() => countries.name) or is that redundant with line 238?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, redundant

@dankochetov dankochetov merged commit b56b034 into drizzle-team:main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants