Both where up to date, schema_migrations->20080811132838 (is my last
migration) and plugin_schema_info->57
I did it twice with the same result (I drop the db and created again)
On Aug 27, 10:23 am, "Bruno Bornsztein" <[EMAIL PROTECTED]>
wrote:
> No clue... your schema version must not have been up to date. Look in
> plugin_schema_info and schema_migrations table to see where your migrations
> are at.
>
> On Wed, Aug 27, 2008 at 8:09 AM, Alejandro <[EMAIL PROTECTED]> wrote:
>
> > I pulled out the last version of CE and when I started the server in
> > development I saw this:
>
> > [COMMUNITY ENGINE] You have 1 pending CommunityEngine migrations:
> > CE is at 58, but you have only migrated it to 57
> > Please run 'script/generate plugin_migration' AND 'rake db:migrate'
> > before continuing, or you will experience errors.
>
> > I did that, but when I run 'rake db:migrate' it starts creating the
> > tables from the first!
>
> > $ rake db:migrate
> > (in c:/Documents and Settings/Ale/workspace/socialsnow_beta)
> > == 20080827130205 CommunityEngineToVersion58: migrating
> > =======================
> > == 1 CreateUsers: migrating
> > ===================================================
> > -- create_table("users", {:force=>true})
> > -> 0.2400s
> > == 1 CreateUsers: migrated (0.2400s)
> > ==========================================
>
> > == 2 AddActivationCodeToUser: migrating
> > =======================================
> > -- add_column(:users, :activation_code, :string, {:limit=>40})
> > -> 0.3010s
> > -- add_column(:users, :activated_at, :datetime)
> > -> 0.4110s
> > == 2 AddActivationCodeToUser: migrated (0.7220s)
> > ==============================
>
> > == 3 CreatePhotos: migrating
> > ==================================================
> > -- create_table(:photos)
> > rake aborted!
> > Mysql::Error: #42S01Table 'photos' already exists: CREATE TABLE
> > `photos` (`id` i
> > nt(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)
> > DEFAULT NULL
> > NULL, `description` text DEFAULT NULL NULL, `created_at` datetime
> > DEFAULT NULL
> > NULL, `updated_at` datetime DEFAULT NULL NULL, `user_id` int(11)
> > DEFAULT NULL NU
> > LL, `content_type` varchar(255) DEFAULT NULL NULL, `filename`
> > varchar(255) DEFAU
> > LT NULL NULL, `size` int(11) DEFAULT NULL NULL, `parent_id` int(11)
> > DEFAULT NULL
> > NULL, `thumbnail` varchar(255) DEFAULT NULL NULL, `width` int(11)
> > DEFAULT NULL
> > NULL, `height` int(11) DEFAULT NULL NULL) ENGINE=InnoDB
>
> > (See full trace by running task with --trace)
>
> > [EMAIL PROTECTED] ~/workspace/socialsnow_beta
> > $
>
> > Any clues?
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---