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 speaking_prompts JSONB,
ADD COLUMN IF NOT EXISTS practical_tasks JSONB; ADD COLUMN IF NOT EXISTS practical_tasks JSONB;
INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES INSERT INTO community.vocab_grammar_exercise_type (name, description, created_at) VALUES
('dialog_completion', 'Dialogergänzung'), ('dialog_completion', 'Dialogergänzung', NOW()),
('situational_response', 'Situative Antwort'), ('situational_response', 'Situative Antwort', NOW()),
('pattern_drill', 'Muster-Drill'), ('pattern_drill', 'Muster-Drill', NOW()),
('reading_aloud', 'Lautlese-Übung'), ('reading_aloud', 'Lautlese-Übung', NOW()),
('speaking_from_memory', 'Freies Sprechen') ('speaking_from_memory', 'Freies Sprechen', NOW())
ON CONFLICT (name) DO NOTHING; ON CONFLICT (name) DO NOTHING;

View File

@@ -218,18 +218,18 @@ CREATE INDEX IF NOT EXISTS vocab_grammar_exercise_progress_exercise_idx
-- ============================================ -- ============================================
-- Standard-Übungstypen für Grammatik -- Standard-Übungstypen für Grammatik
INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES INSERT INTO community.vocab_grammar_exercise_type (name, description, created_at) VALUES
('gap_fill', 'Lückentext-Übung'), ('gap_fill', 'Lückentext-Übung', NOW()),
('multiple_choice', 'Multiple-Choice-Fragen'), ('multiple_choice', 'Multiple-Choice-Fragen', NOW()),
('sentence_building', 'Satzbau-Übung'), ('sentence_building', 'Satzbau-Übung', NOW()),
('transformation', 'Satzumformung'), ('transformation', 'Satzumformung', NOW()),
('conjugation', 'Konjugations-Übung'), ('conjugation', 'Konjugations-Übung', NOW()),
('declension', 'Deklinations-Übung'), ('declension', 'Deklinations-Übung', NOW()),
('dialog_completion', 'Dialogergänzung'), ('dialog_completion', 'Dialogergänzung', NOW()),
('situational_response', 'Situative Antwort'), ('situational_response', 'Situative Antwort', NOW()),
('pattern_drill', 'Muster-Drill'), ('pattern_drill', 'Muster-Drill', NOW()),
('reading_aloud', 'Lautlese-Übung'), ('reading_aloud', 'Lautlese-Übung', NOW()),
('speaking_from_memory', 'Freies Sprechen') ('speaking_from_memory', 'Freies Sprechen', NOW())
ON CONFLICT (name) DO NOTHING; ON CONFLICT (name) DO NOTHING;
-- ============================================ -- ============================================

View File

@@ -110,18 +110,18 @@ CREATE INDEX IF NOT EXISTS vocab_grammar_exercise_progress_exercise_idx
-- ============================================ -- ============================================
-- 5. Standard-Daten einfügen -- 5. Standard-Daten einfügen
-- ============================================ -- ============================================
INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES INSERT INTO community.vocab_grammar_exercise_type (name, description, created_at) VALUES
('gap_fill', 'Lückentext-Übung'), ('gap_fill', 'Lückentext-Übung', NOW()),
('multiple_choice', 'Multiple-Choice-Fragen'), ('multiple_choice', 'Multiple-Choice-Fragen', NOW()),
('sentence_building', 'Satzbau-Übung'), ('sentence_building', 'Satzbau-Übung', NOW()),
('transformation', 'Satzumformung'), ('transformation', 'Satzumformung', NOW()),
('conjugation', 'Konjugations-Übung'), ('conjugation', 'Konjugations-Übung', NOW()),
('declension', 'Deklinations-Übung'), ('declension', 'Deklinations-Übung', NOW()),
('dialog_completion', 'Dialogergänzung'), ('dialog_completion', 'Dialogergänzung', NOW()),
('situational_response', 'Situative Antwort'), ('situational_response', 'Situative Antwort', NOW()),
('pattern_drill', 'Muster-Drill'), ('pattern_drill', 'Muster-Drill', NOW()),
('reading_aloud', 'Lautlese-Übung'), ('reading_aloud', 'Lautlese-Übung', NOW()),
('speaking_from_memory', 'Freies Sprechen') ('speaking_from_memory', 'Freies Sprechen', NOW())
ON CONFLICT (name) DO NOTHING; ON CONFLICT (name) DO NOTHING;
-- ============================================ -- ============================================