class schema_generator

The schema generator generates the schema based on the existing migrations

Properties

protected config $config
protected driver_interface $db
protected tools_interface $db_tools
protected array $class_names
protected string $table_prefix
protected string $phpbb_root_path
protected string $php_ext
protected array $tables
protected array $dependencies

Methods

__construct(array $class_names, config $config, driver_interface $db, tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)

Constructor

array
get_schema()

Loads all migrations and their application state from the database.

check_dependencies()

Check if one of the migrations files' dependencies can't be resolved by the supplied list of migrations

Details

at line 51
__construct(array $class_names, config $config, driver_interface $db, tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)

Constructor

Parameters

array $class_names
config $config
driver_interface $db
tools_interface $db_tools
$phpbb_root_path
$php_ext
$table_prefix

at line 67
array get_schema()

Loads all migrations and their application state from the database.

Return Value

array

at line 229
protected check_dependencies()

Check if one of the migrations files' dependencies can't be resolved by the supplied list of migrations