لماذا يحتاج المخطط إلى التحكم بالإصدارات
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain why manual schema scripts and ddl-auto fail.
الموضوعات المخطط لها
- Code is versioned in Git, but the database lives elsewhere; they must change together.
- Manual
schema.sqlruns drift: dev, test, and production end up different. spring.jpa.hibernate.ddl-auto=updateguesses changes, cannot rename or drop safely, and must not be used outside throwaway experiments.- A migration is a small numbered SQL script, applied once, in order.
- The database remembers which ones ran.
تفاصيل المخطط المبدئي
عرض عملي
a diagram: V1 → V2 → V3 applied to dev, test, and production in the same order.
اختبر فهمك
Why not ddl-auto=update in production?
أظهر الإجابة
It guesses changes and can be unsafe or incomplete; schema changes must be explicit and reviewed.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.