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: fix issue with atlas migrations + search field #80

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

golanglemonade
Copy link
Member

@golanglemonade golanglemonade commented Jan 19, 2025

When using atlas auto migrations (which we use in our tests) I was getting this error:

Received unexpected error:
        	            	sql/schema: modify "procedure_history" table: pq: syntax error at end of input

Using the postgres.TypeBigSerial and not the default expr seems to fix this; the default expression was used because with with just SERIAL we would get an error for a required field not being set.

Fixes the return of Value to be an int instead of a string, when querying the database we need an int, the return to the user is a string. Tests updated to reflect the correct values.

@golanglemonade golanglemonade requested a review from a team as a code owner January 19, 2025 05:53
@github-actions github-actions bot added bug Something isn't working mixin labels Jan 19, 2025
@golanglemonade golanglemonade enabled auto-merge (squash) January 19, 2025 06:20
@golanglemonade golanglemonade marked this pull request as draft January 19, 2025 06:35
auto-merge was automatically disabled January 19, 2025 06:35

Pull request was converted to draft

Signed-off-by: Sarah Funkhouser <[email protected]>
@golanglemonade golanglemonade changed the title bug: fix issue with atlas migrations bug: fix issue with atlas migrations + search field Jan 19, 2025
@matoszz matoszz merged commit 6fb39a9 into main Jan 19, 2025
10 checks passed
@matoszz matoszz deleted the bug-atlas-migrations branch January 19, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mixin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants