Update default allowance, but differently (#84)
All checks were successful
Backend Build and Test / build (push) Successful in 3m27s
Backend Deploy / build (push) Successful in 1m47s

Reviewed-on: #84
This commit is contained in:
Sebastiaan de Schaetzen 2025-05-25 15:07:51 +02:00
parent 8cbfff81f6
commit 302ceaa629
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,7 @@ create table users
(
id integer primary key,
name text not null,
weight real not null default 0.0,
weight real not null default 10.0,
balance integer not null default 0
) strict;

View File

@ -1,4 +1 @@
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;
update users set weight = 10.0 where weight = 0.0;