You've already forked crud_generator
mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-07-01 01:54:54 +02:00
сделал PrimaryKeyColumnsCount
This commit is contained in:
@ -278,6 +278,7 @@ order by
|
||||
OrderNumberTable++
|
||||
}
|
||||
|
||||
//новая таблица
|
||||
//найдём имя модели golang
|
||||
TableName := v.TableName
|
||||
ModelName := create_files.FindSingularName(TableName)
|
||||
@ -287,6 +288,7 @@ order by
|
||||
TableComment := v.TableComment
|
||||
TableComment = strings.ReplaceAll(TableComment, "\n", "")
|
||||
TableComment = strings.ReplaceAll(TableComment, "\r", "")
|
||||
|
||||
Table1 = CreateTable()
|
||||
Table1.Name = TableName
|
||||
Table1.OrderNumber = OrderNumberTable
|
||||
@ -333,9 +335,10 @@ order by
|
||||
TableName0 = v.TableName
|
||||
}
|
||||
|
||||
//
|
||||
//последнюю таблицу заполним тут
|
||||
if Table1.Name != "" {
|
||||
Table1.MapColumns = MapColumns
|
||||
Table1.PrimaryKeyColumnsCount = PrimaryKeyColumnsCount
|
||||
MapTable[TableName0] = Table1
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user