Skip to content

Commit

Permalink
Introduce constant TB_OBJECT_MODELS_AUTHORITATIVE
Browse files Browse the repository at this point in the history
This constants exists to tell CoreUpdate to consider object models definitions
as an ultimate source of truth. Database tables will be migrated to match
these definitions if there any differences in table structure are found.

Because this constant didn't exist in older version of thirtybess, using core updater
to downgrade to older version will not trigger any database migration
  • Loading branch information
getdatakick committed Aug 21, 2019
1 parent e6f6fc1 commit 202e5af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/config.inc.php
Expand Up @@ -39,6 +39,16 @@

$start_time = microtime(true);

/**
* This constants exists to tell CoreUpdate to consider object models definitions
* as an ultimate source of truth. Database tables will be migrated to match
* these definitions if there are any differences.
*
* Because this constant didn't exist in older version of thirtybess, downgrading will
* not trigger any database changes
*/
define('TB_OBJECT_MODELS_AUTHORITATIVE', true);

/* SSL configuration */
define('_PS_SSL_PORT_', 443);

Expand Down

0 comments on commit 202e5af

Please sign in to comment.