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

feat: change snowflake table #4

Merged
merged 1 commit into from Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions snowflake/migrations/20240228162851_change.down.sql
@@ -0,0 +1,3 @@
ALTER TABLE "user" DROP COLUMN "gender";
ALTER TABLE "user" DROP COLUMN "address";
ALTER TABLE "user" ADD "age" integer NOT NULL;
3 changes: 3 additions & 0 deletions snowflake/migrations/20240228162851_change.up.sql
@@ -0,0 +1,3 @@
ALTER TABLE "user" DROP COLUMN "age";

Check failure on line 1 in snowflake/migrations/20240228162851_change.up.sql

View workflow job for this annotation

GitHub Actions / SQL Review

schema.backward-compatibility (105)

"ALTER TABLE "user" DROP COLUMN "age";" may cause incompatibility with the existing data and code
ALTER TABLE "user" ADD "address" VARCHAR(255);

Check warning on line 2 in snowflake/migrations/20240228162851_change.up.sql

View workflow job for this annotation

GitHub Actions / SQL Review

column.no-null (402)

Column "address" in "public"."user" cannot have NULL value
ALTER TABLE "user" ADD "gender" VARCHAR(255) NOT NULL;