diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-29 15:28:48 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-29 15:28:48 -0700 |
commit | 345b7d33b8f641f23157fb7d73740f24169b46f9 (patch) | |
tree | 8f977708b3c55b9abf048ed55d2a1ccd20ce4fd7 /scripts | |
parent | 9ced8af8dc924d511ff3263654c92705352d4018 (diff) |
some sorta vaguely working bits
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkschema.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/checkschema.php b/scripts/checkschema.php index bf52abe15..73fd74302 100755 --- a/scripts/checkschema.php +++ b/scripts/checkschema.php @@ -27,4 +27,18 @@ END_OF_CHECKSCHEMA_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; +function tableDefs() +{ + $schema = array(); + require INSTALLDIR.'/db/core.php'; + return $schema; +} + +$schema = Schema::get(); +$schemaUpdater = new SchemaUpdater($schema); +foreach (tableDefs() as $table => $def) { + $schemaUpdater->register($table, $def); +} +$schemaUpdater->checkSchema(); + Event::handle('CheckSchema'); |