Monday, April 10, 2017

laravel migration showing old error after removing all migrations and DB?

I have configured Laravel database config file to use postgres DB. First of all when I tried to run migration,I got error like [PDOException]
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "sales_default_calcula
tions" does not exist
LINE 1: select "id" from "sales_default_calculations" where "status"...
.

I moved all my migrations from database\migrations folder to database\migrations_bak and dropped the Database and created new one.I even created new Database with different name than before.However,I get same above error,when i run php artisan migrate.Even though migration files and DB is cleared its showing same old error message.What may have caused this anomaly ? please someone help.



via Flame

Advertisement