2006-05-14, 04:13 AM
Hello.
Image an "ETC" field in some tables e.g members, posts, forums, anouncements, favorites, threads,.......
that makes adding a "field" easier to that record.
Yes just one field for adding many fields.
times and times in source code objects of a forum 4example a thread or a user , or a forum , fetched from DB as an "ARRAY" if we fetch them as before but fetch "ETC" field as a "seriaized string" we can insert an array that have many fields in it and we have no need to change db structure for just a little change.
Image you are a plug-in writer that want to add a "Description" for all of threads. if you want to do standard you have to 1-change dbstructure for adding a "desc" field 2-use a low priority existing field e.g. "notes" in threads table, 3-unserialize existing "ETC" and add a "desc" => "notes description" to it and re serialize it and update record.
IS NOT 3nd metod easier? ofcourse.
I can provide more infos for this trick "from what we need to do and where we should and what is changes in next version tooo analizing compatiblity and even how can implement it in admin area and normal scripts?"
as i know we have not many time to arriving 1.2, so i offer that if 1.2 have db struct changing, it include a etc field with larg capacity in it and we will implement this feature next vers.
Whats Your Idea?
Image an "ETC" field in some tables e.g members, posts, forums, anouncements, favorites, threads,.......
that makes adding a "field" easier to that record.
Yes just one field for adding many fields.
times and times in source code objects of a forum 4example a thread or a user , or a forum , fetched from DB as an "ARRAY" if we fetch them as before but fetch "ETC" field as a "seriaized string" we can insert an array that have many fields in it and we have no need to change db structure for just a little change.
Image you are a plug-in writer that want to add a "Description" for all of threads. if you want to do standard you have to 1-change dbstructure for adding a "desc" field 2-use a low priority existing field e.g. "notes" in threads table, 3-unserialize existing "ETC" and add a "desc" => "notes description" to it and re serialize it and update record.
IS NOT 3nd metod easier? ofcourse.
I can provide more infos for this trick "from what we need to do and where we should and what is changes in next version tooo analizing compatiblity and even how can implement it in admin area and normal scripts?"
as i know we have not many time to arriving 1.2, so i offer that if 1.2 have db struct changing, it include a etc field with larg capacity in it and we will implement this feature next vers.
Whats Your Idea?