Opened 16 years ago
Closed 16 years ago
#7627 closed defect (bug) (fixed)
Upgrade performed with empty database creates database
Reported by: | pishmishy | Owned by: | pishmishy |
---|---|---|---|
Milestone: | 2.7 | Priority: | high |
Severity: | major | Version: | 2.6.1 |
Component: | General | Keywords: | install upgrade database has_patch |
Focuses: | Cc: |
Description
An upgrade process performed before the user has initialized the WordPress install causes database tables to be created. This then prevents the user from running the setup process, locking them out. To reproduce:
- Install WordPress but don't run through the installation pages at http://foo.com/wp-admin/install.php
- Run the upgrade process at http://foo.com/wp-admin/upgrade.php
- Database tables have been created, preventing the install process from running, the user table is empty.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Attached patch won't allow an upgrade if get_option('db_version') is undefined. I am of course, presuming that this is a useful way of detecting an empty database.