X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcheckschema.php;h=584f7a39e753a4d4d18dbb497466758d435ceb37;hb=c285f80b1830cffd20a28c693d74c59f8c3c39f6;hp=bf52abe15466b6a5187ce9f2b55d46de53a647b6;hpb=c5047fd90ac8f6f057780a34065e320883c7a31f;p=quix0rs-gnu-social.git diff --git a/scripts/checkschema.php b/scripts/checkschema.php old mode 100644 new mode 100755 index bf52abe154..584f7a39e7 --- 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('BeforePluginCheckSchema'); Event::handle('CheckSchema');