إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 03-26-2010, 11:50 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,610
عدد الـنقاط :3341
 تقييم المستوى : 2139

I'm having a real brain fart here on a sql query.

I'm importing a large IPB site to VB (using impex), and the customer has a bunch of usergroups that are not inheriting any permissions with the import. Basically the usergroups have no permissions whatsoever, so when I go to import the rest of the data, users are denied avatars and signatures due to their default permissions based on their usergroup.

I'm trying to set certain fields with certain perimissions from the default settings for the registered users group, but not all fields, an example query that works fine is:
Code:
UPDATE `vb_usergroup` set signaturepermissions = 237567 where usergroupid IN (11, 12, 15, 16, 17, 18, 19, 21)
However I need to do that over about half of the columns in the vb_usergroup table and can't sacrifice the time to execute the individual queries manually. I need to be able to write one query that will select the appropriate column permissions on all the rows and apply them across all of the imported user groups so that I won't get failures on importing avatars and signatures on the users. I need to figure this out fast as I'm supposed to pull off this upgrade about 13 hours from now. While I can do the queries individually for each column, the time required to do this over the entire usergroup table will exceed the performance expectations on the upgrade. Besides, typing all that stuff out gets boring.


If anybody can throw some bait my way, I'd apprecciate it.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 04:59 PM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML