diff options
-rw-r--r-- | lorrycontroller/statedb.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lorrycontroller/statedb.py b/lorrycontroller/statedb.py index 69538ed..122cb50 100644 --- a/lorrycontroller/statedb.py +++ b/lorrycontroller/statedb.py @@ -110,6 +110,11 @@ class StateDB(object): logging.debug('Initialising tables in database') c = self._conn.cursor() + # Note that this creates the *original* schema, which will + # then be updated by the migrations (_perform_any_migrations + # above). Since we did not use yoyo originally, this can't + # be moved to a migration. + # 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)') |