Skip to content

Commit

Permalink
migrations: adds new migrations for commerce points default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmartt committed Sep 30, 2024
1 parent 99de0f7 commit 2d9e990
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

-- +migrate Up

ALTER TABLE commerce
ALTER COLUMN points_x_buy SET DEFAULT 0,
ALTER COLUMN value_x_point SET DEFAULT 0;


-- +migrate Down

ALTER TABLE commerce
ALTER COLUMN points_x_buy DROP DEFAULT,
ALTER COLUMN value_x_point DROP DEFAULT;

0 comments on commit 2d9e990

Please sign in to comment.