Compare commits

..

1 Commits

Author SHA1 Message Date
67dbcd053d Set default total allowance to 10
All checks were successful
Backend Build and Test / build (push) Successful in 2m5s
2025-05-25 14:58:32 +02:00
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -0,0 +1,4 @@
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;