alter table

This commit is contained in:
Jan Prochazka
2021-09-12 17:33:51 +02:00
parent e7c64265ae
commit 624ada2873
10 changed files with 141 additions and 16 deletions

View File

@@ -28,7 +28,7 @@
</script>
<script lang="ts">
import { findEngineDriver, generateTablePairingId, getAlterTableScript } from 'dbgate-tools';
import { fillConstraintNames, findEngineDriver, generateTablePairingId, getAlterTableScript } from 'dbgate-tools';
import _ from 'lodash';
import registerCommand from '../commands/registerCommand';
@@ -102,7 +102,7 @@
function doSave(createTableName) {
const driver = findEngineDriver($connection, $extensions);
const sql = getAlterTableScript($editorValue.base, $editorValue.current, {}, $dbInfo, driver);
const sql = getAlterTableScript($editorValue.base, fillConstraintNames($editorValue.current), {}, $dbInfo, driver);
showModal(ConfirmSqlModal, {
sql,