Skip to content
Snippets Groups Projects
Commit 592efd05 authored by Jakub Maloštík's avatar Jakub Maloštík
Browse files

Renamed warden_3.0.sql script to warden_3.0_mysql.sql as it is MySQL specific

parent efa9704a
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ C. Installation
* Create necessary table structure
mysql -p -u warden warden3 < warden_3.0.sql
mysql -p -u warden warden3 < warden_3.0_mysql.sql
* Get up to date Idea schema
......
......@@ -39,7 +39,7 @@ def setUpModule(): # pylint: disable = locally-disabled, invalid-name
cur.execute("DROP DATABASE IF EXISTS %s" % (DB,)) # NOT SECURE
cur.execute("CREATE DATABASE %s" % (DB,)) # NOT SECURE
cur.execute("USE %s" % (DB,)) # NOT SECURE
with open(path.join(path.dirname(__file__), 'warden_3.0.sql')) as script:
with open(path.join(path.dirname(__file__), 'warden_3.0_mysql.sql')) as script:
statements = ''.join([line.replace('\n', '') for line in script if line[0:2] != '--']).split(';')[:-1]
for statement in statements:
cur.execute(statement)
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment