Fixed column length that was too big for MySql

This commit is contained in:
moandji.ezana 2012-10-17 00:28:00 +02:00
parent 5dad3d8318
commit d3e6f74a0c

View file

@ -19,7 +19,7 @@ public class Migration_1 implements Migration {
public void up() {
createTable(table("AUTHORIZATIONS",
column("ID", Define.DataTypes.BIGINT, primarykey(), autoincrement(), notnull()),
column("ENTITY", VARCHAR, notnull(), Define.length(65000)),
column("ENTITY", VARCHAR, notnull(), Define.length(1000)),
column("PROFILE", LONGVARCHAR),
column("REGISTRATION", LONGVARCHAR),
column("ACCESSTOKEN", LONGVARCHAR)));