diff options
Diffstat (limited to 'src/database.gleam')
| -rw-r--r-- | src/database.gleam | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/database.gleam b/src/database.gleam index 5c3d9b2..053bc28 100644 --- a/src/database.gleam +++ b/src/database.gleam @@ -8,11 +8,9 @@ pub type Counter { } pub fn setup(connection) { - let _ = + let assert Ok(_) = sqlight.exec( - "pragma foreign_keys = off; - - create table if not exists tb_count ( + "create table if not exists tb_count ( id integer primary key autoincrement not null unique, name text not null unique, num int not null default (0) |