mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
drop database #384
This commit is contained in:
@@ -16,6 +16,16 @@ class MsSqlDumper extends SqlDumper {
|
||||
}
|
||||
}
|
||||
|
||||
dropDatabase(name) {
|
||||
this.putCmd(
|
||||
`USE master;
|
||||
ALTER DATABASE %i SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
|
||||
DROP DATABASE %i`,
|
||||
name,
|
||||
name
|
||||
);
|
||||
}
|
||||
|
||||
autoIncrement() {
|
||||
this.put(' ^identity');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user