Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
update.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Dec 2010 at 09:34 UTC
Updated:
27 Apr 2012 at 04:32 UTC
I was able to upgrade from beta 1, 2 and 3 just fine but with the same database I am now unable to upgrade to rc1. On my initial update.php run I get the following error:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mostrey.main_system' doesn't exist: SELECT name, schema_version FROM {system} WHERE type = :type; Array ( [:type] => module ) in drupal_get_installed_schema_version() (line 151 of /Applications/MAMP/mostrey/includes/install.inc).
It's obvious the main_system table doesn't exist yet, that's why I'm running update.php in the first place.
Comments
Comment #1
int commentedIf you can update Drupal 6 to Drupal 7 B1/B2/B3, but you can't update Drupal 6 to Drupal 7 RC1 it's a regression.
This bug is critical.
Change to dev for this
Comment #2
carlos8f commentedsubscribing
Comment #3
Stevel commentedThe system table exists in drupal 6 as well. I assume main_ is the prefix you are using? Not sure what is going on here yet. Can you give some more information regarding your setup?
Comment #4
Stevel commentedand tagging
Comment #5
bfroehle commentedThis some sort of table prefix error. I'm curious what
$databasesis set to in settings.php & default.settings.php. Are table prefixes being used in the database or not?Comment #6
bfroehle commentedx-post
Comment #7
wmostrey commentedYou are correct, it was a prefix issue. During this new migration I malconfigured settings.php. All is good now.
Comment #9
mcfilms commentedThis is a related issue -- For my own information, you cannot go back to Drupal 7.0-rc2 once you have updated to the latest Drupal 7.x-dev? If so, I guess I'm hosed.
Comment #10
icecreamyou commentedFor the record, I had this issue while upgrading a site using Acquia Dev Desktop for D7. I had imported a D6 sql dump that used database prefixes and it was working fine on D6. After replacing the files with D7 and navigating to update.php I got this error. The reason is because Dev Desktop adds a $database array to all settings.php files at the bottom, which overrides database settings at the usual location. However, this didn't interfere with D6 because D6 uses $db_url and $db_prefix. Once I added my prefix to the $database array that Dev Desktop had generated, the error disappeared. It's possible that Dev Desktop actually has problems importing prefixed databases for Drupal 7 -- I haven't tested that. Anyway, pretty edge-case, and easily resolved if you know the cause.