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 NUMERIC NOT NULL #60

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Fix NUMERIC NOT NULL #60

merged 2 commits into from
Jun 18, 2024

Conversation

sonatard
Copy link
Contributor

@sonatard sonatard commented Jun 17, 2024

Fix #59

$ hammer diff spanner://projects/xxx/instances/yyy/databases/zzz schema.sql
ALTER TABLE Test ADD COLUMN A NUMERIC NOT NULL DEFAULT (0);
ALTER TABLE Test ALTER COLUMN A DROP DEFAULT;

Since spansql.NumericLiteral type does not exist in https://github.com/googleapis/google-cloud-go, I am using FloatLiteral instead.

@daichirata daichirata merged commit fb333c3 into daichirata:master Jun 18, 2024
6 checks passed
@daichirata
Copy link
Owner

Thanks for the PR!

@sonatard sonatard deleted the numeric branch June 18, 2024 02:20
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.

Cannot add NOT NULL column on Numeric Type
2 participants