From e861cca53d959133434bb621931e6f616e93cd44 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 6 Nov 2020 11:06:27 -0500 Subject: [PATCH] Integrate schema change necessary for microsub --- sql/MySQL/6.sql | 2 ++ sql/PostgreSQL/6.sql | 2 ++ sql/SQLite3/6.sql | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/sql/MySQL/6.sql b/sql/MySQL/6.sql index 4d7d4ae..6c652e8 100644 --- a/sql/MySQL/6.sql +++ b/sql/MySQL/6.sql @@ -4,6 +4,8 @@ -- Please consult the SQLite 3 schemata for commented version +alter table arsse_tokens add column data longtext default null; + alter table arsse_users add column num bigint unsigned unique; alter table arsse_users add column admin boolean not null default 0; alter table arsse_users add column lang longtext; diff --git a/sql/PostgreSQL/6.sql b/sql/PostgreSQL/6.sql index c78f6d4..f14f8c8 100644 --- a/sql/PostgreSQL/6.sql +++ b/sql/PostgreSQL/6.sql @@ -4,6 +4,8 @@ -- Please consult the SQLite 3 schemata for commented version +alter table arsse_tokens add column data text default null; + alter table arsse_users add column num bigint unique; alter table arsse_users add column admin smallint not null default 0; alter table arsse_users add column lang text; diff --git a/sql/SQLite3/6.sql b/sql/SQLite3/6.sql index 6e8a993..8c6f73f 100644 --- a/sql/SQLite3/6.sql +++ b/sql/SQLite3/6.sql @@ -2,6 +2,10 @@ -- Copyright 2017 J. King, Dustin Wilson et al. -- See LICENSE and AUTHORS files for details +-- Add a column to the token table to hold arbitrary class-specific data +-- This is a speculative addition to support OAuth login in the future +alter table arsse_tokens add column data text default null; + -- Add multiple columns to the users table -- In particular this adds a numeric identifier for each user, which Miniflux requires create table arsse_users_new(