{"action":"closed","issue":{"url":"https://api.github.com/repos/satyan/sugar/issues/239","labels_url":"https://api.github.com/repos/satyan/sugar/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/satyan/sugar/issues/239/comments","events_url":"https://api.github.com/repos/satyan/sugar/issues/239/events","html_url":"https://github.com/satyan/sugar/issues/239","id":55328748,"number":239,"title":"No such table","user":{"login":"kshitijb","id":4145434,"avatar_url":"https://avatars.githubusercontent.com/u/4145434?v=3","gravatar_id":"","url":"https://api.github.com/users/kshitijb","html_url":"https://github.com/kshitijb","followers_url":"https://api.github.com/users/kshitijb/followers","following_url":"https://api.github.com/users/kshitijb/following{/other_user}","gists_url":"https://api.github.com/users/kshitijb/gists{/gist_id}","starred_url":"https://api.github.com/users/kshitijb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshitijb/subscriptions","organizations_url":"https://api.github.com/users/kshitijb/orgs","repos_url":"https://api.github.com/users/kshitijb/repos","events_url":"https://api.github.com/users/kshitijb/events{/privacy}","received_events_url":"https://api.github.com/users/kshitijb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/satyan/sugar/labels/Closing","name":"Closing","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-23T20:29:28Z","updated_at":"2015-04-02T04:23:00Z","closed_at":"2015-04-02T04:23:00Z","body":"The following 2 tables aren't creating and debugging shows this error. What could possibly be the issue?\r\n> android.database.sqlite.SQLiteException: no such table: TWEETS (code 1): , while compiling: INSERT INTO TWEETS(PROFILE,TWEET_ID,TWEET) VALUES (?,?,?)\r\n\r\n```java\r\npublic class Tweets extends SugarRecord<Tweets> {\r\n    long tweetId;\r\n    String tweet;\r\n    ProfilesData profile;\r\n\r\n    public Tweets() {\r\n    }\r\n\r\n    public Tweets(long tweetId, String tweet, ProfilesData profile) {\r\n        this.tweetId = tweetId;\r\n        this.tweet = tweet;\r\n        this.profile = profile;\r\n    }\r\n\r\n    public long getTweetId() {\r\n        return tweetId;\r\n    }\r\n\r\n    public void setTweetId(long tweetId) {\r\n        this.tweetId = tweetId;\r\n    }\r\n\r\n    public String getTweet() {\r\n        return tweet;\r\n    }\r\n\r\n    public void setTweet(String tweet) {\r\n        this.tweet = tweet;\r\n    }\r\n\r\n    public ProfilesData getProfile() {\r\n        return profile;\r\n    }\r\n\r\n    public void setProfile(ProfilesData profile) {\r\n        this.profile = profile;\r\n    }\r\n}\r\n```\r\n\r\n```java\r\npublic class Hashtags extends SugarRecord<Hashtags> {\r\n\r\n    Tweets tweet;\r\n    String hashtag;\r\n\r\n    public Hashtags() {\r\n    }\r\n\r\n    public Hashtags(Tweets tweet, String hashtag) {\r\n        this.tweet = tweet;\r\n        this.hashtag = hashtag;\r\n    }\r\n\r\n    public Tweets getTweet() {\r\n        return tweet;\r\n    }\r\n\r\n    public void setTweet(Tweets tweet) {\r\n        this.tweet = tweet;\r\n    }\r\n\r\n    public String getHashtag() {\r\n        return hashtag;\r\n    }\r\n\r\n    public void setHashtag(String hashtag) {\r\n        this.hashtag = hashtag;\r\n    }\r\n}\r\n```\r\n\r\nWhereas this table gets created and works fine.\r\n\r\n```java\r\npublic class ProfilesData extends SugarRecord<ProfilesData>{\r\n    long userId;\r\n    String userName;\r\n    String profileImageUrl;\r\n    String description;\r\n    String hashtagString;\r\n\r\n    public ProfilesData() {\r\n    }\r\n\r\n    public ProfilesData(long user_id, String userName, String profileImageUrl, String description) {\r\n        this.userId = user_id;\r\n        this.userName = userName;\r\n        this.profileImageUrl = profileImageUrl;\r\n        this.description = description;\r\n    }\r\n\r\n    public long getUserId() {\r\n        return userId;\r\n    }\r\n\r\n    public void setUserId(long userId) {\r\n        this.userId = userId;\r\n    }\r\n\r\n    public String getUserName() {\r\n        return userName;\r\n    }\r\n\r\n    public void setUserName(String userName) {\r\n        this.userName = userName;\r\n    }\r\n\r\n    public String getProfileImageUrl() {\r\n        return profileImageUrl;\r\n    }\r\n\r\n    public void setProfileImageUrl(String profileImageUrl) {\r\n        this.profileImageUrl = profileImageUrl;\r\n    }\r\n\r\n    public String getDescription() {\r\n        return description;\r\n    }\r\n\r\n    public void setDescription(String description) {\r\n        this.description = description;\r\n    }\r\n\r\n    public String getHashtagString() {\r\n        return hashtagString;\r\n    }\r\n\r\n    public void setHashtagString(String hashtagString) {\r\n        this.hashtagString = hashtagString;\r\n    }\r\n}\r\n```"}}