mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/11459] Create schema.json from migration files
PHPBB3-11459
This commit is contained in:
parent
81f7240583
commit
b87f18bbc0
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue