mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 15:33:57 +00:00
try to fix virtual FK problem
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
version: "3"
|
||||
services:
|
||||
dbgate:
|
||||
build: docker
|
||||
# image: dbgate/dbgate:beta-alpine
|
||||
# build: docker
|
||||
image: dbgate/dbgate:beta-alpine
|
||||
restart: always
|
||||
ports:
|
||||
- 3100:3000
|
||||
@@ -14,8 +14,8 @@ services:
|
||||
volumes:
|
||||
- dbgate-data:/root/dbgate-data
|
||||
|
||||
# environment:
|
||||
# WEB_ROOT: /dbgate
|
||||
environment:
|
||||
WEB_ROOT: /dbgate
|
||||
|
||||
# volumes:
|
||||
# - /home/jena/test/chinook:/mnt/sqt
|
||||
|
||||
@@ -29,7 +29,12 @@
|
||||
let refTableName = null;
|
||||
let refSchemaName = null;
|
||||
|
||||
$: refTableInfo = $dbInfo?.tables?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
||||
$: tableList = [
|
||||
..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']),
|
||||
// ..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']),
|
||||
];
|
||||
|
||||
$: refTableInfo = tableList.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
||||
// $dbInfo?.views?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
||||
|
||||
onMount(() => {
|
||||
@@ -43,6 +48,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
// $: console.log('conid, database', conid, database);
|
||||
// $: console.log('$dbInfo?.tables', $dbInfo?.tables);
|
||||
</script>
|
||||
|
||||
@@ -58,10 +64,7 @@
|
||||
value={fullNameToString({ pureName: refTableName, schemaName: refSchemaName })}
|
||||
isNative
|
||||
notSelected
|
||||
options={[
|
||||
..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']),
|
||||
// ..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']),
|
||||
].map(tbl => ({
|
||||
options={tableList.map(tbl => ({
|
||||
label: fullNameToLabel(tbl),
|
||||
value: fullNameToString(tbl),
|
||||
}))}
|
||||
|
||||
Reference in New Issue
Block a user