Skip to content

Error after Update #4336

Closed
Closed

Description

@bforpc

Turned on maintenance mode
Failed to update database structure (MDB2 Error: unknown error, _doQuery: [Error message: Could not execute statement] [Last executed query: ALTER TABLE oc_locks CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, CHANGE timeout timeout INT UNSIGNED DEFAULT 0, CHANGE created created BIGINT DEFAULT 0, CHANGE scope scope TINYINT DEFAULT 0, CHANGE depth depth TINYINT DEFAULT 0] [Native code: 1068] [Native message: Multiple primary key defined] )

The update was unsuccessful. Please report this issue to the ownCloud community.

Activity

  1. bforpc commented on Aug 7, 2013

    @bforpc
    Author

    Ok... so what can i do?
    Ihave manually executed this SQL statemenst like in issue 4085 described:
    ALTER TABLE oc_locks DROP PRIMARY KEY;
    ALTER TABLE oc_queuedtasks CHANGE id id INT( 11 ) NOT NULL;
    ALTER TABLE oc_queuedtasks DROP PRIMARY KEY;
    ALTER TABLE oc_vcategory CHANGE id id INT( 11 ) NOT NULL;
    ALTER TABLE oc_vcategory DROP PRIMARY KEY;

    I get now an emty page with this error:

    Failed to upgrade "calendar". Exception="Failed to update database structure (MDB2 Error: unknown error, _doQuery: [Error message: Could not execute statement] [Last executed query: ALTER TABLE oc_calendar_objects RENAME TO oc_clndr_objects, CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, CHANGE calendarid calendarid INT UNSIGNED DEFAULT 0 NOT NULL, CHANGE startdate startdate DATETIME DEFAULT '1970-01-01 00:00:00', CHANGE enddate enddate DATETIME DEFAULT '1970-01-01 00:00:00'] [Native code: 1068] [Native message: Multiple primary key defined] )"

    Jan

  2. DeepDiver1975 commented on Aug 7, 2013

    @DeepDiver1975
    Contributor

    the remaining problem is related to the calendar -> please report this issue in the calendar repo. THX

  3. locked as resolved and limited conversation to collaborators on Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions