Compare commits
1 Commits
a08d194cde
...
67dbcd053d
Author | SHA1 | Date | |
---|---|---|---|
67dbcd053d |
@ -2,7 +2,7 @@ create table users
|
||||
(
|
||||
id integer primary key,
|
||||
name text not null,
|
||||
weight real not null default 10.0,
|
||||
weight real not null default 0.0,
|
||||
balance integer not null default 0
|
||||
) strict;
|
||||
|
||||
|
4
backend/migrations/3_change_weight_default.sql
Normal file
4
backend/migrations/3_change_weight_default.sql
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user