Skip to content
Advertisement

All the migrations are working inappropriately

This is the error I get after trying to open the form. Below are the codes. It takes me all day so please kindly help me out.

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘id’ in ‘field list’ (SQL: select max(id) as aggregate from admissions where admissions.deleted_at is null)

Here is the migration

Advertisement

Answer

This represents that your primary key of this table is student_id not id.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement