this time i was successful, thanks in large part to the development of the sql/mysql/upgrades file.
however one thing that was missing from it, that i added was the line:
INSERT into users_hits (uid) select uid from users;
which was the last touch to ensure that previous users were imported.
the rest was fairly straight forward, with various tinkering needed, but nothing too serious. outside of the obvious; which is ensuring proper configuration (especially of topics and sections), the main thing i'm going to focus on now is the use of sections and subsections. i'm hoping this will allow me to collapse a few slash sites into one.
so i took it upon myself to attempt an upgrade, thanks in large part due to the existence of the sql/mysql/upgrades file. the problem however, was that there's a gap between where 2.2.5 left off, and the upgrades file began. so another purpose of my travails was to try and induce the schema that's missing.
my model for the upgrade was the file utils/slash2toslash2.2 which i had used and loved when upgrading from 2.0 to 2.2.
so i started by backing up the files, templates, and sql dump for the old site. i then proceeded to install a fresh slash install this time using the cvs version. it seemed much saner to me to start with a fresh install, and then import the data, rather than try and impose it over the old.
the tables in the old site that i figured i should in some way be interested in were: blocks, comment_text, comments, discussions, pollanswers, pollquestions, section_topics, sections, stories, story_text, story_param, templates, topics, users*, and vars. i then proceeded to run all of the sql upgrades from the sql/mysql/upgrades file to my old sql. in my mind this was a way to help the data get ready for the attempted transplant. once that was done i one by one inserted the old db table data into the new slash db.
now mind you, i was being selective about what i wanted to import. i didn't keep all blocks, and i didn't really care about things like the abusers table. however there were some problems, and some omissions from the ugprades file. the obviouis sql changes that i noticed were not in upgrades:
ALTER TABLE blocks ADD rss_template varchar(30) default NULL;
ALTER TABLE blocks ADD items smallint(6) NOT NULL default '0';
ALTER TABLE pollquestions ADD flags enum('ok','delete','dirty') NOT NULL default 'ok';
the import of the few blocks i wanted to keep was tricky, and i found i had to move the fields around a little to make them work. the real trouble however was with the users*.
the first thing i noticed was the lack of users_hits in the ugprade notes, and yet this seems to me to be a key part of why/how users* runs into trouble. i did however note this reference later in the upgrades file:
ALTER TABLE users_hits ADD COLUMN hits_bought_today SMALLINT UNSIGNED DEFAULT 0 NOT NULL AFTER hits_bought;
so i had to create users_hits, and then apply this sql statement. i also found i had to run:
ALTER TABLE users_info add people blob;
although in the end i was unable to really get the users* working, which really, was the most valued part of the upgrade for me. i sent an email to the slash-devel list and ericdano replied indicating he had the same experience during his attempted upgrade.
mind you i've still been playing with the new site, learning about the new release, playing with the templates, sections, etc. yet the users* still doesn't work. all the old users can log in, but don't stay logged in, new users can create an account, but as admin i cannot grant seclev or author access to other users. so i've still got some debugging ahead.
i made this attempt a few days ago, took some time to reflect, i've now written up this journal entry, and then perhaps from here i'll continue on to working on this users* problem.
Update:after posting this journal entry, peloy pointed out that tf23 had submitted a patch for the upgrades file to sourceforge. yipee. will have to try again
alas, i've got my eye on cvs again, and i'm getting eager to jump. there seems to have been a lot of changes, as well as the addition of some new plugins. with this in mind, rather than focus on releasing for 2.2.x, we're gonna start working on 2.3/4, first with upgrades, then by releasing a theme and plugin or two. cause i have a number of 2.2.x sites that would benefit from an upgrade, i'm gonna first focus on what is involved in such a task/migration.
i finally got all of my slash sites upgraded to the lastest cvs code. there are still a few bugs here and there, but everything seems to have worked relatively painlessly. now i can take some time to setup a few new slash sites, a couple for clients, and one for my home (icecast based) radio station