mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
clickhouse: added specifcNotNull dialect option
This commit is contained in:
@@ -4,9 +4,10 @@ const sql = require('./sql');
|
||||
function extractDataType(dataType) {
|
||||
if (!dataType) return {};
|
||||
if (dataType.startsWith('Nullable(')) {
|
||||
dataType = dataType.substring('Nullable('.length, dataType.length - 1);
|
||||
const displayedDataType = dataType.substring('Nullable('.length, dataType.length - 1);
|
||||
return {
|
||||
dataType,
|
||||
displayedDataType,
|
||||
notNull: false,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ const dialect = {
|
||||
dropIndex: true,
|
||||
anonymousPrimaryKey: true,
|
||||
createColumnWithColumnKeyword: true,
|
||||
specificNotNull: true,
|
||||
|
||||
columnProperties: {
|
||||
columnComment: true,
|
||||
|
||||
Reference in New Issue
Block a user