...
|
...
|
@@ -6,8 +6,9 @@ func DomainFieldsToColumnSchemas(fields []*domain.Field) []domain.ColumnSchema { |
|
|
result := make([]domain.ColumnSchema, 0)
|
|
|
for _, f := range fields {
|
|
|
res := domain.ColumnSchema{
|
|
|
ColumnName: f.Name,
|
|
|
ColumnType: f.SQLType,
|
|
|
ColumnName: f.Name,
|
|
|
ColumnType: f.SQLType,
|
|
|
ColumnSqlFriendlyName: f.SQLName,
|
|
|
}
|
|
|
if convertFiledSQLType(f.SQLType) {
|
|
|
res.ColumnType = domain.DECIMAL279.ToString()
|
...
|
...
|
@@ -75,8 +76,9 @@ func FieldsToColumnSchemas(fields []*domain.Field) []domain.ColumnSchema { |
|
|
|
|
|
for _, f := range fields {
|
|
|
result = append(result, domain.ColumnSchema{
|
|
|
ColumnName: f.Name,
|
|
|
ColumnType: f.SQLType,
|
|
|
ColumnName: f.Name,
|
|
|
ColumnType: f.SQLType,
|
|
|
ColumnSqlFriendlyName: f.SQLName,
|
|
|
})
|
|
|
}
|
|
|
return result
|
...
|
...
|
|