Making youtubeIDs unique so episodes cannot be added twice
This commit is contained in:
parent
d003c78e75
commit
928704d78b
|
@ -60,7 +60,7 @@ type LetsTest struct {
|
|||
PosterB sql.NullString
|
||||
ThumbS sql.NullString
|
||||
ThumbB sql.NullString
|
||||
Youtube sql.NullString `sql:"not null"`
|
||||
Youtube sql.NullString `sql:"not null;unique"`
|
||||
Descr sql.NullString `sql:"type:TEXT"`
|
||||
Aired time.Time `sql:"not null"`
|
||||
Rating sql.NullFloat64
|
||||
|
@ -82,7 +82,7 @@ type Episode struct {
|
|||
Episode sql.NullInt64 `sql:"not null"`
|
||||
ThumbS sql.NullString
|
||||
ThumbB sql.NullString
|
||||
Youtube sql.NullString `sql:"not null"`
|
||||
Youtube sql.NullString `sql:"not null;unique"`
|
||||
Descr sql.NullString `sql:"type:TEXT"`
|
||||
Aired time.Time `sql:"not null"`
|
||||
Rating sql.NullFloat64
|
||||
|
|
Loading…
Reference in a new issue