Skip to content

Commit

Permalink
Merge pull request #1 from rapidpro/remove-fields
Browse files Browse the repository at this point in the history
Remove fields on DAO
  • Loading branch information
rowanseymour committed May 12, 2015
2 parents d68892c + 34bf125 commit 7ba6031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/rapidpro/mage/dao/ContactDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public interface ContactDao {
ContactContext getContactContextByOrgAndUrn(@Bind("orgId") int orgId, @Bind("urn") String urn);

@SqlUpdate(
"INSERT INTO " + Table.CONTACT + " (org_id, name, is_active, created_by_id, created_on, modified_by_id, modified_on, fields, is_test, is_blocked, is_failed, uuid) " +
"VALUES(:orgId, :name, TRUE, :userId, NOW(), :userId, NOW(), '', FALSE, FALSE, FALSE, :uuid)"
"INSERT INTO " + Table.CONTACT + " (org_id, name, is_active, created_by_id, created_on, modified_by_id, modified_on, is_test, is_blocked, is_failed, uuid) " +
"VALUES(:orgId, :name, TRUE, :userId, NOW(), :userId, NOW(), FALSE, FALSE, FALSE, :uuid)"
)
@GetGeneratedKeys
int insertContact(@Bind("userId") int userId, @Bind("orgId") int orgId, @Bind("name") String name, @Bind("uuid") String uuid);
Expand Down

0 comments on commit 7ba6031

Please sign in to comment.