1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-08 00:42:40 +00:00
Arsse/sql/MySQL/1.sql

34 lines
1 KiB
MySQL
Raw Normal View History

-- SPDX-License-Identifier: MIT
-- Copyright 2017 J. King, Dustin Wilson et al.
-- See LICENSE and AUTHORS files for details
-- Please consult the SQLite 3 schemata for commented version
create table arsse_sessions (
id varchar(255) primary key,
created datetime(0) not null default CURRENT_TIMESTAMP,
expires datetime(0) not null,
2024-12-27 18:36:54 +00:00
"user" varchar(255) not null
2018-12-15 16:09:46 +00:00
) character set utf8mb4;
create table arsse_labels (
id serial primary key,
2024-12-27 18:36:54 +00:00
owner varchar(255) not null,
name varchar(255) not null,
modified datetime(0) not null default CURRENT_TIMESTAMP,
unique(owner,name)
2018-12-15 16:09:46 +00:00
) character set utf8mb4;
create table arsse_label_members (
2024-12-27 18:36:54 +00:00
label bigint not null,
article bigint not null,
subscription bigint not null,
assigned boolean not null default 1,
modified datetime(0) not null default CURRENT_TIMESTAMP,
primary key(label,article)
2018-12-15 16:09:46 +00:00
) character set utf8mb4;
alter table arsse_marks add column note longtext;
2019-03-03 17:10:18 +00:00
update arsse_meta set value = '2' where "key" = 'schema_version';