This repository was archived by the owner on May 2, 2025. It is now read-only.

Description
CockroachDB is a PGSQL protocol-compatible database that has better replication/scaling facilities.
I'd like to switch over to using it as it's working well with some other things I'm doing, and would help make my LoRaWAN clusters more resilient.
At the moment, I'm stuck on https://github.com/brocaar/chirpstack-application-server/blob/master/migrations/0002_join_accept_params.sql#L9 throwing an "unsupported operation" error within CockroachDB (see cockroachdb/cockroach#43140 and go-gorp/gorp#359 for more on this), but whilst I chase those to be patched, I'm wondering if there are changes that can be made to the schema in order to move the reference configuration somewhere else and avoid the overlap?
I'm happy to keep this in a local working copy, and push for the gorp provider to be updated, however I'd love to get chirpstack working using this DB! :)