Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

laotan (203)

  (email not shown publicly)

Journal of laotan (203)

Tuesday September 03, 02

successful upgrades to cvs branch

07:41 AM
Tips and Tricks
so after what felt like a rather rapid summer, this labour day weekend i was finally able to put aside some time to again attempt an upgrade to the cvs branch.

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.

Wednesday June 26, 02

attempt at an upgrade to the current cvs branch

07:09 AM
so we run a number of different slash sites, the large majority of which running the 2.2.5 release. however i've setup and have been maintaining a few using the current cvs version of slash. the juxtaposition of the two has really enamored me to the cvs, and several times daily i pine to have all my sites running on the cvs (or at least the pre-2.3/4 code).

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:


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 :)

Wednesday June 12, 02

final thoughts on 2.2.5

03:15 PM
ironically enough the last time i made a journal entry it was as i upgraded to 2.2 from 2.0. in hindsight i have to say that 2.2.x has been a fairly steady stable ride. the sites i've run have had few bugs, and even less problems. we've done a number of small perl modifications, as well as stretch template design a fair bit from the "out-of-the-box" slashcode.

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.

Friday December 28, 01

finally upgraded all sites

02:53 PM
Slash Sites

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 :)

Friday July 27, 01

05:57 AM
Setup a site to showcase the slashcode work we've been doing, as well as offer hosting and consulting services. It's at