aboutsummaryrefslogtreecommitdiff
path: root/src/database.gleam
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-18 01:01:41 +0000
committerFuwn <[email protected]>2026-04-18 01:05:13 +0000
commit53fac17bbcaa2957235b54b6e24e835cabca2033 (patch)
treec15f761fb4faeb9cfad7716ec76eea6f7059f7ec /src/database.gleam
parentrefactor: Tighten dead branches and fail fast on missing index.html (diff)
downloadmayu-53fac17bbcaa2957235b54b6e24e835cabca2033.tar.xz
mayu-53fac17bbcaa2957235b54b6e24e835cabca2033.zip
fix: Harden startup + SVG input handling
Diffstat (limited to 'src/database.gleam')
-rw-r--r--src/database.gleam6
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)