allowance_planner_2000/backend/migrations/3_change_weight_default.sql
Sebastiaan de Schaetzen 8cbfff81f6
Some checks failed
Backend Build and Test / build (push) Has started running
Backend Deploy / build (push) Has been cancelled
Set default total allowance to 10 (#83)
Reviewed-on: #83
2025-05-25 15:04:59 +02:00

5 lines
198 B
SQL

alter table users rename column weight to weight_old;
alter table users add column weight real not null default 10.0;
update users set weight = weight_old;
alter table users drop column weight_old;