cachet: SQLSTATE[HY000]: General error: 17 database schema has changed
Before submitting your issue, please make sure that you’ve checked the checkboxes below.
- I am running the latest release version of Cachet.
- I am running at least PHP 5.5.9. You can check this by running
php -v. - I have ran
rm -rf bootstrap/cache/*.
Expected behaviour
The Install script works.
Actual behaviour
The install script fails with these errors:
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Copied Directory [/vendor/roumen/feed/src/views] To [/resources/views/vendor/feed]
Publishing complete for tag []!
Migration table created successfully.
[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 17 database schema has changed (SQL: insert into "migrations" ("migration", "batch") values (2015_01_05_201324_CreateComponentG
roupsTable, 1))
[PDOException]
SQLSTATE[HY000]: General error: 17 database schema has changed
Steps to reproduce
- touch storage/database.sqlite
- chmod 777 storage/database.sqlite
- run php artisan app:install
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (14 by maintainers)
This is now fixed.
Okay, it seems to be a bug specifically with
php artisan app:install. You can runphp artisan migrateto get migrations working.I just ran into the same issue on a vagrant homestead VM I had set up for a previous Laravel project. I was able to get running by:
My details: