انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهJNR-033-L01

لماذا يحتاج المخطط إلى التحكم بالإصدارات

  • الدرس 1 من 6
  • Junior
في هذا الدرس 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.sql runs drift: dev, test, and production end up different.
  • spring.jpa.hibernate.ddl-auto=update guesses 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.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.