-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbugneeds info
Milestone
Description
Steps to reproduce
- Upgrade from OC 10.5.0 to NC 21.0.0beta2 by replacing the source code and keeping config and data
- Run
occ upgrade=> no errors - Run
db:convert-filecache-bigint
Expected behaviour
Success
Actual behaviour
Error about missing columns "oc_share_external.parent"
Missing columns
Expected from NC 21.0.0beta2
MariaDB [nextcloud_beta]> describe oc_share_external;
+-----------------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------+------+-----+---------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| parent | bigint(20) | YES | | -1 | |
| share_type | int(11) | YES | | NULL | |
| remote | varchar(512) | NO | | NULL | |
| remote_id | varchar(255) | YES | | | |
| share_token | varchar(64) | NO | | NULL | |
| password | varchar(64) | YES | | NULL | |
| name | varchar(64) | NO | | NULL | |
| owner | varchar(64) | NO | | NULL | |
| user | varchar(64) | NO | MUL | NULL | |
| mountpoint | varchar(4000) | NO | | NULL | |
| mountpoint_hash | varchar(32) | NO | | NULL | |
| accepted | int(11) | NO | | 0 | |
+-----------------+---------------+------+-----+---------+----------------+
Actual
MariaDB [owncloud]> describe oc_share_external;
+-----------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------------+------+-----+---------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| remote | varchar(512) | NO | | NULL | |
| share_token | varchar(64) | NO | | NULL | |
| password | varchar(64) | YES | | NULL | |
| name | varchar(64) | NO | | NULL | |
| owner | varchar(64) | NO | | NULL | |
| user | varchar(64) | NO | MUL | NULL | |
| mountpoint | varchar(4000) | NO | | NULL | |
| mountpoint_hash | varchar(32) | NO | | NULL | |
| remote_id | varchar(255) | NO | | -1 | |
| accepted | int(11) | NO | | 0 | |
| lastscan | bigint(20) unsigned | YES | | NULL | |
+-----------------+---------------------+------+-----+---------+----------------+
=> need to:
- add "parent" column
- remove "lastscan" column
- PR for share_external here: Add migration for oc_share_external columns #24829
@juliushaertl not sure how these were missed, maybe some of the migrations did not run
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbugneeds info