Currently the base schema migration assumes that the elastic_migrations table does not exist.
This is problematic when restoring a schema from a schema:dump with prune: php artisan schema:dump --prune
When you run php artisan migrate, Laravel restores the schema dump in database/schema which recreates tables like elastic_migrations.
It follows that the migrations table exists and is empty. Additionally, the elastic_migrations table exists and is empty.
Therefore, if you try to create and run a new migration, this library sees that 2019_15_12_112000_create_elastic_migrations_table.php does not exist in the migrations table and tries to create the elastic_migrations table. This causes an error because the table actually does exist. This is the error that is thrown:
Currently the base schema migration assumes that the
elastic_migrations
table does not exist.This is problematic when restoring a schema from a schema:dump with prune:
php artisan schema:dump --prune
When you run
php artisan migrate
, Laravel restores the schema dump in database/schema which recreates tables likeelastic_migrations
.It follows that the
migrations
table exists and is empty. Additionally, theelastic_migrations
table exists and is empty.Therefore, if you try to create and run a new migration, this library sees that
2019_15_12_112000_create_elastic_migrations_table.php
does not exist in the migrations table and tries to create theelastic_migrations
table. This causes an error because the table actually does exist. This is the error that is thrown: