Thank You Victor,
after sqlite db modification update procedure continues and done successfully.
Ok then i will create new base image and put it on dockerhub for other to use version with this manual fix.
But upgrade from old image will still be not possible because after docker start i begin upgrading db schema, and if user have old sqlite db it will not upgrade correctly, nxdbmgr hangs and because it is in entry point of docker image, docker image will not start up netxms service and agent.
Please it is possible make fix it into nxdbmgr, to do same manual fix? If it will be in new version i will release docker image with this fix, upgrade procedure will be automatic.
@victor said in Database schema upgrade, sqlite:
Next it tries to open second connection to database, which I suppose is not working for SQLite. Do you have any network maps configured?
If you DO NOT have any network maps, you can do this step manually by executing the following queries (it will delete any configured links on network maps):
DROP TABLE network_map_links;
CREATE TABLE network_map_links
(
map_id integer not null,
link_id integer not null,
element1 integer not null,
element2 integer not null,
link_type integer not null,
link_name varchar(255) null,
connector_name1 varchar(255) null,
connector_name2 varchar(255) null,
element_data varchar null,
flags integer not null,
color_source integer not null,
color integer not null,
color_provider varchar(255) null,
PRIMARY KEY(map_id,link_id)
);
CREATE INDEX idx_network_map_links_map_id ON network_map_links(map_id);
UPDATE metadata SET var_value='9' WHERE var_name='SchemaVersionMinor';
And then run nxdbmgr upgrade again - it should continue from next step.
Best regards,
Victor