mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
ability to create string mongo IDs when importing
This commit is contained in:
@@ -44,6 +44,16 @@ const driver = {
|
||||
return ['server', 'port', 'user', 'password', 'defaultDatabase', 'singleDatabase'].includes(field);
|
||||
},
|
||||
|
||||
importExportArgs: [
|
||||
{
|
||||
type: 'checkbox',
|
||||
name: 'createStringId',
|
||||
label: 'Create string _id attribute',
|
||||
apiName: 'createStringId',
|
||||
direction: 'target',
|
||||
},
|
||||
],
|
||||
|
||||
getCollectionUpdateScript(changeSet) {
|
||||
let res = '';
|
||||
for (const insert of changeSet.inserts) {
|
||||
|
||||
Reference in New Issue
Block a user