X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcheckschema.php;h=6a4c8c972ce6f396b072e3f97b8076c65ba93f46;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=bf52abe15466b6a5187ce9f2b55d46de53a647b6;hpb=b4b992bca77d34b8643910e8d590b5be7fede94b;p=quix0rs-gnu-social.git diff --git a/scripts/checkschema.php b/scripts/checkschema.php old mode 100644 new mode 100755 index bf52abe154..6a4c8c972c --- a/scripts/checkschema.php +++ b/scripts/checkschema.php @@ -2,7 +2,7 @@ $def) { + $schemaUpdater->register($table, $def); +} +$schemaUpdater->checkSchema(); + +if (have_option('x', 'extensions')) { + $ext = trim(get_option_value('x', 'extensions')); + $exts = explode(',', $ext); + foreach ($exts as $plugin) { + try { + addPlugin($plugin); + } catch (Exception $e) { + print $e->getMessage()."\n"; + exit(1); + } + } +} Event::handle('CheckSchema');