Browse Source

Merge branch 'development' into issue83

Neal Wilson 7 years ago
parent
commit
a2812ed038
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      config/Windows/navigation.xml

+ 3
- 1
config/Windows/navigation.xml View File

@@ -319,6 +319,9 @@
319 319
             var query = new QSqlQuery;
320 320
             query.exec("ALTER TABLE roasting_specification ADD COLUMN spec jsonb");
321 321
             query.exec("ALTER TABLE roasting_log ADD COLUMN additional_data jsonb");
322
+            query.exec("CREATE TABLE IF NOT EXISTS scheduled_roasts (id bigserial PRIMARY KEY, machine bigint, \"time\" timestamp without time zone, data jsonb NOT NULL)");
323
+            query.exec("CREATE OR REPLACE FUNCTION notify_scheduled_roasts_changed() RETURNS trigger AS $$ BEGIN NOTIFY ScheduledRoastsChange; RETURN NULL; END; $$ LANGUAGE plpgsql");
324
+            query.exec("CREATE TRIGGER notify_scheduled_roasts_changed AFTER INSERT OR UPDATE OR DELETE OR TRUNCATE ON scheduled_roasts FOR EACH STATEMENT EXECUTE PROCEDURE notify_scheduled_roasts_changed()");
322 325
             query.exec("UPDATE TypicaFeatures SET version = 8 WHERE feature = 'base-features'");
323 326
             query = query.invalidate();
324 327
         };
@@ -405,7 +408,6 @@
405 408
 			}
406 409
 			query = query.invalidate();
407 410
 		}
408
-		
409 411
 		var switchuser = findChildObject(this, 'switchuser');
410 412
 		switchuser.triggered.connect(function() {
411 413
 			var loginDialog = new LoginDialog();

Loading…
Cancel
Save