OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix asset foreign key (#229)
[bytom/vapor.git]
/
federation
/
database
/
orm
/
asset.go
diff --git
a/federation/database/orm/asset.go
b/federation/database/orm/asset.go
index
a2448ba
..
f1fbb05
100644
(file)
--- a/
federation/database/orm/asset.go
+++ b/
federation/database/orm/asset.go
@@
-5,7
+5,7
@@
import (
)
type Asset struct {
- ID uint64 `gorm:"primary_key" json:"-"`
+ ID uint64 `gorm:"primary_key
;foreignkey:ID
" json:"-"`
AssetID string `json:"asset_id"`
IssuanceProgram string `json:"-"`
VMVersion uint64 `json:"-"`