Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySqlGrammar: : compileColumns function for mariadb and mysql information_schema. The columns structure difference is an error #1559

Closed
cclilshy opened this issue Jun 12, 2024 · 1 comment
Labels

Comments

@cclilshy
Copy link

Versions:

  • ide-helper Version: v3.0.0
  • Laravel Version: 11.10.0
  • PHP Version: 8.3.0
  • MariaDB Version: 10.0.38-MariaDB

Description:

After executing php artisan ide-helper:models, the error text reads

Column not found: 1054 Unknown column 'generation_expression' in 'field list' (Connection: mysql, SQL: select column_name as `name`, data_type as `type_name`, column_type as `type`, collation_name as `collation`, is_nullable as `nullable`, column_default as `default`, column_comment as `comment`, generation_expression as `expression`, extra as `extra` from information_schema.columns where table_schema = 'db' and table_name = 'table' order by ordinal_position asc)

Comparing the information_schema table in mysql8.0 shows that the generation_expression field does not exist in the corresponding mariadb table

Steps To Reproduce:

php artisan ide-helper:models
@cclilshy cclilshy added the bug label Jun 12, 2024
@hafezdivandari
Copy link
Contributor

Laravel 11 supports MariaDB 10.3+.

generation_expression column added on MariaDB 10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants