mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-03-11 14:59:21 +02:00
сделал UUID
This commit is contained in:
parent
9d3342a40b
commit
f88ba223de
@ -341,7 +341,7 @@ func FillIDMinimum(MapTable map[string]*types.Table) {
|
|||||||
DefaultValueSQL := create_files.FindTextDefaultValueSQL(TypeGo)
|
DefaultValueSQL := create_files.FindTextDefaultValueSQL(TypeGo)
|
||||||
TextSQL = `SELECT Min("` + NameID + `") as id_minimum FROM "` + Schema + `"."` + TableName + `" WHERE " + NameID + " <> ` + DefaultValueSQL
|
TextSQL = `SELECT Min("` + NameID + `") as id_minimum FROM "` + Schema + `"."` + TableName + `" WHERE " + NameID + " <> ` + DefaultValueSQL
|
||||||
} else {
|
} else {
|
||||||
TextSQL = `SELECT "` + NameID + `" as id_minimum FROM "` + Schema + `"."` + TableName + `" WHERE " + NameID + " is not null LIMIT 1`
|
TextSQL = `SELECT "` + NameID + `" as id_minimum FROM "` + Schema + `"."` + TableName + `" WHERE " + NameID + " is not null ORDER BY ` + NameID + `LIMIT 1`
|
||||||
}
|
}
|
||||||
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*60)
|
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*60)
|
||||||
defer ctxCancelFunc()
|
defer ctxCancelFunc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user