Skip to content

Migration issue OC 5.0.14a -> OC 5.0.15rc1 -> OC 6.0.2rc1 #7415

@PVince81

Description

@PVince81

Steps to reproduce

  1. Install OC 5.0.14a from scratch (use MariaDB/MySQL)
  2. Upload a few files, create shares, run a search (for file index), but I think it's not needed
  3. Upgrade to OC 5.0.15rc1
  4. Upgrade to OC 6.0.2rc1

Env

DB: MariaDB/MySQL
Server OS: openSUSE 13.1 x86_64

The following occurs:

An exception occurred while executing 'ALTER TABLE `oc_privatedata` CHANGE user `user` VARCHAR(255) DEFAULT '' NOT NULL, CHANGE app `app` VARCHAR(255) DEFAULT '' NOT NULL, CHANGE key `key` VARCHAR(255) DEFAULT '' NOT NULL, CHANGE value `value` VARCHAR(255) DEFAULT '' NOT NULL': SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key `key` VARCHAR(255) DEFAULT '' NOT NULL, CHANGE value `value` VARCHAR(255) DE' at line 1
MariaDB [owncloud2]> describe oc_privatedata;
+-------+------------------+------+-----+---------+----------------+
| Field | Type             | Null | Key | Default | Extra          |
+-------+------------------+------+-----+---------+----------------+
| keyid | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| user  | varchar(255)     | NO   |     |         |                |
| app   | varchar(255)     | NO   |     |         |                |
| key   | varchar(255)     | NO   |     |         |                |
| value | varchar(255)     | NO   |     |         |                |
+-------+------------------+------+-----+---------+----------------+
5 rows in set (0.00 sec)

Doctrine mess up ?

CC @bantu @icewind1991 @karlitschek @DeepDiver1975

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions