kitloong / laravel-migrations-generator

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

Check the existence of `GENERATION_EXPRESSION` column #172

Closed kitloong closed 1 year ago

kitloong commented 1 year ago

Description

Check if the error is caused by the missing column 'GENERATION_EXPRESSION'.

The column is introduced since MySQL 5.7 and MariaDB 10.2.5.

https://mariadb.com/kb/en/information-schema-columns-table/ https://dev.mysql.com/doc/refman/5.7/en/information-schema-columns-table.html

codecov[bot] commented 1 year ago

Codecov Report

Merging #172 (4e9b7ab) into 6.x (050681b) will decrease coverage by 0.27%. The diff coverage is 27.27%.

@@             Coverage Diff              @@
##                6.x     #172      +/-   ##
============================================
- Coverage     92.03%   91.76%   -0.27%     
- Complexity      874      876       +2     
============================================
  Files           114      114              
  Lines          2774     2782       +8     
============================================
  Hits           2553     2553              
- Misses          221      229       +8     
Impacted Files Coverage Δ
src/Repositories/MySQLRepository.php 84.84% <27.27%> (-11.71%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.