WIP: migrations

This commit is contained in:
2024-01-28 23:34:13 -03:00
parent fbf487051e
commit 1aa9f6992b
5 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
module db.migrations.m_001_initial;
import db.migrations.migration;
Migration Initial = Migration(
[
`create table users(
id uuid not null,
name character varying(255),
handle character varying(255),
local boolean not null,
ap_id character varying(255) not null,
ap_privkey text,
ap_pubkey text,
ap_shared_inbox text,
ap_inbox text,
ap_outbox text,
ap_followers_addr text,
ap_following_addr text
);`
],
[
`drop table users;`
],
);