Update SQL scripts to include 'created_at' timestamp for exercise types: Modify insert statements in add_vocab_lesson_didactics.sql, create-vocab-courses.sql, and update-vocab-courses-existing.sql to add a 'created_at' column with the current timestamp, enhancing data tracking for vocabulary grammar exercise types.

This commit is contained in:
Torsten Schulz (local)
2026-03-25 16:26:48 +01:00
parent 3ac4ea04d5
commit eb8f9c1d19
3 changed files with 30 additions and 30 deletions

View File

@@ -5,10 +5,10 @@ ADD COLUMN IF NOT EXISTS grammar_focus JSONB,
ADD COLUMN IF NOT EXISTS speaking_prompts JSONB,
ADD COLUMN IF NOT EXISTS practical_tasks JSONB;
INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES
('dialog_completion', 'Dialogergänzung'),
('situational_response', 'Situative Antwort'),
('pattern_drill', 'Muster-Drill'),
('reading_aloud', 'Lautlese-Übung'),
('speaking_from_memory', 'Freies Sprechen')
INSERT INTO community.vocab_grammar_exercise_type (name, description, created_at) VALUES
('dialog_completion', 'Dialogergänzung', NOW()),
('situational_response', 'Situative Antwort', NOW()),
('pattern_drill', 'Muster-Drill', NOW()),
('reading_aloud', 'Lautlese-Übung', NOW()),
('speaking_from_memory', 'Freies Sprechen', NOW())
ON CONFLICT (name) DO NOTHING;