Added two columns to user table, email_verified and theme, no used right now but will probably shortly
This commit is contained in:
@@ -47,6 +47,15 @@ func addUserMigrations(mg *Migrator) {
|
||||
&Column{Name: "updated", Type: DB_DateTime, Nullable: false},
|
||||
))
|
||||
|
||||
mg.AddMigration("Add email_verified flag", new(AddColumnMigration).
|
||||
Table("user").Column(&Column{Name: "email_verified", Type: DB_Bool, Nullable: true}))
|
||||
|
||||
mg.AddMigration("Add email_verified flag", new(AddColumnMigration).
|
||||
Table("user").Column(&Column{Name: "email_verified", Type: DB_Bool, Nullable: true}))
|
||||
|
||||
mg.AddMigration("Add user.theme column", new(AddColumnMigration).
|
||||
Table("user").Column(&Column{Name: "theme", Type: DB_Varchar, Nullable: true, Length: 20}))
|
||||
|
||||
//------- user table indexes ------------------
|
||||
mg.AddMigration("add unique index user.login", new(AddIndexMigration).
|
||||
Table("user").Columns("login").Unique())
|
||||
|
||||
Reference in New Issue
Block a user