Skip to content

Commit

Permalink
schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noamcattan committed Mar 19, 2024
1 parent 3b1ac88 commit b864e38
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions dirs/ecommerce/migrations/20240319115808_user_is_admin.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "users" table
ALTER TABLE `users` ADD COLUMN `is_admin` bool NULL DEFAULT 0;
3 changes: 2 additions & 1 deletion dirs/ecommerce/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:lLffNdyf0kFcOXtLQf0/xe1dI12l1Su3r/7i0AV1jwU=
h1:jNBWmTKllvO8Z2dWvwhVXU+3o8d3Gk565vv/a7TYdFo=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -10,3 +10,4 @@ h1:lLffNdyf0kFcOXtLQf0/xe1dI12l1Su3r/7i0AV1jwU=
20230531114433_seed_inventory.sql h1:jer7nlqTkkh435CE+LcQhdV6V/KQOVvNnP9/vKVG6KU=
20230531121807_orders.sql h1:RgIzinZdFrWrVCtrqQec/dJQ75tFQaOe+XLAHV5KzYM=
20230906125835_checkpoint.sql h1:jQaO4R0sJQ0ZOPp4Pp7pR2rQ1Cix9gaEaIt2qDomGWQ=
20240319115808_user_is_admin.sql h1:2DLidS3V0AKs8NqPAIUOlJjOUiUvVYPP0stOFSw6gS8=
2 changes: 2 additions & 0 deletions projects/estore/inventory/migrations/20240319121112.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "products" table
ALTER TABLE `products` DROP COLUMN `price`;

Check failure on line 2 in projects/estore/inventory/migrations/20240319121112.sql

View workflow job for this annotation

GitHub Actions / setup

destructive changes detected

Dropping non-virtual column "price" (DS103) Details: https://atlasgo.io/lint/analyzers#DS103
3 changes: 2 additions & 1 deletion projects/estore/inventory/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
h1:OD80uv7vCyCGr2x6dS4rLVaCkoj7JyydbcT6gxQAShI=
h1:rLaSupPDNS/GL2eTsyIKijPv+y+0Ud5ob4fVlbOjzhs=
20240307092728.sql h1:BEXRAbglZQlUqXHRy4fvsEVsu7FlSfKcJ/JAkH2XgMY=
20240307104354_add_warehouses.sql h1:heT56DSu6Ka8TJo8K4F92rVxinZmt+7tbMX+y3vaJKo=
20240319121112.sql h1:8V+10WB7IMgPOjGma+geTPqV2ZMxBkphSWlCWceWrVU=
5 changes: 0 additions & 5 deletions projects/estore/inventory/schema.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ table "products" {
null = true
type = int
}
column "price" {
null = false
type = decimal(10,2)
unsigned = false
}
column "description" {
null = true
type = text
Expand Down

0 comments on commit b864e38

Please sign in to comment.