Azri Kahar
|
e255bf80e4
|
Fix schema apply when deleting interrelated collections (#15072)
* Fix apply when deleting interrelated collections
* test
* fix unit test
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
|
2022-08-16 11:30:42 -04:00 |
|
Ian Pirro
|
23912e5232
|
Fix: Error applying schemas with nested collection(s) (#13949)
* Fix nested collection creation when parent exists
* tests
* desc | comments
* typo
* minor tweak
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
|
2022-07-21 15:29:12 +08:00 |
|
Azri Kahar
|
f9826afd87
|
Fix apply snapshot for UUID primary keys (#14506)
* fix apply snapshot for char to uuid primary keys
* account for is_primary_key
|
2022-07-19 11:24:34 -04:00 |
|
Rijk van Zanten
|
c3e0cf99b8
|
Flush caches after applying schema snapshot (#13762)
|
2022-06-06 17:26:52 -04:00 |
|
Peera Jeawkok
|
e47502e11f
|
Fix Invalid foreign key when applying schema snapshot (#12198)
* add logic to create parent collection before apply
* recursively create collection
* Recursively delete collection
* cleanup
* fix import
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* fix deconstruction of collections
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* fix deconstruction of collections
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* Fix destructing
* Move type declaration to the top
As requested during code review https://github.com/directus/directus/pull/12198#discussion_r857330627
* remove unnecessary empty array check.
* remove redundant map functions
* replace lodash functions in favor of built-in ones
* tweaks
* organize imports
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Stephan Schmitz <eyecatchup@gmail.com>
|
2022-05-09 16:49:20 -04:00 |
|
Azri Kahar
|
953eb99eb3
|
Fix schema apply for changes in field meta options & display_options (#12712)
* Fix schema apply for changes in field meta options
* take display_options into account
* check changes in meta in general
|
2022-04-15 13:27:47 -04:00 |
|
Azri Kahar
|
513cb7b824
|
Fix schema apply of UUIDs from SQLite onto other databases (#12723)
* Fix schema apply for UUIDs from SQLite
* simplify the merge a little bit
|
2022-04-13 15:32:02 -04:00 |
|
John Huffsmith
|
e7ada1f173
|
Moving schema and relation types into shared package (#11179)
* moving schema and relation types into shared package
* updating SchemaOverview imports
* removing duplicate import
|
2022-01-20 13:36:19 -05:00 |
|
rijkvanzanten
|
42476c45c8
|
Add logging to cli snapshot apply
|
2021-12-15 10:08:47 -05:00 |
|
Rijk van Zanten
|
198e585054
|
Fix handling of nested arrays in snapshot diffing (#10246)
* Fix handling of nested arrays in snapshot diffing
Fixes #10167
* Remove unused import
|
2021-12-02 17:53:17 -05:00 |
|
Nitwel
|
c962144cef
|
Fix relation not having collection and field values (#9652)
|
2021-11-09 09:55:45 -05:00 |
|
Rijk van Zanten
|
ce104b6a9c
|
Add native schema migration capabilities (#7939)
* Add snapshot creation command
* Read and start diffing snapshot
* Add apply snapshot functionality
* Fix cli invocation
* Add log messages
* Fix duplicated if check
* Add (minimal) docs on schema migrations
* Fix missing import
* Update api/src/utils/apply-snapshot.ts
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
* Appease to Nicola's programming professor
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
|
2021-09-13 17:15:04 -04:00 |
|