mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
сделал FillRowsCount()
This commit is contained in:
parent
ebcf86bce2
commit
668e79d2ef
@ -208,12 +208,12 @@ func IsGoodTable(Table1 *types.Table) error {
|
|||||||
TableName := Table1.Name
|
TableName := Table1.Name
|
||||||
ColumnName, _ := FindPrimaryKeyNameTypeGo(Table1)
|
ColumnName, _ := FindPrimaryKeyNameTypeGo(Table1)
|
||||||
if ColumnName == "" {
|
if ColumnName == "" {
|
||||||
TextError := fmt.Sprint("Wrong table ", Table1.Name, " error: not found Primary key")
|
TextError := fmt.Sprint("Wrong table: ", Table1.Name, " error: not found Primary key")
|
||||||
err = errors.New(TextError)
|
err = errors.New(TextError)
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(TableName, "DELETED_") == true {
|
if strings.HasPrefix(TableName, "DELETED_") == true {
|
||||||
TextError := fmt.Sprint("Wrong table ", Table1.Name, " error: name = DELETED_")
|
TextError := fmt.Sprint("Wrong table: ", Table1.Name, " error: name = DELETED_")
|
||||||
err = errors.New(TextError)
|
err = errors.New(TextError)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user