Skip to content

Commit

Permalink
Merge pull request #514 from cpeppas/bugfix/some_bytes_field_missing_…
Browse files Browse the repository at this point in the history
…sample_app

adding somebytes column that was missing from CREATE TABLE TweetsTable
  • Loading branch information
artem-zinnatullin committed Sep 10, 2015
2 parents 36b2296 + 332972d commit 103646f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class TweetsTable {
@NonNull
public static final String COLUMN_CONTENT = "content";

public static final String COLUMN_SOME_BYTES = "some_bytes";

// Yep, with StorIO you can safely store queries as objects and reuse them, they are immutable
@NonNull
public static final Query QUERY_ALL = Query.builder()
Expand All @@ -44,7 +46,8 @@ public static String getCreateTableQuery() {
return "CREATE TABLE " + TABLE + "("
+ COLUMN_ID + " INTEGER NOT NULL PRIMARY KEY, "
+ COLUMN_AUTHOR + " TEXT NOT NULL, "
+ COLUMN_CONTENT + " TEXT NOT NULL"
+ COLUMN_CONTENT + " TEXT NOT NULL,"
+ COLUMN_SOME_BYTES + " BLOB "
+ ");";
}
}

0 comments on commit 103646f

Please sign in to comment.