1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Prepare for schema changes

This commit is contained in:
J. King 2020-10-29 11:58:45 -04:00
parent e9682bc601
commit b58a326461
4 changed files with 22 additions and 1 deletions

View file

@ -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 */

6
sql/MySQL/6.sql Normal file
View file

@ -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';

7
sql/PostgreSQL/6.sql Normal file
View file

@ -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';

8
sql/SQLite3/6.sql Normal file
View file

@ -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';