Set default allowance to 10
Some checks failed
Backend Build and Test / build (push) Has been cancelled
Some checks failed
Backend Build and Test / build (push) Has been cancelled
This commit is contained in:
parent
67dbcd053d
commit
bf3ed6bfea
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user