rename sql object oracle

This commit is contained in:
Jan Prochazka
2024-12-11 15:33:21 +01:00
parent 6035319035
commit face7ecdb5
3 changed files with 23 additions and 9 deletions

View File

@@ -126,6 +126,10 @@ class Dumper extends SqlDumper {
this.putCmd('^alter ^table %f ^rename ^to %i', obj, newname);
}
renameSqlObject(obj, newname) {
this.putCmd('^rename %f ^to %i', obj, newname);
}
// putValue(value) {
// if (value === true) this.putRaw('true');
// else if (value === false) this.putRaw('false');

View File

@@ -37,6 +37,7 @@ const dialect = {
dropUnique: true,
createCheck: true,
dropCheck: true,
renameSqlObject: true,
dropReferencesWhenDropTable: true,
requireFromDual: true,