انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRC-011-L05

التراجع عن البيانات

  • الدرس 5 من 8
  • Senior C
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

make data changes reversible, not just code.

الموضوعات المخطط لها

  • Code rolls back in minutes; schema and data changes may not.
  • Expand and contract: add new columns or tables first (expand), migrate, switch reads, and only later remove the old (contract).
  • New code must tolerate the old schema and old code the new, so either version can run during rollout.
  • When a change is truly irreversible, say so in the review, take a backup or snapshot, and require an explicit go decision.
تفاصيل المخطط المبدئي

عرض عملي

Timeline: release N adds a nullable status_v2 column and dual-writes; N+1 reads from it; N+2 drops the old column weeks later. Rollback at any step before N+2 is a deploy, not a restore.

اختبر فهمك

Why drop the old column in a later release?

أظهر الإجابة

So rollback to earlier code stays possible while the new path is proven.

التطبيق

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

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

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

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