Bulk Deleting on not migrated Tables

Hello I have a Problem, I have a resource on filament that have belongs to a model that does have a "not migrated" table. it means the table created manually or by other applications.
the problem is when users select some of records on Table (I mean the table of filament) and then Bulk Deleting them, all records gets Deleted.
there are some things to note:
  • as I said the table not migrated by Laravel and I really can't to that
  • the table does'nt have ID Column. maybe this thing cause all records gets Deleted. if it is, how I can change it to other Column?
    I Don't know it's gonna be a bug or something else... but if there is a way to fix, Please tell me how I can fix that. tysm
Solution
Of course, the delete statement will be "delete from table where primary_key = 'value'". If every row has the same value.......
Was this page helpful?