Kavacky Posted August 18, 2014 Report Share Posted August 18, 2014 Maziņai sludinājumu sadaļai hardcode laukus, nevis kaut kādas tabulas ar iespējām. Overkill, LOL. Quote Link to comment Share on other sites More sharing options...
Val Posted August 18, 2014 Report Share Posted August 18, 2014 Pasūtītājs pats vēl nezin, cik daudz un dažādu lauku būs. Tāpēc tā... Quote Link to comment Share on other sites More sharing options...
Joyride Posted August 19, 2014 Report Share Posted August 19, 2014 Sākums ir OK, tikai vajag vēl šīs lietas: Pie tabulas "classifieds_attributes" jauns lauks "attribute_data_type", kurš norāda datu tipu (int, string, text, bool, ...) Un "classifieds_values" lauks "attribute_value" iet ārā, tā vietā attiecīgi saliec "attribute_value_int", "attribute_value_string", ... Atkarībā no classifieds_attributes.attribute_data_type selektē vajadzīgo attribute_value_* lauku. Quote Link to comment Share on other sites More sharing options...
codez Posted August 19, 2014 Report Share Posted August 19, 2014 Šeit noteikti daudzas problēmas varētu atrisināt kāda bez shēmas db, piemēram mongodb vai elasticsearch. Quote Link to comment Share on other sites More sharing options...
Val Posted August 23, 2014 Report Share Posted August 23, 2014 Paldies, domāsim. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.