diff --git a/lib/Database.php b/lib/Database.php index 6efda1b4..52d315c7 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -39,7 +39,7 @@ use JKingWeb\Arsse\Misc\URL; */ class Database { /** The version number of the latest schema the interface is aware of */ - public const SCHEMA_VERSION = 6; + public const SCHEMA_VERSION = 7; /** Makes tag/label association change operations remove members */ public const ASSOC_REMOVE = 0; /** Makes tag/label association change operations add members */ diff --git a/sql/MySQL/6.sql b/sql/MySQL/6.sql new file mode 100644 index 00000000..fff57671 --- /dev/null +++ b/sql/MySQL/6.sql @@ -0,0 +1,6 @@ +-- SPDX-License-Identifier: MIT +-- Copyright 2017 J. King, Dustin Wilson et al. +-- See LICENSE and AUTHORS files for details + + +update arsse_meta set value = '7' where "key" = 'schema_version'; diff --git a/sql/PostgreSQL/6.sql b/sql/PostgreSQL/6.sql new file mode 100644 index 00000000..4d86e98c --- /dev/null +++ b/sql/PostgreSQL/6.sql @@ -0,0 +1,7 @@ +-- SPDX-License-Identifier: MIT +-- Copyright 2017 J. King, Dustin Wilson et al. +-- See LICENSE and AUTHORS files for details + + + +update arsse_meta set value = '7' where "key" = 'schema_version'; diff --git a/sql/SQLite3/6.sql b/sql/SQLite3/6.sql new file mode 100644 index 00000000..7f74ee29 --- /dev/null +++ b/sql/SQLite3/6.sql @@ -0,0 +1,8 @@ +-- SPDX-License-Identifier: MIT +-- Copyright 2017 J. King, Dustin Wilson et al. +-- See LICENSE and AUTHORS files for details + + +-- set version marker +pragma user_version = 7; +update arsse_meta set value = '7' where "key" = 'schema_version';