From ae1d00b13f3551dfb70f429271f55c971f4859cd Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Mon, 19 Jun 2023 23:25:03 -0600 Subject: [PATCH] Create an 'occupied' state for unready beds --- projects/tentacles/src/python/tentacles/schema.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/tentacles/src/python/tentacles/schema.sql b/projects/tentacles/src/python/tentacles/schema.sql index 1e36258..4c1f3d8 100644 --- a/projects/tentacles/src/python/tentacles/schema.sql +++ b/projects/tentacles/src/python/tentacles/schema.sql @@ -157,6 +157,10 @@ CREATE TABLE IF NOT EXISTS email_spool ( , FOREIGN KEY(user_id) REFERENCES users(id) ); +-- name: migration-0002-create-occupied-state +-- Create a state representing that the printer needs to be unloaded after a print +INSERT OR IGNORE INTO printer_statuses (id, name) VALUES (5, 'occupied'); + ---------------------------------------------------------------------------------------------------- -- Users ----------------------------------------------------------------------------------------------------