Browse Source

Prepare for schema changes

rpm
J. King 4 years ago
parent
commit
b58a326461
  1. 2
      lib/Database.php
  2. 6
      sql/MySQL/6.sql
  3. 7
      sql/PostgreSQL/6.sql
  4. 8
      sql/SQLite3/6.sql

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

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

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

8
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';
Loading…
Cancel
Save