Skip to content

Commit

Permalink
Merge pull request rapidpro#97 from nyaruka/update_test_db
Browse files Browse the repository at this point in the history
Update test databasee
  • Loading branch information
rowanseymour authored Jul 20, 2023
2 parents 38ee06d + 348c363 commit 1e8681a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified mailroom_test.dump
Binary file not shown.
4 changes: 2 additions & 2 deletions testsuite/testdata/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func InsertChannel(rt *runtime.Runtime, org *Org, channelType models.ChannelType
uuid := assets.ChannelUUID(uuids.New())
var id models.ChannelID
must(rt.DB.Get(&id,
`INSERT INTO channels_channel(uuid, org_id, channel_type, name, schemes, role, config, last_seen, is_system, is_active, created_on, modified_on, created_by_id, modified_by_id)
VALUES($1, $2, $3, $4, $5, $6, $7, NOW(), FALSE, TRUE, NOW(), NOW(), 1, 1) RETURNING id`, uuid, org.ID, channelType, name, pq.Array(schemes), role, models.JSONMap(config),
`INSERT INTO channels_channel(uuid, org_id, channel_type, name, schemes, role, config, last_seen, is_system, log_policy, is_active, created_on, modified_on, created_by_id, modified_by_id)
VALUES($1, $2, $3, $4, $5, $6, $7, NOW(), FALSE, 'A', TRUE, NOW(), NOW(), 1, 1) RETURNING id`, uuid, org.ID, channelType, name, pq.Array(schemes), role, models.JSONMap(config),
))
return &Channel{ID: id, UUID: uuid, Type: channelType}
}
Expand Down

0 comments on commit 1e8681a

Please sign in to comment.