From 352012e53173372ebc82898e1b6854c983b01b25 Mon Sep 17 00:00:00 2001 From: Naios Date: Sat, 21 Mar 2015 00:25:21 +0100 Subject: Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp Make sure you re-run cmake, because boost::iostreams was added as dependency. Maybe you need to install libboost-iostreams1.55-dev on unix as well. Import every update manual until (included) those INSERT IGNORE updates for each database. Thanks DDuarte and Shauren for your amazing ideas, help and advises. In hope that nobody gets a "Your database structure is not up to date..." anymore ,-) Signed-off-by: Naios Signed-off-by: Nayd --- sql/custom/auth/.gitignore | 1 + sql/custom/characters/.gitignore | 1 + sql/custom/hotfixes/.gitignore | 1 + sql/custom/world/.gitignore | 1 + 4 files changed, 4 insertions(+) create mode 100644 sql/custom/auth/.gitignore create mode 100644 sql/custom/characters/.gitignore create mode 100644 sql/custom/hotfixes/.gitignore create mode 100644 sql/custom/world/.gitignore (limited to 'sql/custom') diff --git a/sql/custom/auth/.gitignore b/sql/custom/auth/.gitignore new file mode 100644 index 00000000000..d1b811b7de5 --- /dev/null +++ b/sql/custom/auth/.gitignore @@ -0,0 +1 @@ +*.sql diff --git a/sql/custom/characters/.gitignore b/sql/custom/characters/.gitignore new file mode 100644 index 00000000000..d1b811b7de5 --- /dev/null +++ b/sql/custom/characters/.gitignore @@ -0,0 +1 @@ +*.sql diff --git a/sql/custom/hotfixes/.gitignore b/sql/custom/hotfixes/.gitignore new file mode 100644 index 00000000000..d1b811b7de5 --- /dev/null +++ b/sql/custom/hotfixes/.gitignore @@ -0,0 +1 @@ +*.sql diff --git a/sql/custom/world/.gitignore b/sql/custom/world/.gitignore new file mode 100644 index 00000000000..d1b811b7de5 --- /dev/null +++ b/sql/custom/world/.gitignore @@ -0,0 +1 @@ +*.sql -- cgit v1.2.3