diff options
Diffstat (limited to 'lorrycontroller/statedb.py')
-rw-r--r-- | lorrycontroller/statedb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lorrycontroller/statedb.py b/lorrycontroller/statedb.py index b7950e1..1f18189 100644 --- a/lorrycontroller/statedb.py +++ b/lorrycontroller/statedb.py @@ -87,6 +87,10 @@ class StateDB(object): logging.debug('Initialising tables in database') c = self._conn.cursor() + # Table for storing database schema version. + c.execute('CREATE TABLE version (running INT)') + c.execute('INSERT INTO version VALUES (1)') + # Table for holding the "are we scheduling jobs" value. c.execute('CREATE TABLE running_queue (running INT)') c.execute('INSERT INTO running_queue VALUES (1)') |