From 7d74d42c79fb2747e42b4d9e2743abbc86a5354c Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Mon, 19 Apr 2021 09:26:31 +0000 Subject: #1042 Update database schema automatically This patch adds database schema management capabilities to ogServer: - ogServer now tracks the version of its database schema, if no version is detected, creates a 'version' table with a single row starting at 0. - ogServer can upgrade its database schema to a newer version if detected. (ogServer ships required SQL commands to do so) If ogServer is unable to upgrade the schema at startup (if needed be) it *will not* start. Defines schema update v1 which upgrades database engine tables of ogServer database (usually named 'ogAdmBD') from myISAM to innoDB. --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 5a38431..bf93816 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,7 @@ ogserver_SOURCES= src/ogAdmServer.c \ src/dbi.c \ src/main.c \ src/schedule.c \ + src/schema.c \ src/utils.c \ src/rest.c \ src/client.c \ -- cgit v1.2.3-18-g5258