├── .phpstorm.meta.php ├── bin └── phoenix ├── composer.json ├── config_example ├── phoenix.json ├── phoenix.neon ├── phoenix.php └── phoenix.yml ├── phpstan.neon └── src ├── Behavior └── ParamsCheckerBehavior.php ├── Command ├── AbstractCommand.php ├── AbstractDumpCommand.php ├── AbstractRunCommand.php ├── CleanupCommand.php ├── CreateCommand.php ├── DiffCommand.php ├── DumpCommand.php ├── InitCommand.php ├── MigrateCommand.php ├── RollbackCommand.php ├── StatusCommand.php └── TestCommand.php ├── Comparator ├── ColumnComparator.php ├── SettingsComparator.php ├── StructureComparator.php └── TableComparator.php ├── Config ├── Config.php ├── EnvironmentConfig.php └── Parser │ ├── ConfigParserFactory.php │ ├── ConfigParserInterface.php │ ├── JsonConfigParser.php │ ├── NeonConfigParser.php │ ├── PhpConfigParser.php │ └── YamlConfigParser.php ├── Database ├── Adapter │ ├── AdapterFactory.php │ ├── AdapterInterface.php │ ├── Behavior │ │ └── StructureBehavior.php │ ├── MysqlAdapter.php │ ├── PdoAdapter.php │ └── PgsqlAdapter.php ├── Element │ ├── Behavior │ │ ├── AutoIncrementBehavior.php │ │ ├── CharsetAndCollationBehavior.php │ │ ├── ColumnsToChangeBehavior.php │ │ ├── ColumnsToDropBehavior.php │ │ ├── ColumnsToRenameBehavior.php │ │ ├── CommentBehavior.php │ │ ├── CopyTableBehavior.php │ │ ├── DropPrimaryKeyBehavior.php │ │ ├── ForeignKeyBehavior.php │ │ ├── IndexBehavior.php │ │ ├── PrimaryColumnsBehavior.php │ │ └── UniqueConstraintBehavior.php │ ├── Column.php │ ├── ColumnSettings.php │ ├── ForeignKey.php │ ├── Index.php │ ├── IndexColumn.php │ ├── IndexColumnSettings.php │ ├── MigrationTable.php │ ├── MigrationView.php │ ├── Structure.php │ ├── Table.php │ └── UniqueConstraint.php └── QueryBuilder │ ├── CommonQueryBuilder.php │ ├── MysqlQueryBuilder.php │ ├── PgsqlQueryBuilder.php │ └── QueryBuilderInterface.php ├── Dumper ├── Dumper.php └── Indenter.php ├── Exception ├── ConfigException.php ├── DatabaseQueryExecuteException.php ├── IncorrectMethodUsageException.php ├── InvalidArgumentValueException.php ├── PhoenixException.php ├── StructureException.php └── WrongCommandException.php ├── Migration ├── AbstractMigration.php ├── ClassNameCreator.php ├── FilesFinder.php ├── Init │ └── 0_init.php ├── Manager.php ├── MigrationCreator.php └── MigrationNameCreator.php ├── Templates ├── DefaultTemplate.phoenix └── TemplateManager.php └── composer_autoloader.php /.phpstorm.meta.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/.phpstorm.meta.php -------------------------------------------------------------------------------- /bin/phoenix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/bin/phoenix -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/composer.json -------------------------------------------------------------------------------- /config_example/phoenix.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/config_example/phoenix.json -------------------------------------------------------------------------------- /config_example/phoenix.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/config_example/phoenix.neon -------------------------------------------------------------------------------- /config_example/phoenix.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/config_example/phoenix.php -------------------------------------------------------------------------------- /config_example/phoenix.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/config_example/phoenix.yml -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/phpstan.neon -------------------------------------------------------------------------------- /src/Behavior/ParamsCheckerBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Behavior/ParamsCheckerBehavior.php -------------------------------------------------------------------------------- /src/Command/AbstractCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/AbstractCommand.php -------------------------------------------------------------------------------- /src/Command/AbstractDumpCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/AbstractDumpCommand.php -------------------------------------------------------------------------------- /src/Command/AbstractRunCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/AbstractRunCommand.php -------------------------------------------------------------------------------- /src/Command/CleanupCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/CleanupCommand.php -------------------------------------------------------------------------------- /src/Command/CreateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/CreateCommand.php -------------------------------------------------------------------------------- /src/Command/DiffCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/DiffCommand.php -------------------------------------------------------------------------------- /src/Command/DumpCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/DumpCommand.php -------------------------------------------------------------------------------- /src/Command/InitCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/InitCommand.php -------------------------------------------------------------------------------- /src/Command/MigrateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/MigrateCommand.php -------------------------------------------------------------------------------- /src/Command/RollbackCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/RollbackCommand.php -------------------------------------------------------------------------------- /src/Command/StatusCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/StatusCommand.php -------------------------------------------------------------------------------- /src/Command/TestCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Command/TestCommand.php -------------------------------------------------------------------------------- /src/Comparator/ColumnComparator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Comparator/ColumnComparator.php -------------------------------------------------------------------------------- /src/Comparator/SettingsComparator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Comparator/SettingsComparator.php -------------------------------------------------------------------------------- /src/Comparator/StructureComparator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Comparator/StructureComparator.php -------------------------------------------------------------------------------- /src/Comparator/TableComparator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Comparator/TableComparator.php -------------------------------------------------------------------------------- /src/Config/Config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Config.php -------------------------------------------------------------------------------- /src/Config/EnvironmentConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/EnvironmentConfig.php -------------------------------------------------------------------------------- /src/Config/Parser/ConfigParserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/ConfigParserFactory.php -------------------------------------------------------------------------------- /src/Config/Parser/ConfigParserInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/ConfigParserInterface.php -------------------------------------------------------------------------------- /src/Config/Parser/JsonConfigParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/JsonConfigParser.php -------------------------------------------------------------------------------- /src/Config/Parser/NeonConfigParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/NeonConfigParser.php -------------------------------------------------------------------------------- /src/Config/Parser/PhpConfigParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/PhpConfigParser.php -------------------------------------------------------------------------------- /src/Config/Parser/YamlConfigParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Config/Parser/YamlConfigParser.php -------------------------------------------------------------------------------- /src/Database/Adapter/AdapterFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/AdapterFactory.php -------------------------------------------------------------------------------- /src/Database/Adapter/AdapterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/AdapterInterface.php -------------------------------------------------------------------------------- /src/Database/Adapter/Behavior/StructureBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/Behavior/StructureBehavior.php -------------------------------------------------------------------------------- /src/Database/Adapter/MysqlAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/MysqlAdapter.php -------------------------------------------------------------------------------- /src/Database/Adapter/PdoAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/PdoAdapter.php -------------------------------------------------------------------------------- /src/Database/Adapter/PgsqlAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Adapter/PgsqlAdapter.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/AutoIncrementBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/AutoIncrementBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/CharsetAndCollationBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/CharsetAndCollationBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/ColumnsToChangeBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/ColumnsToChangeBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/ColumnsToDropBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/ColumnsToDropBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/ColumnsToRenameBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/ColumnsToRenameBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/CommentBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/CommentBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/CopyTableBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/CopyTableBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/DropPrimaryKeyBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/DropPrimaryKeyBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/ForeignKeyBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/ForeignKeyBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/IndexBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/IndexBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/PrimaryColumnsBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/PrimaryColumnsBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Behavior/UniqueConstraintBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Behavior/UniqueConstraintBehavior.php -------------------------------------------------------------------------------- /src/Database/Element/Column.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Column.php -------------------------------------------------------------------------------- /src/Database/Element/ColumnSettings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/ColumnSettings.php -------------------------------------------------------------------------------- /src/Database/Element/ForeignKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/ForeignKey.php -------------------------------------------------------------------------------- /src/Database/Element/Index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Index.php -------------------------------------------------------------------------------- /src/Database/Element/IndexColumn.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/IndexColumn.php -------------------------------------------------------------------------------- /src/Database/Element/IndexColumnSettings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/IndexColumnSettings.php -------------------------------------------------------------------------------- /src/Database/Element/MigrationTable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/MigrationTable.php -------------------------------------------------------------------------------- /src/Database/Element/MigrationView.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/MigrationView.php -------------------------------------------------------------------------------- /src/Database/Element/Structure.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Structure.php -------------------------------------------------------------------------------- /src/Database/Element/Table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/Table.php -------------------------------------------------------------------------------- /src/Database/Element/UniqueConstraint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/Element/UniqueConstraint.php -------------------------------------------------------------------------------- /src/Database/QueryBuilder/CommonQueryBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/QueryBuilder/CommonQueryBuilder.php -------------------------------------------------------------------------------- /src/Database/QueryBuilder/MysqlQueryBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/QueryBuilder/MysqlQueryBuilder.php -------------------------------------------------------------------------------- /src/Database/QueryBuilder/PgsqlQueryBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/QueryBuilder/PgsqlQueryBuilder.php -------------------------------------------------------------------------------- /src/Database/QueryBuilder/QueryBuilderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Database/QueryBuilder/QueryBuilderInterface.php -------------------------------------------------------------------------------- /src/Dumper/Dumper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Dumper/Dumper.php -------------------------------------------------------------------------------- /src/Dumper/Indenter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Dumper/Indenter.php -------------------------------------------------------------------------------- /src/Exception/ConfigException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/ConfigException.php -------------------------------------------------------------------------------- /src/Exception/DatabaseQueryExecuteException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/DatabaseQueryExecuteException.php -------------------------------------------------------------------------------- /src/Exception/IncorrectMethodUsageException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/IncorrectMethodUsageException.php -------------------------------------------------------------------------------- /src/Exception/InvalidArgumentValueException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/InvalidArgumentValueException.php -------------------------------------------------------------------------------- /src/Exception/PhoenixException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/PhoenixException.php -------------------------------------------------------------------------------- /src/Exception/StructureException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/StructureException.php -------------------------------------------------------------------------------- /src/Exception/WrongCommandException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Exception/WrongCommandException.php -------------------------------------------------------------------------------- /src/Migration/AbstractMigration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/AbstractMigration.php -------------------------------------------------------------------------------- /src/Migration/ClassNameCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/ClassNameCreator.php -------------------------------------------------------------------------------- /src/Migration/FilesFinder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/FilesFinder.php -------------------------------------------------------------------------------- /src/Migration/Init/0_init.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/Init/0_init.php -------------------------------------------------------------------------------- /src/Migration/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/Manager.php -------------------------------------------------------------------------------- /src/Migration/MigrationCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/MigrationCreator.php -------------------------------------------------------------------------------- /src/Migration/MigrationNameCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Migration/MigrationNameCreator.php -------------------------------------------------------------------------------- /src/Templates/DefaultTemplate.phoenix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Templates/DefaultTemplate.phoenix -------------------------------------------------------------------------------- /src/Templates/TemplateManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/Templates/TemplateManager.php -------------------------------------------------------------------------------- /src/composer_autoloader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lulco/phoenix/HEAD/src/composer_autoloader.php --------------------------------------------------------------------------------