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

Error when running php artisan migrate:fresh for PostgreSQL in Laravel 8.10.0 #35017

Closed
grEvenX opened this issue Oct 28, 2020 · 3 comments
Closed

Comments

@grEvenX
Copy link

grEvenX commented Oct 28, 2020

When trying to migrate freshly using a DB schema dump from Laravel 8.10.0 you will get an error while using PostgreSQL.

I have pinned the error back to a fix that was introduced in here in this PR: #34711 (comment)_

The error output in the example case is:

The command "PGPASSWORD=$LARAVEL_LOAD_PASSWORD psql --file=$LARAVEL_LOAD_PATH --host=$LARAVEL_LOAD_HOST --port=$LARAVEL_LOAD_PORT --username=$LARAVEL_LOAD_USER --dbname=$LARAVEL_LOAD_DATABASE" failed.  
                                                                                                                                                                                                            
  Exit Code: 1(General error)                                                                                                                                                                               
                                                                                                                                                                                                            
  Working directory: /var/www/html                                                                                                                                                                          
                                                                                                                                                                                                            
  Output:                                                                                                                                                                                                   
  ================                                                                                                                                                                                          
  The input is a PostgreSQL custom-format dump.                                                                                                                                                             
  Use the pg_restore command-line client to restore this dump to a database.    
@taylorotwell
Copy link
Member

No recreation steps are listed in your issue...

@taylorotwell
Copy link
Member

Also have you updated to the latest 8.x release. There was a bug related to this fixed recently.

@taylorotwell
Copy link
Member

Sorry, this was fixed in a patch that hasn't released yet. It will release tomorrow.

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

2 participants