Yo, I''ve been fighting with the converter script for ''round about 3 hours now. It all looks easy enough, but the old instiki libraries (which are included along with madeleine) create a namespace conflict with the AR models. I haven''t found a way around this yet. There are two options that I can think of. First is to use raw SQL in the converter script. I don''t like this plan very much but it''d probably work. Option two is a two-phase converter. Phase one pulls all the data out of Madeleine storage, serializes it, and dumps it into some kind of file. YAML or something. Phase two comes through and inserts it into AR. While we could probably cram that into one file, I don''t see a way to get it to run at once (the namespaces will still collide). At this point I''m too frustrated to make any more progress tonight. I can bust out the raw SQL converter in not very long. If that''s desired, let me know and I''ll do it in the morning. Otherwise, we should try to figure out what we''re going to do. Ben ps- I tried, I swear :( I''m really unhappy about this.
Ben Bleything wrote:>I''ve been fighting with the converter script for ''round about 3 hours >now. It all looks easy enough, but the old instiki libraries (which are >included along with madeleine) create a namespace conflict with the AR >models. I haven''t found a way around this yet. > >There are two options that I can think of. First is to use raw SQL in >the converter script. I don''t like this plan very much but it''d >probably work. > >I think, let''s have raw SQL version, and if it gives us any pains (which I don''t really expect), we can always switch over to the two-phased aproach, which is how migrations are normally done in the enterprise world. Flat file export => inspection => data conversion > inspection => import to the new system. Having an inspectable export file is Good Thing (TM). So, I''d say - please make it spit out raw SQL to a file. Re timezones - mine is MDT (Calgary). If I''m not mistaken, this means 1 hour ahead of PDT, doesn''t it? Alex
On Tue, Aug 16, 2005, Ben Bleything wrote:> Yo, > > I''ve been fighting with the converter script for ''round about 3 hours > now. It all looks easy enough, but the old instiki libraries (which are > included along with madeleine) create a namespace conflict with the AR > models. I haven''t found a way around this yet.I think I might have a solution for this that will allow a single-phase converter. I have to leave right now but I''ll try it this evening. If I can''t get it to work tonight, I''ll check in the two-phase tomorrow, I''ve been working on it off-and-on all week. Ben