Commit fe96cdc
authored
flow-php/postgresql-migrations (#2290)
* refactor: flow-php/postgresql - migrations core
chore: introduce parameters() dsl function to posgresql client
feature: introduce schema to flow-php/postgresql
- create schema definition
- read whole Catalog from a postgresql db
- added dependeny from flow-php/types
- created TypeMapper to quickly map rows into collections of structures
feature: catalog comparator
- including comparator for all db objects
refactor: move parsing data type string to dedicated parser
refactor: unify naming convetion with colum and value type
refactoring: optimizations and renames
- geneate diff sql's for migratiosn up/down
- unify naming of postgresql dsl
- cover unlogged tables
- added toSql() to Schema objects
feature: missing postgresql table options
feature: table rename detection
refactor: remove RawCondition and RawExpression
- unify DSL
- replace inline strings with proper query builders in tests
refactor: split postgresql dsl into smaller files
refactor: simplify diffs to return only one way migration sqls
refactor: make diffs to return query builders
feature: improve rename strategies
- introduce similarity names abstraction
- introduce rename strategy abstraction
feature: detect if the view requires an update
refactor: allow to pass strings instead of col() table() expressions
- update documentation
fix: introduce execution order strategy
chore: flow-php/postgresql-migrations skeleton
* feature: flow-php/symfony-postgresql-bundle
feature: migrations cli app interface
feature: basic building blocks for migrations
feature: migration store
feature: migrations repository
feature: migrations repository
feature: migrations generator
feature: migration executor
feature: setup migrations cli commands
feauter: symfony migration bundle
- move core abstractions to postgresql package
- move implementations to symfony bundle
feature: load catalog cofiguration from yaml
feature: wrap migrations in transations
refactor: catalog_providers configuration in postgresql bundles
- detach catalog from connection
- allow to chain providers
- allow to register by tag / attribute
refactor: simplify catalog congigratuin
feature: add support for telemetry in postgresql bundle
feature: documentation
* fix: ci/cd workflow configuration1 parent ab43f9e commit fe96cdc
File tree
680 files changed
+42527
-14064
lines changed- .github/workflows
- bin
- documentation
- components
- bridges
- libs/postgresql
- installation/packages
- phpdoc
- src
- adapter/etl-adapter-postgresql
- src/Flow/ETL/Adapter/PostgreSql
- QueryBuilder
- ValueConverter
- tests/Flow/ETL/Adapter/PostgreSql/Tests
- Integration
- Unit
- QueryBuilder
- ValueConverter
- bridge
- symfony
- http-foundation-telemetry
- http-foundation
- postgresql-bundle
- .github/workflows
- src/Flow/Bridge/Symfony/PostgreSqlBundle
- Attribute
- CatalogProvider
- Command
- DependencyInjection
- Compiler
- Generator
- Repository
- Resources
- config
- templates
- tests/Flow/Bridge/Symfony/PostgreSqlBundle/Tests
- Context
- Fixtures
- Fixture/migrations
- 20260401120000_create_users
- 20260402100000_seed_data
- 20260403090000_add_column
- Integration
- Command
- Unit
- CatalogProvider
- Command
- DependencyInjection
- Generator
- Repository
- telemetry-bundle
- telemetry/otlp
- cli
- core/etl
- src/Flow/ETL/Attribute
- tests/Flow/ETL/Tests/Integration/Function
- lib
- parquet-viewer
- parquet
- postgresql
- src/Flow/PostgreSql
- Client
- Exception
- Infrastructure/PgSql
- RowMapper
- Telemetry
- Types
- Converter
- DSL
- Migrations
- DSL
- Exception
- Executor
- Generator
- Repository
- Store
- VersionGenerator
- Parser
- QueryBuilder
- Condition
- Copy
- Cursor
- Delete
- Expression
- Factory
- Insert
- Merge
- Schema
- AlterSequence
- AlterTable
- Constraint
- CreateSequence
- CreateTableAs
- CreateTable
- Database
- Domain
- DropSequence
- DropTable
- Extension
- Function
- Grant
- Index
- AlterIndex
- CreateIndex
- DropIndex
- Reindex
- Ownership
- Role
- Rule
- Schema
- Session
- Trigger
- Truncate
- Type
- View
- AlterMaterializedView
- AlterView
- CreateMaterializedView
- CreateView
- DropMaterializedView
- DropView
- RefreshMaterializedView
- Select
- Transaction
- Update
- Utility
- Schema
- Constraint
- Diff
- Exception
- tests/Flow/PostgreSql
- Migrations/Tests
- Double
- Fixture/migrations
- 20260401120000_create_users
- 20260402100000_seed_data
- 20260403090000_add_column
- Integration
- Store
- Unit
- Exception
- Executor
- Generator
- Repository
- Store
- VersionGenerator
- Tests
- Integration
- Client
- Telemetry
- Types/Converter
- QueryBuilder
- Assertions
- Database
- Unit
- Client
- RowMapper
- Telemetry
- Types
- Converter
- DSL
- Parser
- QueryBuilder
- Condition
- Copy
- Delete
- Expression
- Insert
- Merge
- Schema
- AlterTable
- Constraint
- CreateSequence
- CreateTableAs
- CreateTable
- Database
- Domain
- Extension
- Function
- Index
- Role
- Rule
- Schema
- Trigger
- Type
- View
- Select
- Table
- Transaction
- Update
- Utility
- Schema
- Constraint
- Diff
- telemetry
- tools
- blackfire
- box
- cs-fixer
- infection
- monorepo
- phpdocumentor
- phpstan
- phpunit
- rector
- web/landing
- assets/codemirror/completions
- resources
- src/Flow/Website/Model/Documentation
- templates/documentation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
680 files changed
+42527
-14064
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
| 215 | + | |
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
| |||
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
| 247 | + | |
240 | 248 | | |
241 | 249 | | |
242 | 250 | | |
| |||
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
| 307 | + | |
299 | 308 | | |
300 | 309 | | |
301 | 310 | | |
| |||
311 | 320 | | |
312 | 321 | | |
313 | 322 | | |
| 323 | + | |
314 | 324 | | |
315 | 325 | | |
316 | 326 | | |
| |||
371 | 381 | | |
372 | 382 | | |
373 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
374 | 388 | | |
375 | 389 | | |
376 | 390 | | |
| |||
404 | 418 | | |
405 | 419 | | |
406 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
407 | 425 | | |
408 | 426 | | |
409 | 427 | | |
| |||
0 commit comments