I am trying to upgrade from a fairly old version (lora-app-server 3.3.1 → chirpstack-application-server 3.17.1) and when the upgrade finishes, the application server log throws the error "setup storage error: storage: migrate up error: Dirty database version 1. Fix and force version. "
I have two db schemas (as and ns), in the postgre log (v9.6) you see the following:
ERROR: relation “code_migration” does not exist
STATEMENT: lock table code_migration
ERROR: relation “code_migration” does not exist
STATEMENT: lock table code_migration
ERROR: relation “application” already exists
STATEMENT: create table application (
app_eui bytea primary key,
name character varying (100) not null
);create table node (
dev_eui bytea primary key,
app_eui bytea references application on delete cascade not null,
app_key bytea not null,
used_dev_nonces bytea
);create index node_app_eui on node (app_eui);
ERROR: relation “code_migration” does not exist
STATEMENT: lock table code_migration
Please help