diff --git a/migrations/2.surrealql b/migrations/2.surrealql new file mode 100644 index 0000000..66c1017 --- /dev/null +++ b/migrations/2.surrealql @@ -0,0 +1 @@ +DEFINE FIELD IF NOT EXISTS note_type ON TABLE note TYPE option; diff --git a/migrations/2_down.surrealql b/migrations/2_down.surrealql new file mode 100644 index 0000000..d0213a0 --- /dev/null +++ b/migrations/2_down.surrealql @@ -0,0 +1 @@ +REMOVE FIELD IF EXISTS note_type ON TABLE note; diff --git a/stream_app/note.py b/stream_app/note.py index 2cf063e..2d1f5a4 100644 --- a/stream_app/note.py +++ b/stream_app/note.py @@ -27,7 +27,7 @@ def note_panel(session_id=None, note_id=None): if note_id: note: Note = Note.get(note_id) else: - note: Note = Note() + note: Note = Note(note_type="human") t_preview, t_edit = st.tabs(["Preview", "Edit"]) with t_preview: