Skip to content

Upgrade from 0.27.5 to 0.30.2 causes error with php artisan migrate #2317

@thelastpsion

Description

@thelastpsion

Describe the bug
When upgrading from 0.27.5 to 0.30.2, I get the following error when running php artisan migrate:
Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'id'; check that column/key exists (SQL: alter table `joint_permissions` drop `id`)

Steps To Reproduce
Steps to reproduce the behavior:

  1. Have installation of 0.27.5
  2. Attempt upgrade using git pull origin release && composer install --no-dev && php artisan migrate

Expected behavior
Completion of migration to 0.30.2

Screenshots
image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.30.2 (from 0.27.5)
  • PHP Version: 7.2.33
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
Add any other context about the problem here.

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