{"action":"closed","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1025","repository_url":"https://api.github.com/repos/Raizlabs/DBFlow","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1025/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1025/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/1025","id":183633290,"number":1025,"title":"Cannot create/insert in new table: android.database.sqlite.SQLiteException: no such table: \"TableName\" ","user":{"login":"avinashs95","id":13647377,"avatar_url":"https://avatars.githubusercontent.com/u/13647377?v=3","gravatar_id":"","url":"https://api.github.com/users/avinashs95","html_url":"https://github.com/avinashs95","followers_url":"https://api.github.com/users/avinashs95/followers","following_url":"https://api.github.com/users/avinashs95/following{/other_user}","gists_url":"https://api.github.com/users/avinashs95/gists{/gist_id}","starred_url":"https://api.github.com/users/avinashs95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinashs95/subscriptions","organizations_url":"https://api.github.com/users/avinashs95/orgs","repos_url":"https://api.github.com/users/avinashs95/repos","events_url":"https://api.github.com/users/avinashs95/events{/privacy}","received_events_url":"https://api.github.com/users/avinashs95/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-18T09:24:18Z","updated_at":"2016-10-18T09:55:02Z","closed_at":"2016-10-18T09:55:02Z","body":"DBFlow Version: 4.0.0-beta1\r\nIssue Kind  (Bug, Question, Feature): Question\r\n\r\nDescription: \r\nI was using DBflow for my models. After a long time I decided to add an extra model, But I am not able to do so. I am getting an exception saying \"No such table\". I tried cleaning the project, selecting \"make project\" and building again. Previously created models are working without any issue. \r\n\r\n> > 10-18 13:24:07.410 1547-1547/com.test.app E/SQLiteLog: (1) no such table: DummyTest\r\n> 10-18 13:24:07.414 1547-1547/com.test.app D/AndroidRuntime: Shutting down VM\r\n> 10-18 13:24:07.424 1547-1547/com.test.app E/AndroidRuntime: FATAL EXCEPTION: main\r\n>                                                                   Process: com.test.app, PID: 1547\r\n>                                                                   java.lang.RuntimeException: Unable to start activity **ComponentInfo{com.test.app/com.test.app.HomeActivity}: android.database.sqlite.SQLiteException: no such table: DummyTest (code 1): , while compiling: INSERT INTO `DummyTest`(`name`) VALUES (?)**\r\n>                                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2452)\r\n>                                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535)\r\n>                                                                       at android.app.ActivityThread.access$900(ActivityThread.java:154)\r\n>                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)\r\n>                                                                       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n>                                                                       at android.os.Looper.loop(Looper.java:152)\r\n>                                                                       at android.app.ActivityThread.main(ActivityThread.java:5497)\r\n>                                                                       at java.lang.reflect.Method.invoke(Native Method)\r\n>                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n>                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n>                                                                    **Caused by: android.database.sqlite.SQLiteException: no such table: DummyTest (code 1): , while compiling: INSERT INTO `DummyTest`(`name`) VALUES (?)**\r\n>                                                                       at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)\r\n>                                                                       at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)\r\n>                                                                       at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)\r\n>                                                                       at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)\r\n>                                                                       at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)\r\n>                                                                       at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)\r\n>                                                                       at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1006)\r\n>                                                                       at com.raizlabs.android.dbflow.structure.database.AndroidDatabase.compileStatement(AndroidDatabase.java:59)\r\n>                                                                       at com.raizlabs.android.dbflow.structure.ModelAdapter.getInsertStatement(ModelAdapter.java:64)\r\n>                                                                       at com.raizlabs.android.dbflow.structure.ModelAdapter.getInsertStatement(ModelAdapter.java:51)\r\n>                                                                       at com.raizlabs.android.dbflow.sql.saveable.ModelSaver.insert(ModelSaver.java:83)\r\n>                                                                       at com.raizlabs.android.dbflow.structure.ModelAdapter.insert(ModelAdapter.java:128)\r\n>                                                                       at com.raizlabs.android.dbflow.structure.BaseModel.insert(BaseModel.java:95)\r\n>                                                                       at com.test.app.HomeActivity.onCreate(HomeActivity.java:122)\r\n>                                                                       at android.app.Activity.performCreate(Activity.java:6285)\r\n>                                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)\r\n>                                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2405)\r\n>                                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535) \r\n>                                                                       at android.app.ActivityThread.access$900(ActivityThread.java:154) \r\n>                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) \r\n>                                                                       at android.os.Handler.dispatchMessage(Handler.java:102) \r\n>                                                                       at android.os.Looper.loop(Looper.java:152) \r\n>                                                                       at android.app.ActivityThread.main(ActivityThread.java:5497) \r\n>                                                                       at java.lang.reflect.Method.invoke(Native Method) \r\n>                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) \r\n>                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) \r\n> 10-18 13:24:07.424 1547-1547/? D/AppTracker: App Event: crash"}}
{"actor":{"display_login":"avinashs95"}}