app/src/main/java/json/chao/com/wanandroid/core/dao/HistoryDataDao.java
/** Creates the underlying database table. */
Creates the underlying database table.
Creates the underlying database table .
public static void createTable(Database db, boolean ifNotExists) {
        String constraint = ifNotExists? "IF NOT EXISTS ": "";
        db.execSQL("CREATE TABLE " + constraint + "\"HISTORY_DATA\" (" + 
                "\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ," +  0: id
                "\"DATE\" INTEGER NOT NULL ," +  1: date
                "\"DATA\" TEXT);");  2: data
    }
public static void createTable ( Database db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "\"HISTORY_DATA\" (" + "\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ," + "\"DATE\" INTEGER NOT NULL ," + "\"DATA\" TEXT);" ) ; }
Creates the underlying database table.
Creates the underlying database table .
// // 0: id // 1: date // 2: data