Skip to content

Commit

Permalink
#12 add "extra" attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hamsterksu committed Oct 25, 2014
1 parent 69f1b97 commit 80d438d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Expand Up @@ -12,6 +12,8 @@

String defVal() default EMPTY_DEF_VAL;

String extra() default "";

public static enum Type {
INTEGER, REAL, TEXT, BLOB
}
Expand Down
Expand Up @@ -50,6 +50,11 @@ public static ColumnMeta create(VariableElement f) {
sql.append(" DEFAULT (").append(defVal).append(")");
}

String extra = column.extra();
if (!TextUtils.isEmpty(extra)) {
sql.append(" ").append(extra);
}

return new ColumnMeta(columnName, isPrimary, sql.toString(), column.type(), isNotNull || isAutoIncrement || isPrimary);
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -2,7 +2,7 @@ subprojects {

sourceCompatibility = 1.7
group = 'com.github.hamsterksu'
version = '1.10.2'
version = '1.10.3'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down

0 comments on commit 80d438d

Please sign in to comment.