mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
duplicator fixes
This commit is contained in:
parent
6b783027e5
commit
7802cde14d
@ -255,7 +255,7 @@ export class DataDuplicator {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error({ err }, 'Failed duplicator job, rollbacking');
|
logger.error({ err }, 'Failed duplicator job, rollbacking');
|
||||||
await runCommandOnDriver(this.pool, this.driver, dmp => dmp.rollbackTransaction());
|
await runCommandOnDriver(this.pool, this.driver, dmp => dmp.rollbackTransaction());
|
||||||
throw err;
|
return;
|
||||||
}
|
}
|
||||||
if (this.options.rollbackAfterFinish) {
|
if (this.options.rollbackAfterFinish) {
|
||||||
logger.info('Rollbacking transaction, nothing was changed');
|
logger.info('Rollbacking transaction, nothing was changed');
|
||||||
|
@ -158,6 +158,7 @@
|
|||||||
|
|
||||||
const handleRunnerDone = () => {
|
const handleRunnerDone = () => {
|
||||||
busy = false;
|
busy = false;
|
||||||
|
timerLabel.stop();
|
||||||
};
|
};
|
||||||
|
|
||||||
export function canKill() {
|
export function canKill() {
|
||||||
|
@ -35,6 +35,7 @@ const dialect = {
|
|||||||
dropCheck: true,
|
dropCheck: true,
|
||||||
|
|
||||||
dropReferencesWhenDropTable: true,
|
dropReferencesWhenDropTable: true,
|
||||||
|
requireStandaloneSelectForScopeIdentity: true,
|
||||||
|
|
||||||
predefinedDataTypes: [
|
predefinedDataTypes: [
|
||||||
'bigint',
|
'bigint',
|
||||||
|
Loading…
Reference in New Issue
Block a user