|
|
|
@ -9,10 +9,10 @@ func addTempUserMigrations(mg *Migrator) { |
|
|
|
|
{Name: "id", Type: DB_BigInt, IsPrimaryKey: true, IsAutoIncrement: true}, |
|
|
|
|
{Name: "org_id", Type: DB_BigInt, Nullable: false}, |
|
|
|
|
{Name: "version", Type: DB_Int, Nullable: false}, |
|
|
|
|
{Name: "email", Type: DB_NVarchar, Length: 255}, |
|
|
|
|
{Name: "email", Type: DB_NVarchar, Length: 190}, |
|
|
|
|
{Name: "name", Type: DB_NVarchar, Length: 255, Nullable: true}, |
|
|
|
|
{Name: "role", Type: DB_NVarchar, Length: 20, Nullable: true}, |
|
|
|
|
{Name: "code", Type: DB_NVarchar, Length: 255}, |
|
|
|
|
{Name: "code", Type: DB_NVarchar, Length: 190}, |
|
|
|
|
{Name: "status", Type: DB_Varchar, Length: 20}, |
|
|
|
|
{Name: "invited_by_user_id", Type: DB_BigInt, Nullable: true}, |
|
|
|
|
{Name: "email_sent", Type: DB_Bool}, |
|
|
|
@ -37,10 +37,10 @@ func addTempUserMigrations(mg *Migrator) { |
|
|
|
|
addTableIndicesMigrations(mg, "v1-7", tempUserV1) |
|
|
|
|
|
|
|
|
|
mg.AddMigration("Update temp_user table charset", NewTableCharsetMigration("temp_user", []*Column{ |
|
|
|
|
{Name: "email", Type: DB_NVarchar, Length: 255}, |
|
|
|
|
{Name: "email", Type: DB_NVarchar, Length: 190}, |
|
|
|
|
{Name: "name", Type: DB_NVarchar, Length: 255, Nullable: true}, |
|
|
|
|
{Name: "role", Type: DB_NVarchar, Length: 20, Nullable: true}, |
|
|
|
|
{Name: "code", Type: DB_NVarchar, Length: 255}, |
|
|
|
|
{Name: "code", Type: DB_NVarchar, Length: 190}, |
|
|
|
|
{Name: "status", Type: DB_Varchar, Length: 20}, |
|
|
|
|
{Name: "remote_addr", Type: DB_Varchar, Length: 255, Nullable: true}, |
|
|
|
|
})) |
|
|
|
|