kitloong / laravel-migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
2.44k stars 270 forks source link

when generating migration i get SQLSTATE[42S22]: Column not found: 1054 Unknown column 'GENERATION_EXPRESSION' in 'field list' #171

Closed aboui closed 1 year ago

aboui commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run php artisan migrate:generate
  2. See error "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'GENERATION_EXPRESSION' in 'field list' "

Expected behavior i expected to generate the migration files in database migration directory

Screenshots image

Details (please complete the following information):

Additional context Add any other context about the problem here.

kitloong commented 1 year ago

Hi @aboui, thank you for reporting.

I think this is due to the particular MariaDB version missing that column.

I will investigate this issue, however, I am currently away from my computer. Likely, I will be able to fix it on next week.

kitloong commented 1 year ago

Thank you @aboui. The fix has been released with the tag v6.9.1.

aboui commented 1 year ago

You welcome 👍🙂

Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg


From: Kit Loong @.> Sent: Saturday, March 25, 2023 5:09:27 PM To: kitloong/laravel-migrations-generator @.> Cc: Aziz Bouyahyaoui @.>; Mention @.> Subject: Re: [kitloong/laravel-migrations-generator] when generating migration i get SQLSTATE[42S22]: Column not found: 1054 Unknown column 'GENERATION_EXPRESSION' in 'field list' (Issue #171)

Thank you @abouihttps://github.com/aboui. The fix has been released with the tag v6.9.1.

— Reply to this email directly, view it on GitHubhttps://github.com/kitloong/laravel-migrations-generator/issues/171#issuecomment-1483859460, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALDVX4XQUPF3RTYGH5VU3ILW54KDPANCNFSM6AAAAAAWEVD7NY. You are receiving this because you were mentioned.Message ID: @.***>