allowance_planner_2000/backend/migrations/3_change_weight_default.sql
Sebastiaan de Schaetzen 67dbcd053d
All checks were successful
Backend Build and Test / build (push) Successful in 2m5s
Set default total allowance to 10
2025-05-25 14:58:32 +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;