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 postgresql alter table alter column #4868

Merged

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Dec 2, 2023

🍔 🔨 This is to fix the case where more than one table was migrated - should have used first {...} not first()

  • Removes the null checks as one table matching table-name is expected
  • Updates the migration test to generate table interfaces for two tables

🐘 Tested with a more complete example locally https://github.com/griffio/sqldelight-postgres-01

Matches the correct table if there are more than one table in the migration
Removes the null check as one table is expected to be available in the alter table clause
Shows that two tables can be migrated
@AlecKazakova AlecKazakova merged commit 891aca1 into cashapp:master Dec 4, 2023
7 checks passed
@griffio griffio deleted the fix-postgresql-alter-table-alter-column branch December 4, 2023 14:29
hfhbd pushed a commit that referenced this pull request Apr 2, 2024
* Fix multiple tables in migration

Matches the correct table if there are more than one table in the migration
Removes the null check as one table is expected to be available in the alter table clause

* Tests include two tables

Shows that two tables can be migrated
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.

None yet

2 participants