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

Migration error #15

Closed
FMpoli opened this issue Jun 24, 2024 · 1 comment
Closed

Migration error #15

FMpoli opened this issue Jun 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FMpoli
Copy link

FMpoli commented Jun 24, 2024

I made a simple table configuration

Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

 $finalFields .= '$table->'. ($field->type == 'varchar' ? 'string' : $field->type === 'int' ? 'integer' : $field->type) .'("'.$field->name.'")';

in
vendor/tomatophp/filament-plugins/src/Services/Concerns/GenerateMigrations.php : 68

Screenshot 2024-06-24 alle 19 38 44

@FMpoli
Copy link
Author

FMpoli commented Jun 24, 2024

solution

$finalFields .= '$table->'. ($field->type == 'varchar' ? 'string' : ($field->type === 'int' ? 'integer' : $field->type)) .'("'.$field->name.'")';

@3x1io 3x1io added the enhancement New feature or request label Jun 24, 2024
3x1io added a commit that referenced this issue Jun 24, 2024
@3x1io 3x1io closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants