Files
Learn_System/backend/src/db/migrations/012_algebra_8_ch2.sql
T

11 lines
970 B
SQL

-- Register Algebra 8 — Chapter 2 «Квадратные уравнения» as a separate textbook entry.
-- Chapter 1 already exists with slug 'algebra-8'. This is a continuation file.
-- Bump physics-8 to sort_order=5 so Algebra 8 Ch2 sits adjacent to Algebra 8 Ch1.
UPDATE textbooks SET sort_order = 5 WHERE slug = 'physics-8';
INSERT OR IGNORE INTO textbooks (slug, subject, grade, title, author, description, html_path, para_count, color, sort_order) VALUES
('algebra-8-ch2', 'math', 8, 'Алгебра — 8 класс · Глава 2', '',
'Интерактивный учебник: глава 2 «Квадратные уравнения». §§ 7–12 + Финал. 30+ интерактивов: конструкторы уравнений, дискриминант, теорема Виета, разложение, текстовые задачи, биквадратные. 7 боссов-проверок.',
'algebra_8_ch2.html', 7, 'pink', 4);