Follow me as I journey down a shaky path.
Goal: I am moving some cck fields off of a Quote Node down into the experimental/abandoned/phantom project content_multigroup* whilst keeping the values from the database. It is to be done with a combo of Feature revert and hook_update_n.
Plan: Leveraging the fact that reverting to Feature code with fields missing (removed) from Drupal/database does not in fact drop the db columns from the content_type_<type> table structure, I should be able to:
- Add multigroup and the new fields
-
Update the Feature export:
<code>drush fu thefeature -y</code> -
Manually edit the Feature export code to let it forget about the fields to be removed.
Delete lines like <code>features[content][] = "quote-field_quote_installation"</code> from thefeature.info
Delete the corresponding field definitions from thefeature.features.content.inc -
Shake up my local dev and have Drupal (but not the db!) forget about these fields:
<code>drush fr thefeature --force -y</code>
(This simply gets code == Drupal config. Note, Drupal will still smell these fields and tell you so.) -
Perform copy of existing field data as SQL UPDATE of automatically seeded NULL record corresponding multigroup data with delta 0
There already exist 0 - NULL records for every node in the system that uses this multigroup field. - .. TBD: Maybe use content_field_instance_delete() to optionally remove the now orphaned, earlier db columns
It's a work in progress. Holler back (contact form best, bc I get so many adoring comment spammer fanmail) if you want to hear more and it looks like I forgot to post results!
* I say "phantom" because while the d.o project page is no more, you can still do a <code>drush dl content_multigroup</code>. Further, between our initial pull a few weeks ago and now, some changes were introduced to the pulled code!
UPDATE: Don't do this. It's way too easy another way!
On a hare, I gave the ol' drag the field from node-proper into my new multigroup fieldgroup. Hit save, got a message that said, "Hey, you're moving a field into multigroup. I've gone an updated the database for you."
Jaw dropped.. Dubious, I feature-updated my Feature, checked the code, was surprised to see so little changed.. reverted the database for testing (and yes, I deleted the newly created content_field_.... that was created by moving the field in the Manage Fields UI), and feature-reverted: Wouldn't you know it! THE FIELDS MOVED THEMSELVES-- DATA AND ALL!!
Awesome. (kicking myself)
Considerations:
(kicking myself some more)
Man this is dumb.
Man this is dumb.
Hey
I want to know if we really can do that..Can anyone explain me a bit more about it??? Thanks in advance..well pumps
Hi
hey I am here because of the same reason..I also want to know how exactly this thing works..reverse phone lookup
you will find for sure more
you will find for sure more information. I am sure that this won't be a problem for you! This is a great site with many resources yacht charter Croatia
you have nice things planned,
you have nice things planned, how many of them did you fulfill till now? Drupal developed very nicely in the past few years, keep up the good work
Denis from mallorca property
indeed... it is an
indeed... it is an interesting schedule. Maybe I will follow your tips, too. I am sure that I will have excellent results. elan impression 434
No subject
Thanks from aquarius qualities
AMAZING
Blogs are good in which we get lots of information and convert that information to knowledge.
Writing an Essay || Coursework Help Online || UK University Essays || Do My Assignment || Help With C++ assignment || Statistics Help || Cover Letter Service || Essay Editing || Graduation Thesis || Cv Editing || Scholarship Essay
Conair compact fabric steamer
Conair compact fabric steamer compared to an iron uses steam to straighten out clothes, it gently relaxes the fibres and this is done by pressing down the steamer and releasing steam at the same time, on the other hand an iron uses heat and it flattens fibres by pressing down the iron on the cloth and moving it several times to straighten the cloth. The iron process is less gentle and is time consuming compared to the clothes steamer. jogos online
Thank you very much for the
Thank you very much for the update. It saved us a lot of hassle and time, at least for one of ouz websites. By now im working on a non drupal based site named Bestellen auf Rechnung, visit and drop me a comment if you like. I would appreciate it!
Best regards
Flo
The reason for the comparison
The reason for the comparison is so as to highlight the benefits of using a steamer other than an iron. The steamer is efficient, energy saving and less time consuming meaning since you will spend less time straightening out a cloth it will use less electricity. bavaria 50 cruiser
Decent completely satisfied
Decent completely satisfied very much alike certain due to all my operation. I prefer towards opened your posts, most are breathtaking & beneficial to realize.
warcraft 3 cheats
seems to be easy to do it. I
seems to be easy to do it. I will try to do it myself and I will be back with a review. yacht charters
I was very encouraged to find
I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.Amlodipine Besylate
Under Armour Coldgear
Under Armour Coldgear
Whether desirable results can be achieved for youth development indeed depends on the support and efforts of all of us.May peace and love fill your heart, beauty fill your world, and contentment and joy fill your days!
Keep it up.
Really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
Logo Design Contest
UPDATE: I'm so wrong. The fields aren't seeded.. need INSERT.
Another quick update: Merely reverting the Feature does not in fact seed 0-3 delta values for my multigroup. I did find that suspicious.. What really happened was in testing, I neglected to drop the tables: my sql-dump checks for existence but of course never drops first.
So: That "Hey you can just do a complicated UPDATE" should really go rigth back to "Hey, do INSERTS as earlier thought." Better yet, see my other comment here and do it the easy way. If you're rearchitecting, you might want to rename your fields, but that's the only thing gained by doing it manually.
Software Akuntansi
Thanks for sharing .. :)
welcome here
Swiss has got constantly ended up the principle with enjoy having. Typically the louis vuitton looks after implementing over and above data files is actually hundreds of years long, as well as bequeathed individuals necessary realizing to end up being the pioneers in the business.
http://www.ec21watches.com/
http://www.gonna2watches.com/
There are very few persons
There are very few persons who write so well like you. Your writing style is unique, simple and understandable. I have already read so much on this topic but your article is the best. limo service washington Dc
Another quick update: Merely
Another quick update: Merely reverting the Feature does not in fact seed 0-3 delta values for my multigroup. I did find that suspicious.. What really happened was in testing, I neglected to drop the tables: my sql-dump checks for existence but of course never drops first. yachtfinder
Really appreciate this
Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this.
Dermatend
so now the fields are in core
so now the fields are in core in Drupal 7? are the same fields you're talking about in this article? yacht charter Cyclades
The reason for the comparison
The reason for the comparison is so as to highlight the benefits of using a steamer other than an iron. The steamer is efficient, energy saving and less time consuming meaning since you will spend less time straightening out a cloth it will use less electricity.
The Differences
A clothes steamers works best on clothes made out of silk or wool, while an iron it best for straightening out garments made of cotton. As I mentioned earlier the clothes steamer utilizes steam to relax fibres and remove creases while the iron uses heat for the same function. jogos de carros
Hi Great website thanks for
Hi Great website thanks for all the great information on your website it is very informative keep up the great work
mcp exam
mcse exam
mcitp exam
mcts exam
microsoft exam
a+ exam
security+ exam
network+ exam
thanks
Thanks for the awareness. Quality subject to dwell upon.
I used to be more than happy
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.
JK0-016 dumps
1z0-052 dumps
1z0-047 dumps
70-293 dumps
70-663 dumps
70-271 dumps
1z0-042 dumps
642-832 dumps
Thank, the step-by-step
Thank, the step-by-step instruction is very helpful, especially for such a begginer as I am.
__________
Nick from google android development
Great Move
Great Move with nice goals and plans! Go ahead!!
Check our page for regular updates on technology & Social media! http://techteric.com
Re
Options like the one you described adeptness will be finish valuable to me! I will change a claim to this anthology on my site. I am associated my readers will accumulation that finish useful.mensagens de aniversario
Re
Awesome! I wonder if that qualifies as penguin formal or penguin casual? Thanks for hunting down the shot and posting it. A very cool mensagens de amizade
Excellent, but not full
Excellent, but not full enough! I would like to see a practical guide, more information on CASE-tools
Tory Burch Outlet
A few Burberry outleTory Burch Outlet stores think about their bag to become a system intended for security as they may perhaps carry Tory Burch Flatsnearly anything from your system to lighting
Hello,I love reading through
Hello,I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. personal statement ucas
Thanks
I am new to all of these stuffs and this thread has been very helpful. I'm still learning all I can about Drupal. I'll try this one and see how it works. Thanks again.
Michelle J. Beverage
does proactive really work
obat herbal penyakit
thanks for information...
Obat Herbal Penyakit
gs
I love this band! wow can´t believe I found your blog, is really hard to find info about them, maybe you can belive me but I have spent a lot of hours searching on biggest search engines and couldn´t find anything uhaul sikis porno porno sikis porno sikis pornoporno sikis porno porno, porno, porno, porn, sikis porno, porno, porno, porno sikis porno sikis porno porno porn sex porn porno porno porn porno sikis, sikis, sikis, porn, sikis sikis, sikis, sikis, sikis sikis sikis sikis sikis sikis porn sex porn sikis sikis sikis sikis I appreciate your work, the post is really helpful. I found so many interesting stuff in your blog especially its discussion. It’s some pretty great info, I appreciate the information you provided is excellent post. mynet dizi dizi fragman For your mental vitamins, You don’t have to worry about any procera avh scam claims, because there are none, the product is legitimate, and I’m about to explain it in detail below for you. Thanks Adminsrator dizi, fragman , chat mynet kadin Kurtlar Vadisi Pusu izle, Kurtlar Vadisi Pusu Son Bölüm izle
masini de inchiriat
I find the information in this article extremely useful to my knowledge. masini de inchiriat
Coach Outlet Online Brown
Coach Outlet Online Brown Symbol Handbag in
Coach Factory Outlet Online is made of the symbol fabric pattern,and black leather bottom.There are the cellphone and multifunction porkets inside.The
Coach Factory Store is designed simply,but it is generous.
Coach Factory Outlet Signature Top Handbag in
Coach Factory is made of the kristin signature designed leather,this is a new style,
Coach Diaper Bag Outletthe handle is short.
burberry outlet
who burberry outlethas been burberry saleprecisely the same time seeing that the girl daughter Winston. People divorced eventuallyBurberry Outlet Online. Jennie's thirdly wedding appeared
Gangaur Realtech is a
Gangaur Realtech is a professionally managed organisation specializing in real estate services where integrated services are provided by professionals to its clients seeking increased value by owning, occupying or investing in real estate.
property consultants
New plots in gurgaon
bestech grand spa
bestech ananda
New project gurgaon greens
emaar mgf palm hills gurgaon