Update to pg v9
This commit is contained in:
parent
91beca9a55
commit
defaa2ae0b
9 changed files with 75 additions and 44 deletions
|
@ -7,8 +7,8 @@ import (
|
|||
|
||||
// New entry in the news table
|
||||
type New struct {
|
||||
ID int `sql:"type:serial"`
|
||||
Date time.Time `sql:"type:timestamp"`
|
||||
ID int `pg:"type:serial"`
|
||||
Date time.Time `pg:"type:timestamp"`
|
||||
Text string
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue