عرض عملي: إعادة تسمية عمود أثناء حركة مرور حية
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
rename customer.name to full_name with zero failed requests.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Start a load test hitting customer endpoints; baseline error count is zero.
- Release 1: Flyway adds
full_name(nullable); app writes both columns, readsname. - Run the batched backfill; verify with a count of rows where the columns differ.
- Release 2: app reads
full_nameand still writes both. - Planned mistake: run
ALTER TABLE ... RENAME COLUMNdirectly; the load test shows errors from old instances. Show it, restore, and continue with the safe path. - Release 3: stop writing
name; later Release 4 drops it. The load test reports zero failures.
Prepares MID-020-LAB1.
اختبر فهمك
At which release can the old column finally be dropped?
أظهر الإجابة
After no running version reads or writes it.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.