-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Package version, Laravel version
laravel/framework v5.4.28 The Laravel Framework.
laravel-doctrine/orm 1.3.6 A Doctrine ORM bridge for Laravel 5
laravel-doctrine/migrations 1.1.5 Doctrine Migrations for Laravel
Expected behaviour
php artisan doctrine:migrations:reset
should reset the database... but instead it drops the migrations table first... ?
Actual behaviour
php artisan doctrine:migrations:reset
[Doctrine\DBAL\Exception\TableNotFoundException]
An exception occurred while executing 'ALTER TABLE migrations ENABLE TRIGGER ALL':
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "migrations" does not exist
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "migrations" does not exist
[PDOException]
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "migrations" does not exist
Steps to reproduce the behaviour
setup a new app using postgres as the datasource...
create a few entities
use php artisan doctrine:migrations:diff to create a migratino
migrate the table
php artisan doctrine:migrations:migrate
then try and reset:
It will fail because it seems like it drops the migrations table ?
If I look at my database afterward... all my database tables still exist except the migrations table.
Also... reset doesn't something similar.
If I migrate and rollback manually everything works fine... it's only the reset or refresh commands that don't work for me.
NOTE: Did some further testing tonight, and Everything works fine with mysql... but reset, refresh are both broken for Postgres...