rijkvanzanten
c4e1e40279
Fix @directus/schema not reading Oracle overview correctly
...
Fixes #4735
2021-04-09 19:28:00 -04:00
Stephen O'Connor
bb9b39187b
Remove semi-colon to avoid ORA-00933 ( #4726 )
2021-03-29 08:59:34 -04:00
rijkvanzanten
340aa2deef
Fix MySQL not correctly scoping columns to database
2021-03-16 11:26:57 -04:00
Adrian Dimitrov
51a0044d7f
In mysql, select only tables ( #4501 )
2021-03-12 18:12:18 -05:00
Martijn Boland
9897e3d39e
Added 'AUTO_INCREMENT' for mssql identity columns ( #4494 )
...
* Added 'AUTO_INCREMENT' for mssql identity columns
* Removed obsolete method
Co-authored-by: Martijn Boland <martijn@taiga.nl >
2021-03-11 18:09:06 -05:00
Rijk van Zanten
971a18c219
Database Error Abstraction ( #4465 )
...
* Start on database-error abstraction layer
* Add SQLite error abstraction
* Enable SQLite foreign key support
* Cleanup sqlite dialect slightly
Does it matter? Not really!
* Add MySQL error abstraction
* WIP Almost done with MSSQL
* Add correct error handling for MS SQL
* Fix mysql errors by not relying on value order
* Don't rely on sql in postgres exception translation
* Fix sqlite error parsing
* Remove foreign key constraint from activity to collections
A collection can be DB-only, but we still want to track activity for non-meta collections
* Translate error on update as well
2021-03-10 17:16:15 -05:00
Rijk van Zanten
97dcdad847
OracleDB baby steps ( #4464 )
...
* Allow external connections in oracle debug
* Fix oracle overview query
* Use correct alive check for oracle
* Remove unused import
* Validate correct env vars for oracle
2021-03-10 16:58:49 -05:00
Rijk van Zanten
291643e0b4
Fix installing on MS SQL ( #4455 )
...
Fixes #3158 , fixes #3608
2021-03-09 18:43:03 -05:00
Rijk van Zanten
1db99e0828
Cleanup schema inspector ( #4404 )
...
* Rely on knex-schema-inspector
* Update packages
2021-03-05 17:06:07 -05:00
Nicola Krumschmidt
08293b8570
Update Knex to version 0.95.0 ( #4374 )
...
* Update Knex to version 0.95.0
* Fix formatting in schema dialects
* Fix Knex imports
* Update package-lock
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-03 19:37:44 -05:00
rijkvanzanten
eb4deaa955
Default field sort order to database ordinal sort
...
And use alphabetical where appropriate
Fixes #4341
2021-03-03 18:36:21 -05:00
Kim Streich
c30078369a
Fix MS SQL init failure due to uquoted DB name
2021-01-23 20:13:43 +04:00
rijkvanzanten
ea3fb22322
Wrap db name
...
Fixes #3607
2021-01-13 16:07:05 -05:00
rijkvanzanten
7032eb4797
Check for both column key and constraint name
...
Fixes #3322
2021-01-12 17:59:16 -05:00
Rijk van Zanten
fd99c2d3ef
Merge pull request #3250 from nickrum/postgres-nullable-fix
...
Fix nullable property of Postgres schema overview
2020-11-30 18:32:36 -05:00
Nicola Krumschmidt
41ea26b143
Fix nullable property of Postgres schema overview
2020-12-01 00:18:57 +01:00
Nicola Krumschmidt
4428aebe92
Fix default value of SQLite schema overview
...
Fixes #3186
2020-12-01 00:06:05 +01:00
Samuli Asmala
ba4605752b
Only select columns from BASE TABLEs to exclude views
...
Postgres views cannot have primary keys so presence of any views prevented the use of application. Fixes #3229 .
2020-11-30 11:57:37 +02:00
rijkvanzanten
a9ffc40979
Fix schema not handling uppercases in PG
...
Fixes #3213
2020-11-27 19:31:25 -05:00
rijkvanzanten
0c0f0e443c
Use PG current_database() instead of connection param
2020-11-10 17:53:41 -05:00
rijkvanzanten
f01e59707b
Fix auto-increment in schema overview
2020-11-10 13:59:43 -05:00
rijkvanzanten
4d09f4a07e
Add oracle/mssql
2020-11-09 18:50:08 -05:00
rijkvanzanten
64d34933d1
Add overview method for SQLite3
2020-11-09 18:37:00 -05:00
rijkvanzanten
56979b3ae3
Add overview support to mysql
2020-11-09 18:20:37 -05:00
rijkvanzanten
2b602c15e3
Small fixes
2020-11-09 17:20:42 -05:00
rijkvanzanten
8cbdfb409b
Use prefetched schema info
2020-11-09 17:13:48 -05:00
rijkvanzanten
0697f4b4be
Add new overview method, attach it every request
2020-11-09 15:19:23 -05:00
rijkvanzanten
528112314d
Remove outdated tests, fix imports
2020-11-09 12:29:01 -05:00
rijkvanzanten
427bd8564e
Include schema package
2020-11-09 11:21:43 -05:00