Skip to content

'php artisan panel:install' should check the schema #387

@Anton-V-K

Description

@Anton-V-K

Migration scripts should check the DB schema, before trying to make changes.
For instance, if Spatie is installed, the DB already contains roles table.
And installation fails:

Migrating: 2015_03_15_123956_edit_url_table
Migrated:  2015_03_15_123956_edit_url_table
Migrating: 2016_02_10_181651_create_roles_tables

   Illuminate\Database\QueryException  : SQLSTATE[42S01]: Base table or view already exists: 1050
 Table 'roles' already exists (SQL: create table `roles` (`id` int unsigned not null auto_increment primary
 key, `name` varchar(255) not null, `label` varchar(255) null, `created_at` timestamp null, `updated_at`
 timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

Please, update the instruction. It contains the broken link https://github.com/docs/master/crud-commands .

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