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

Column naming doesn't work with multiple renames #3702

Open
jrozner opened this issue Nov 11, 2024 · 2 comments
Open

Column naming doesn't work with multiple renames #3702

jrozner opened this issue Nov 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jrozner
Copy link

jrozner commented Nov 11, 2024

Version

1.27.0

What happened?

I'm using goose for migrations and sqlc to generate queries and models. I have a migration that updates multiple column names. When I run sqlc generate it only updates the first field but not the others.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

@jrozner jrozner added the bug Something isn't working label Nov 11, 2024
@jrozner
Copy link
Author

jrozner commented Nov 12, 2024

It looks like it just stopped processing the migration and silently failed maybe. There are other columns that weren't renamed but were removed and it didn't remove them from the generated models.

@kyleconroy
Copy link
Collaborator

Could you provide a way to reproduce the issue? It's difficult to understand what's going on without your actual migrations.

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