diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-28 22:40:24 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-29 11:01:06 +0100 |
commit | b87f18bbc03aef33a1a73d8deb84d68824a299cb (patch) | |
tree | 37d2c23c76a5d74984caba2588f957f4ce3a6596 /phpBB/develop | |
parent | 81f724058366c96510ad802068becc3f18e701b1 (diff) | |
download | forums-b87f18bbc03aef33a1a73d8deb84d68824a299cb.tar forums-b87f18bbc03aef33a1a73d8deb84d68824a299cb.tar.gz forums-b87f18bbc03aef33a1a73d8deb84d68824a299cb.tar.bz2 forums-b87f18bbc03aef33a1a73d8deb84d68824a299cb.tar.xz forums-b87f18bbc03aef33a1a73d8deb84d68824a299cb.zip |
[ticket/11459] Create schema.json from migration files
PHPBB3-11459
Diffstat (limited to 'phpBB/develop')
-rw-r--r-- | phpBB/develop/create_schema_files.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php index db8c883393..728749950a 100644 --- a/phpBB/develop/create_schema_files.php +++ b/phpBB/develop/create_schema_files.php @@ -35,6 +35,10 @@ $schema_generator = new \phpbb\db\migration\schema_generator($classes, $config, $original_schema_data = $schema_generator->get_schema(); $dbms_type_map = phpbb\db\tools::get_dbms_type_map(); +$fp = fopen($schema_path . 'schema.json', 'wb'); +fwrite($fp, json_encode($schema_data, JSON_PRETTY_PRINT)); +fclose($fp); + // A list of types being unsigned for better reference in some db's $unsigned_types = array('UINT', 'UINT:', 'USINT', 'BOOL', 'TIMESTAMP'); $supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', 'postgres', 'sqlite'); |