حذفت عن طريق الخطأ حقل مستخدم مخصص. هل يعني ذلك أنه تم حذفه بالكامل من قاعدة البيانات أم لا يزال موجودًا؟
إذا كان لا يزال موجودًا، فهل هناك أي طريقة لاستعادته (بخلاف استعادة نسخة احتياطية)؟ أو للوصول إلى محتوياته عبر مستكشف البيانات؟
حذفت عن طريق الخطأ حقل مستخدم مخصص. هل يعني ذلك أنه تم حذفه بالكامل من قاعدة البيانات أم لا يزال موجودًا؟
إذا كان لا يزال موجودًا، فهل هناك أي طريقة لاستعادته (بخلاف استعادة نسخة احتياطية)؟ أو للوصول إلى محتوياته عبر مستكشف البيانات؟
I’m 95% sure a deleted custom field is gone forever.
If you can’t see it in data explorer, it’s not there anymore.
Just a thought, but surely there would be a way to recreate the Custom Field and hack together a script to retrieve and refill the data from within a backup using a temporary cloud server to write out the data from the original Custom Field?
Thanks for your thoughts. Yes, that’s obviously what backups are for. I don’t know what the smartest procedure would be for restoring user field content for, say, thousands of users. For me, the number the easiest procedure was to just do it manually. And that was actually surprisingly easy, so I mention it here (from memory, so I may have missed some detail):
.sql file.حاليًا، عند حذف حقل مخصص (الجداول user_fields و user_fields_options إذا كان field_type هو dropdown)، لا يتم حذف القيم الفعلية للمستخدمين (الجدول user_custom_fields). لذلك، فإن حلاً سريعًا (ولكنه قد يكون خطيرًا: يُنصح بنسخ احتياطي أولاً) هو:
user_fields بالمعرف القديم (يتطلب هذا وصولًا إداريًا إلى قاعدة البيانات): UPDATE user_fields SET id=1 WHERE id=3; (بافتراض أن 3 هو المعرف الجديد و1 هو المعرف القديم).user_field_options.