mirror of
https://github.com/simonw/datasette.git
synced 2026-09-29 21:34:07 +02:00
Expose foreign key targets to create table UI
- Add foreignKeyTargetsPath to create table page data - Filter hidden tables from database-level foreign key target results - Update JSON API docs and tests for filtered targets
This commit is contained in:
parent
a6ef65f90d
commit
21c156dfb1
4 changed files with 21 additions and 2 deletions
|
|
@ -994,6 +994,7 @@ async def test_database_create_table_action_button_and_data():
|
|||
assert database_data_from_soup(soup) == {
|
||||
"createTable": {
|
||||
"path": "/data/-/create",
|
||||
"foreignKeyTargetsPath": "/data/-/foreign-key-targets",
|
||||
"databaseName": "data",
|
||||
"columnTypes": ["text", "integer", "float", "blob"],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue