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

@@ -110,18 +110,18 @@ CREATE INDEX IF NOT EXISTS vocab_grammar_exercise_progress_exercise_idx
-- ============================================
-- 5. Standard-Daten einfügen
-- ============================================
INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES
('gap_fill', 'Lückentext-Übung'),
('multiple_choice', 'Multiple-Choice-Fragen'),
('sentence_building', 'Satzbau-Übung'),
('transformation', 'Satzumformung'),
('conjugation', 'Konjugations-Übung'),
('declension', 'Deklinations-Übung'),
('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
('gap_fill', 'Lückentext-Übung', NOW()),
('multiple_choice', 'Multiple-Choice-Fragen', NOW()),
('sentence_building', 'Satzbau-Übung', NOW()),
('transformation', 'Satzumformung', NOW()),
('conjugation', 'Konjugations-Übung', NOW()),
('declension', 'Deklinations-Übung', NOW()),
('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;
-- ============================================