SYNC: some fixes

This commit is contained in:
SPRINX0\prochazka
2025-02-24 15:18:35 +01:00
committed by Diflow
parent afcb226111
commit 963994b1e5
7 changed files with 31 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ const dialect = {
userDatabaseNamePrefix: 'C##',
upperCaseAllDbObjectNames: true,
requireStandaloneSelectForScopeIdentity: true,
defaultValueBeforeNullability: true,
createColumn: true,
dropColumn: true,
@@ -177,6 +178,12 @@ END trigger_name;
}
return dialect;
},
adaptDataType(dataType) {
if (dataType?.toLowerCase() == 'datetime') return 'timestamp';
if (dataType?.toLowerCase() == 'text') return 'clob';
return dataType;
},
};
module.exports = oracleDriver;