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

issue in migrations file #41

Closed
Bdiwy opened this issue Jul 16, 2024 · 4 comments
Closed

issue in migrations file #41

Bdiwy opened this issue Jul 16, 2024 · 4 comments

Comments

@Bdiwy
Copy link

Bdiwy commented Jul 16, 2024

i have a problem when run php artisan migrate in files

  1. 2024_05_07_130324_create_props_table in line : $table->text('unit')->nullable()->default(' ');
  2. 2024_07_04_053952_create_parts_table.php in line : $table->json('data')->default('[]');

i solve it by making them ->nullable() is right for your system or there is a better solution .

@Bdiwy Bdiwy closed this as completed Jul 17, 2024
@Bdiwy Bdiwy reopened this Jul 17, 2024
@A1Gard
Copy link
Member

A1Gard commented Jul 18, 2024

You are using mysql or maria db?

@A1Gard A1Gard closed this as completed Jul 20, 2024
@Bdiwy
Copy link
Author

Bdiwy commented Jul 20, 2024

mysql

@A1Gard
Copy link
Member

A1Gard commented Jul 21, 2024

You can choose mariadb or change json fields to blob

@Bdiwy
Copy link
Author

Bdiwy commented Jul 29, 2024

yes I already did this

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

No branches or pull requests

2 participants