mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
new collection refactor
This commit is contained in:
@@ -93,17 +93,7 @@
|
||||
const handleNewCollection = () => {
|
||||
showModal(NewCollectionModal, {
|
||||
driver,
|
||||
onConfirm: async values => {
|
||||
runOperationOnDatabase(
|
||||
{ conid: connection._id, database: name },
|
||||
{
|
||||
type: 'createCollection',
|
||||
collection: values,
|
||||
}
|
||||
);
|
||||
|
||||
// saveScriptToDatabase({ conid: connection._id, database: name }, `db.createCollection('${newCollection}')`);
|
||||
},
|
||||
dbid: { conid: connection._id, database: name },
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user