Added two columns to user table, email_verified and theme, no used right now but will probably shortly

This commit is contained in:
Torkel Ödegaard
2015-02-12 10:32:22 +01:00
parent 0d0d802526
commit 0140a00884
2 changed files with 20 additions and 9 deletions
+9
View File
@@ -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())