|
From: | David R Newman |
Subject: | RE: [Myexperiment-discuss] install trouble on centos 4.5 machine --- any help? |
Date: | Wed, 20 Aug 2008 00:28:42 +0100 |
Hi Matt, The error is caused by trying to remove a table that is not
currently in the database. What was the state of you database
before you ran rake db:migrate? If it is a blank (i.e. tables with no
data) database or you are not worried about the data in the database you can run
the following commands: rake db:migrate VERSION=0 rake db:migrate This should avoid any errors because you won’t have
a database that is not at a specific version of migration. If you
don’t want to lose your database data, you can hack it by creating a
temporary sitealizer table manually at the mysql command line with the
following create table statement: CREATE TABLE `sitealizer` ( `id` int(11) NOT NULL auto_increment, `path` varchar(255) default NULL, `ip` varchar(255) default NULL, `referer` varchar(255) default NULL, `language` varchar(255) default NULL, `user_agent` varchar(255) default NULL, `created_at` datetime default NULL, `created_on` date default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Then you should be able to run rake db:migrate without
error, as it will have a sitealizer table it can remove. Hope this helps. If you are still having problems, please email
back. Regards David Newman myExperiment Team Member From:
address@hidden
[mailto:address@hidden On
Behalf Of Matthew Links . I'm trying to install myExperiment on a centOS 4.5 machine
and I'm hitting a problem. rake db:migrate I'm getting an error about sitealizer
(see end of message) No virus
found in this incoming message. |
[Prev in Thread] | Current Thread | [Next in Thread] |