Category: Laravel Database Migrations

在 Laravel 9 中执行数据库迁移,修改字段名称,再修改其属性,报错:There is no column with name inbounded_quantity on table return_order_items 0

Perform database migration in Laravel 9, modify the field name, and then modify its properties, and report an error: There is no column with name inbounded_quantity on table return_order_items.

Post Views: 16 1. Execute database migration in Laravel 9, modify the field name, and then modify its properties, and report an error: There is no column with name inbounded_quantity on table return_order_items. As...

在 MySQL 8.0 中设置 datetime 的默认值为 '0000-00-00 00:00:00' 时报错:SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'operated_at_gmt' 0

Set the default value of DateTime in Laravel 9, MySQL 8.0 to0000-00-00 00:00:00Time error: sqlstate[42000]: Syntax error or access Violation: 1067 Invalid default value forOPERATED_AT_GMT

Post Views: 15 1. Set the default value of DateTime in MySQL 8.0 to be0000-00-00 00:00:00Time error: sqlstate[42000]: Syntax error or access Violation: 1067 Invalid default value forOPERATED_AT_GMT. as shown in Figure 1 2....

当在 Modules/Blog 下删除了文件 module.json 后,生成新的迁移文件:Nwidart\Modules\Exceptions\ModuleNotFoundException : Module [Blog] does not exist! 0

NWidArt\Modules\Exceptions\ModuleNotFoundException : Module[Blog]Does not exist!, the execution of the database migration file in the module (no need to publish)

Post Views: 19 1. When the file module.json is deleted under modules/blog, a new migration file is generated: nwidart\modules\exceptions\moduleNotFoundException : module[Blog]does not exist!. as shown in Figure 1 2. Use the make:migration artisan command...

Doctrine\DBAL\Exception : Unknown database type enum requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it. 0

In Laravel 6’s database migration, Doctrine\dbal\Exception : unknown database type enum requested when updating field properties, Doctrine\DBAL\Platforms\MySQL57Platform May not support it.

Post Views: 17 1. Doctrine\dbal\exception : unknown database type enum requested, doctrine\dbal\platforms\mysql57platform may not support it.. as shown in Figure 1 2. View the migration file, enum does not exist in the updated field...

重新从第 7 步骤开始执行,跳过第 9 步骤。您现在有一个安装了新应用程序的开发商店 0

Create apps using Shopify CLI (PHP-based application templates) and install them in the store

Post Views: 15 1. Navigate to the directory where you want to create the application (e:\wwwroot\shopify-app). Your application will be created in a new subdirectory. as shown in Figure 1 2. Run one of...

执行 sudowww 'php artisan es:migrate' 时,报错:Custom Analyzer [ik_smart_synonym] failed to find tokenizer under name [ik_smart] 0

Execute sudowwwphp artisan es:migrate, error: CUSTOM Analyzer[ik_smart_synonym]Failed to find tokenizer under name[ik_smart]

Post Views: 21 1. Execute sudowWWphp artisan es:migrate, error: CUSTOM Analyzer[ik_smart_synonym]Failed to find tokenizer under name[ik_smart]. as shown in Figure 1 2. Reference: Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version...