Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anton-V-K opened this issue Feb 26, 2019 · 0 comments
Open

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

Anton-V-K opened this issue Feb 26, 2019 · 0 comments

Comments

@Anton-V-K
Copy link

Anton-V-K commented Feb 26, 2019

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 .

@Anton-V-K Anton-V-K changed the title 'php artisan panel:install' fails 'php artisan panel:install' should check the schema Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant