Worked on database agnostic table creation for db migrations

This commit is contained in:
Torkel Ödegaard
2015-01-19 10:44:16 +01:00
parent 7d70ffe201
commit d8e5be5782
13 changed files with 473 additions and 230 deletions
+11 -13
View File
@@ -12,19 +12,17 @@ var (
// Directly mapped to db schema, Do not change field names lighly
type Account struct {
Id int64
Login string `xorm:"UNIQUE NOT NULL"`
Email string `xorm:"UNIQUE NOT NULL"`
Name string
FullName string
Password string
IsAdmin bool
Salt string `xorm:"VARCHAR(10)"`
Company string
NextDashboardId int
UsingAccountId int64
Created time.Time
Updated time.Time
Id int64
Login string `xorm:"UNIQUE NOT NULL"`
Email string `xorm:"UNIQUE NOT NULL"`
Name string
Password string
IsAdmin bool
Salt string `xorm:"VARCHAR(10)"`
Company string
UsingAccountId int64
Created time.Time
Updated time.Time
}
// ---------------------