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

It block all artisan commands in docker #122

Open
EsiNakesy opened this issue Dec 15, 2023 · 4 comments
Open

It block all artisan commands in docker #122

EsiNakesy opened this issue Dec 15, 2023 · 4 comments

Comments

@EsiNakesy
Copy link

EsiNakesy commented Dec 15, 2023

When I try to use it inside Docker and run Artisan commands, it always throws this exception:
`SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "pages" does not exist
LINE 1: select * from "pages"
^ (Connection: pgsql, SQL: select * from "pages")

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822
818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
819▕ );
820▕ }
821▕
➜ 822▕ throw new QueryException(
823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
824▕ );
825▕ }
826▕ }

1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Z3d0X\FilamentFabricator\FilamentFabricatorServiceProvider))
+12 vendor frames`
this error happened because of the codes inside bootingPackage()

@EsiNakesy
Copy link
Author

it seems there is no support for this package anymore :(

@ksimenic
Copy link
Contributor

@EsiNakesy did you run the migrations? It should be done via php artisan filament-fabricator:install if you followed the documentation properly.

@EsiNakesy
Copy link
Author

EsiNakesy commented Jan 30, 2024

@ksimenic it's completly diffrent topic, after you installed fabricator, if you try to move it from dev to prod since it considers that the page table is already exist you can not run migration or any other artisan command, so when docker try to build and run the services you will get an error that I mentioned. To replicate the issue:

  • install fabricator
  • remove the page table manually (also from migration table)
  • try to run migration to recreate the page table

@Z3d0X
Copy link
Owner

Z3d0X commented Feb 6, 2024

Could you share complete stacktrace / which line in FilamentFabricatorServiceProvider is throwing the error?

When I try to use it inside Docker and run Artisan commands, it always throws this exception: `SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "pages" does not exist LINE 1: select * from "pages" ^ (Connection: pgsql, SQL: select * from "pages")

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822 818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 819▕ ); 820▕ } 821▕ ➜ 822▕ throw new QueryException( 823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 824▕ ); 825▕ } 826▕ }

1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Z3d0X\FilamentFabricator\FilamentFabricatorServiceProvider)) +12 vendor frames` this error happened because of the codes inside bootingPackage()

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

3 participants