diff options
| -rw-r--r-- | admin/schema_inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 63b9527..5c26b67 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -45,7 +45,6 @@ $tables = [ provider_identifier C(64) NOTNULL, last_login I8, profile_json X - CONSTRAINT ', CONSTRAINT `users_auth_user_ref` FOREIGN KEY (`user_id`) REFERENCES `".BIT_DB_PREFIX."users_users` (`user_id`)' ", 'users_permissions' => " @@ -183,6 +182,13 @@ $indices = [ ...$team_indices, ]; $gBitInstaller->registerSchemaIndexes( USERS_PKG_NAME, $indices ); +$constraints = [ + 'users_auth_map' => [ 'users_auth_user_ref' => 'FOREIGN KEY (`user_id`) REFERENCES `' . BIT_DB_PREFIX . 'users_users` (`user_id`)' ], +]; +foreach( array_keys( $constraints ) as $tableName ) { + $gBitInstaller->registerSchemaConstraints( USERS_PKG_NAME, $tableName, $constraints[$tableName] ); +} + $gBitInstaller->registerPackageInfo( USERS_PKG_NAME, [ 'description' => "The users package contains all user information and gives you the possiblity to assign permissions to users.", 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>', |
