Export Action Table Creation - Bug?
I am trying to use the pre built export table action, I have followed the instruction to create the required migrations and exporter found here.
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#creating-an-exporter
I can add an action to a table and the process attempts to export but then fails and throws this error https://flareapp.io/share/VP6qJRem
I have looked at the migrations that have been run and it appears it has installed the Import tables but not the Export tables? Not sure if I have done something incorrectly here or if it is a bug?
INFO Running migrations.
2024_01_24_040457_create_job_batches_table ........................................................... 20ms DONE 2024_01_24_040508_create_notifications_table ......................................................... 11ms DONE 2024_01_24_040518_create_imports_table ................................................................ 9ms DONE 2024_01_24_040519_create_failed_import_rows_table ..................................................... 8ms DONE Thanks in advance for any help.
INFO Running migrations.
2024_01_24_040457_create_job_batches_table ........................................................... 20ms DONE 2024_01_24_040508_create_notifications_table ......................................................... 11ms DONE 2024_01_24_040518_create_imports_table ................................................................ 9ms DONE 2024_01_24_040519_create_failed_import_rows_table ..................................................... 8ms DONE Thanks in advance for any help.
Flare
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test.exports' doesn't exist (Connection: mysql, SQL: insert into
exports
(user_id
, exporter
, total_rows
, file_disk
, updated_at
, created_at
) values (1, App\Filament\Exports\AdjustmentExporter, 10, public, 2024-01-24 23:47:44, 2024-01-24 23:47:44)) - The error occurred at htt...6 Replies
Can you show your composer.json?
Yep happy to share.
this is weird
which version of filament are you on?
3.2
It's like the migrations are running the import table not the required export table when using the Documented methods?
Weird
Because it works for me
Are you absolutely sure you ran these commands?
Because when I publish migration I have an export folder
I have just updated to the latest release 3.2.12 and now when I run the same command its has worked for me also. I ran the above command 3 times yesterday using 3.2.11 and it would not install the exports table. Maybe the latest release has fixed the issue??
Thanks for your help