From 2dab443f976b2d59a1f83cf4b811d8cb6d75b46e Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 31 Jul 2018 17:15:06 +0200
Subject: [PATCH] when installing debian package from scratch use flyway for
 migration management

---
 debian/template/postinst | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/debian/template/postinst b/debian/template/postinst
index bba24dc6df..ae3bca69b2 100644
--- a/debian/template/postinst
+++ b/debian/template/postinst
@@ -27,12 +27,6 @@ case "$1" in
 		if [ "$OLD_VERSION" = "" ]
 		then
 			create_db
-
-			#install base version of the framework
-			exec_sql_file "$DB_SCRIPT_DIR/db_0.sql"
-			#install patch to current version
-			exec_sql_file "$DB_SCRIPT_DIR/db_0_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql"
-
 		else
 			#if we update the package
 			if [ -f $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql ]; then
-- 
GitLab