mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: multi-sql
This commit is contained in:
committed by
Diflow
parent
8bdd24aa1e
commit
bdd9dc8c9d
@@ -192,13 +192,15 @@ const driver = {
|
||||
},
|
||||
|
||||
adaptTableInfo(table) {
|
||||
if (!table.primaryKey && !table.sortingKey) {
|
||||
const baseAdapted = driverBase.adaptTableInfo(table);
|
||||
|
||||
if (!baseAdapted.primaryKey && !baseAdapted.sortingKey) {
|
||||
return {
|
||||
...table,
|
||||
...baseAdapted,
|
||||
tableEngine: 'Log',
|
||||
};
|
||||
}
|
||||
return table;
|
||||
return baseAdapted;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user