├── .github └── workflows │ ├── ci.yaml │ ├── cross-merge.yaml │ ├── pr-assign.yaml │ ├── pr-assign.yml │ ├── pr-check.yaml │ └── release.yaml ├── .gitignore ├── .php_cs ├── COPYRIGHT ├── LICENSE ├── LICENSE-bul ├── README.md ├── composer.json ├── phpunit.xml ├── src ├── .gitkeep ├── bundle │ ├── DependencyInjection │ │ ├── Configuration.php │ │ └── DoctrineSchemaExtension.php │ ├── DoctrineSchemaBundle.php │ └── Resources │ │ └── config │ │ ├── api.yaml │ │ └── services.yaml └── lib │ ├── API │ ├── Builder │ │ └── SchemaBuilder.php │ ├── DbPlatformFactory.php │ ├── Event │ │ ├── SchemaBuilderEvent.php │ │ └── SchemaBuilderEvents.php │ ├── Exception │ │ └── InvalidConfigurationException.php │ ├── SchemaExporter.php │ └── SchemaImporter.php │ ├── Builder │ └── SchemaBuilder.php │ ├── Database │ ├── DbPlatform │ │ ├── DbPlatform.php │ │ ├── PostgreSqlDbPlatform.php │ │ └── SqliteDbPlatform.php │ └── DbPlatformFactory.php │ ├── Exporter │ ├── SchemaExporter.php │ └── Table │ │ └── SchemaTableExporter.php │ └── Importer │ └── SchemaImporter.php └── tests ├── .gitkeep └── lib ├── Builder └── SchemaBuilderTest.php ├── Database ├── Builder │ ├── MySqlTestDatabaseBuilder.php │ ├── SqliteTestDatabaseBuilder.php │ └── TestDatabaseBuilder.php ├── DbPlatform │ └── SqliteDbPlatformTest.php ├── TestDatabaseConfigurationException.php └── TestDatabaseFactory.php ├── Exporter ├── SchemaExporterTest.php └── _fixtures │ ├── input │ ├── mysql │ │ ├── composite_pk.sql │ │ ├── foreign_key.sql │ │ ├── simple_pk.sql │ │ └── varchar_length.sql │ └── sqlite │ │ ├── composite_pk.sql │ │ ├── foreign_key.sql │ │ ├── simple_pk.sql │ │ └── varchar_length.sql │ └── output │ ├── composite_pk.yaml │ ├── foreign_key.yaml │ ├── simple_pk.yaml │ └── varchar_length.yaml └── Importer ├── SchemaImporterTest.php └── _fixtures ├── 00-simple_pk.yaml ├── 01-composite_pk.yaml ├── 02-composite_pk_with_ai.yaml ├── 03-foreign_key.yaml ├── 04-nullable_field.yaml ├── 05-varchar_length.yaml ├── 06-index.yaml └── 07-numeric-options.yaml /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/cross-merge.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/cross-merge.yaml -------------------------------------------------------------------------------- /.github/workflows/pr-assign.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/pr-assign.yaml -------------------------------------------------------------------------------- /.github/workflows/pr-assign.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/pr-assign.yml -------------------------------------------------------------------------------- /.github/workflows/pr-check.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/pr-check.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /.php_cs.cache 3 | /composer.lock 4 | -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/.php_cs -------------------------------------------------------------------------------- /COPYRIGHT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/COPYRIGHT -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE-bul: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/LICENSE-bul -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bundle/DependencyInjection/Configuration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/bundle/DependencyInjection/Configuration.php -------------------------------------------------------------------------------- /src/bundle/DependencyInjection/DoctrineSchemaExtension.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/bundle/DependencyInjection/DoctrineSchemaExtension.php -------------------------------------------------------------------------------- /src/bundle/DoctrineSchemaBundle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/bundle/DoctrineSchemaBundle.php -------------------------------------------------------------------------------- /src/bundle/Resources/config/api.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/bundle/Resources/config/api.yaml -------------------------------------------------------------------------------- /src/bundle/Resources/config/services.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/bundle/Resources/config/services.yaml -------------------------------------------------------------------------------- /src/lib/API/Builder/SchemaBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/Builder/SchemaBuilder.php -------------------------------------------------------------------------------- /src/lib/API/DbPlatformFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/DbPlatformFactory.php -------------------------------------------------------------------------------- /src/lib/API/Event/SchemaBuilderEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/Event/SchemaBuilderEvent.php -------------------------------------------------------------------------------- /src/lib/API/Event/SchemaBuilderEvents.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/Event/SchemaBuilderEvents.php -------------------------------------------------------------------------------- /src/lib/API/Exception/InvalidConfigurationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/Exception/InvalidConfigurationException.php -------------------------------------------------------------------------------- /src/lib/API/SchemaExporter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/SchemaExporter.php -------------------------------------------------------------------------------- /src/lib/API/SchemaImporter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/API/SchemaImporter.php -------------------------------------------------------------------------------- /src/lib/Builder/SchemaBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Builder/SchemaBuilder.php -------------------------------------------------------------------------------- /src/lib/Database/DbPlatform/DbPlatform.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Database/DbPlatform/DbPlatform.php -------------------------------------------------------------------------------- /src/lib/Database/DbPlatform/PostgreSqlDbPlatform.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Database/DbPlatform/PostgreSqlDbPlatform.php -------------------------------------------------------------------------------- /src/lib/Database/DbPlatform/SqliteDbPlatform.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Database/DbPlatform/SqliteDbPlatform.php -------------------------------------------------------------------------------- /src/lib/Database/DbPlatformFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Database/DbPlatformFactory.php -------------------------------------------------------------------------------- /src/lib/Exporter/SchemaExporter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Exporter/SchemaExporter.php -------------------------------------------------------------------------------- /src/lib/Exporter/Table/SchemaTableExporter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Exporter/Table/SchemaTableExporter.php -------------------------------------------------------------------------------- /src/lib/Importer/SchemaImporter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/src/lib/Importer/SchemaImporter.php -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/lib/Builder/SchemaBuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Builder/SchemaBuilderTest.php -------------------------------------------------------------------------------- /tests/lib/Database/Builder/MySqlTestDatabaseBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/Builder/MySqlTestDatabaseBuilder.php -------------------------------------------------------------------------------- /tests/lib/Database/Builder/SqliteTestDatabaseBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/Builder/SqliteTestDatabaseBuilder.php -------------------------------------------------------------------------------- /tests/lib/Database/Builder/TestDatabaseBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/Builder/TestDatabaseBuilder.php -------------------------------------------------------------------------------- /tests/lib/Database/DbPlatform/SqliteDbPlatformTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/DbPlatform/SqliteDbPlatformTest.php -------------------------------------------------------------------------------- /tests/lib/Database/TestDatabaseConfigurationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/TestDatabaseConfigurationException.php -------------------------------------------------------------------------------- /tests/lib/Database/TestDatabaseFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Database/TestDatabaseFactory.php -------------------------------------------------------------------------------- /tests/lib/Exporter/SchemaExporterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/SchemaExporterTest.php -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/mysql/composite_pk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/mysql/composite_pk.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/mysql/foreign_key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/mysql/foreign_key.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/mysql/simple_pk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/mysql/simple_pk.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/mysql/varchar_length.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE my_table ( 2 | name VARCHAR(64) DEFAULT NULL 3 | ); 4 | -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/sqlite/composite_pk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/sqlite/composite_pk.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/sqlite/foreign_key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/sqlite/foreign_key.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/sqlite/simple_pk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/input/sqlite/simple_pk.sql -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/input/sqlite/varchar_length.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE my_table ( 2 | name VARCHAR(64) DEFAULT NULL 3 | ); 4 | -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/output/composite_pk.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/output/composite_pk.yaml -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/output/foreign_key.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/output/foreign_key.yaml -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/output/simple_pk.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/output/simple_pk.yaml -------------------------------------------------------------------------------- /tests/lib/Exporter/_fixtures/output/varchar_length.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Exporter/_fixtures/output/varchar_length.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/SchemaImporterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/SchemaImporterTest.php -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/00-simple_pk.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/00-simple_pk.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/01-composite_pk.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/01-composite_pk.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/02-composite_pk_with_ai.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/02-composite_pk_with_ai.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/03-foreign_key.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/03-foreign_key.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/04-nullable_field.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/04-nullable_field.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/05-varchar_length.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/05-varchar_length.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/06-index.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/06-index.yaml -------------------------------------------------------------------------------- /tests/lib/Importer/_fixtures/07-numeric-options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezsystems/doctrine-dbal-schema/HEAD/tests/lib/Importer/_fixtures/07-numeric-options.yaml --------------------------------------------------------------------------------