Drive plugin install

0

INFARMED IP
Added 17 days ago

Hi,
I'm trying to install the drive plugin on Redmine version 5.1.1, but the following error occurs:
"...
1 CreateDriveEntries: migrating ==========================================
-- create_table(:drive_entries, {:options=>"ENGINE=InnoDB", :id=>:integer})
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Column `project_id` on table `drive_entries` does not match column `id` on `projects`, which has type `int(11)`. To resolve this issue, change the type of the `project_id` column on `drive_entries` to be :integer. (For example `t.integer :project_id`).
Original message: Mysql2::Error: Can't create table `redmine`.`drive_entries` (errno: 150 "Foreign key constraint is incorrectly formed")
..."
"...
Caused by:
ActiveRecord::MismatchedForeignKey: Column `project_id` on table `drive_entries` does not match column `id` on `projects`, which has type `int(11)`. To resolve this issue, change the type of the `project_id` column on `drive_entries` to be :integer. (For example `t.integer :project_id`).
Original message: Mysql2::Error: Can't create table `redmine`.`drive_entries` (errno: 150 "Foreign key constraint is incorrectly formed")
..."
"...
Caused by:
Mysql2::Error: Can't create table `redmine`.`drive_entries` (errno: 150 "Foreign key constraint is incorrectly formed")
..."

Any idea how to solve it?

This is the environment

Environment:
Redmine version 5.1.1.stable
Ruby version 3.1.2-p20 (2022-04-12) [x86_64-linux-gnu]
Rails version 6.1.7.6
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Git 2.39.2
Filesystem
Redmine plugins:
redmine_agile 1.6.8
redmine_checklists 3.1.23
redmine_ckeditor 1.2.4
redmine_drive 1.2.1
redmine_xlsx_format_issue_exporter 0.2.1

Thanks
Carlos Baptista