summaryrefslogtreecommitdiff
path: root/resources/sql
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-10-23 14:38:14 +0800
committereltrac <hi@eltr.ac>2026-10-23 14:53:19 +0800
commit871ea1569fc1dc5900e3b8233fc9aede8245f15f (patch)
treef1a95e0c7683935a6d93a3628ca5acf2e4b47c3e /resources/sql
parentc7ddb958d7f1630a273006898f83e1d6dc54c83b (diff)
storage: migrate from SQLite to H2
add ADR-0002 about migrating to H2
Diffstat (limited to 'resources/sql')
-rw-r--r--resources/sql/h2_init.sql (renamed from resources/sql/sqlite_init.sql)8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/sql/sqlite_init.sql b/resources/sql/h2_init.sql
index 012e9c6..2ca12bd 100644
--- a/resources/sql/sqlite_init.sql
+++ b/resources/sql/h2_init.sql
@@ -1,5 +1,5 @@
create table if not exists webmention (
- id integer primary key autoincrement,
+ id integer auto_increment primary key,
hash text not null unique,
wm_source text not null,
wm_target text not null,
@@ -7,11 +7,11 @@ create table if not exists webmention (
wm_target_domain text not null,
wm_source_path text not null,
wm_target_path text not null,
- lastmod integer not null
+ lastmod bigint not null
);
create table if not exists microformats (
- id integer primary key autoincrement,
+ id integer auto_increment primary key,
wm_id integer not null,
mf_type text not null,
mf_data text not null, /* schema on read, store EDN string here */
@@ -22,7 +22,7 @@ create table if not exists microformats (
);
create table if not exists proxied_photo (
- id integer primary key autoincrement,
+ id integer auto_increment primary key,
wm_id integer not null,
url text not null,