Skip to content

Commit

Permalink
Update to ChirpStack v4.3.0 db schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Mar 8, 2023
1 parent 7af549f commit 070d1ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ func migrateOrganizations() {
can_have_gateways,
max_device_count,
max_gateway_count,
private_gateways
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9)
private_gateways_up,
private_gateways_down
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
on conflict do nothing`,
intToUUID(org.ID),
org.CreatedAt,
Expand All @@ -311,6 +312,7 @@ func migrateOrganizations() {
org.MaxDeviceCount,
org.MaxGatewayCount,
false,
false,
)
if err != nil {
panic(err)
Expand Down

0 comments on commit 070d1ef

Please sign in to comment.