rename TXID to SIGNID
This commit is contained in:
parent
d13a1e4292
commit
79e49306ef
@ -27,8 +27,8 @@ type typeInfo struct {
|
||||
|
||||
var table string = "t_uid" // id range table name
|
||||
var typeSupported = map[string]typeInfo{
|
||||
"TXID": typeInfo{
|
||||
Name: "TXID",
|
||||
"SIGNID": typeInfo{
|
||||
Name: "SIGNID",
|
||||
RangeLength: 3,
|
||||
},
|
||||
"USERID": typeInfo{
|
||||
@ -76,6 +76,7 @@ func CreateIdRange(db *gorm.DB, typ, prefix string) (start int64, length int, er
|
||||
}
|
||||
selfid = "TODO"
|
||||
)
|
||||
log.Infof("start CreateIdRange...")
|
||||
|
||||
// Step 2. get lastid && lock root(type+prefix)
|
||||
var tx = db.Begin()
|
||||
|
Loading…
Reference in New Issue
Block a user