summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/db2sql.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c
index abbb42ee0..32df45e84 100644
--- a/src/plugins/db2sql.c
+++ b/src/plugins/db2sql.c
@@ -43,6 +43,12 @@ HPExport struct hplugin_info pinfo = {
HPM_VERSION, // HPM Version (don't change, macro is automatically updated)
};
+#ifdef RENEWAL
+#define DBSUFFIX "_re"
+#else // not RENEWAL
+#define DBSUFFIX ""
+#endif
+
struct {
FILE *fp;
struct {
@@ -336,8 +342,7 @@ void do_db2sql(void)
const char *source;
const char *destination;
} files[] = {
- {"item_db", "re/item_db.conf", "sql-files/item_db_re.sql"},
- {"item_db", "pre-re/item_db.conf", "sql-files/item_db.sql"},
+ {"item_db", DBPATH"item_db.conf", "sql-files/item_db" DBSUFFIX ".sql"},
{"item_db2", "item_db2.conf", "sql-files/item_db2.sql"},
};