X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fcheckschema.php;h=cec5773683ef8ef52d7c7b13ab615fe896a2163c;hb=0e439117a75698629c5066d0241ab41dc07b5ee1;hp=bf52abe15466b6a5187ce9f2b55d46de53a647b6;hpb=384a50a7800abde62e040ea57872dc06c0519047;p=quix0rs-gnu-social.git diff --git a/scripts/checkschema.php b/scripts/checkschema.php old mode 100644 new mode 100755 index bf52abe154..cec5773683 --- 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');