Julian Pömp cdabaa3028
fix: synchronize with typeorm_metadata table only if needed (#9175)
* fix: create typeorm metadata table before migration, if not exists

Creating a view in a migration results in an error: `QueryFailedError:
relation "typeorm_metadata" does not exist` (see #9173). This fix
creates the table before a migration runs.

Closes: #9173

* refactor: use function from RdbmsSchemaBuilder to create typeorm_metadata table

* test: add test for fix issue #9173

* test: replace describe.only() with describe()

* refactor: apply suggestions from review

* refactor: add syncWithMetadata param to createView function

* style: run npm format

* removed only test

* test: add missing syncWithMetaData parameter in create-view.ts

Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
2022-09-20 17:27:42 +05:00
..
2022-03-17 21:01:45 +05:00
2022-08-24 20:01:37 +05:00
2022-03-17 21:01:45 +05:00