diff --git a/xplan-resources/xplan-sql-scripts/src/main/resources/update/from_7.0_to_7.1/migrate.sql b/xplan-resources/xplan-sql-scripts/src/main/resources/update/from_7.0_to_7.1/migrate.sql
index 0aee68450949ab7bc1ac40f54d271bbd8fdf4c97..fe9aaa8a109ca8915914ecc8c9e0187b6e9e7cf1 100644
--- a/xplan-resources/xplan-sql-scripts/src/main/resources/update/from_7.0_to_7.1/migrate.sql
+++ b/xplan-resources/xplan-sql-scripts/src/main/resources/update/from_7.0_to_7.1/migrate.sql
@@ -1,5 +1,11 @@
 SET SEARCH_PATH TO public, "$user","public";
 
+-- Create Database Lock Table
+CREATE TABLE IF NOT EXISTS databasechangeloglock (ID INTEGER NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITHOUT TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT databasechangeloglock_pkey PRIMARY KEY (ID));
+
+-- Initialize Database Lock Table
+DELETE FROM databasechangeloglock;
+
 -- Lock Database
 UPDATE databasechangeloglock SET LOCKED = TRUE, LOCKEDBY = 'cpe-172-101-0-1.maine.res.rr.com (172.101.0.1)', LOCKGRANTED = NOW() WHERE ID = 1 AND LOCKED = FALSE;