All checks were successful
Deploy Smart Search Backend / deploy (push) Successful in 1m41s
5 lines
170 B
SQL
5 lines
170 B
SQL
-- +goose Up
|
|
ALTER TABLE users ADD CONSTRAINT balance_non_negative CHECK (balance >= 0);
|
|
|
|
-- +goose Down
|
|
ALTER TABLE users DROP CONSTRAINT IF EXISTS balance_non_negative; |