{"id":3922,"date":"2026-11-20T05:38:52","date_gmt":"2026-11-19T20:38:52","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=3922"},"modified":"2026-11-20T05:38:52","modified_gmt":"2026-11-19T20:38:52","slug":"20261024-00mvllww","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2026\/11\/20\/20261024-00mvllww\/","title":{"rendered":"doctrine\/dbal\u304c\u5fc5\u8981\u306b\u306a\u308bLaravel\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u843d\u3068\u3057\u7a74"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>Laravel \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u65e2\u5b58\u30ab\u30e9\u30e0\u306e\u578b\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u3001<code>doctrine\/dbal<\/code> \u3092\u8981\u6c42\u3059\u308b\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u5384\u4ecb\u306a\u306e\u306f\u3001\u300c\u6307\u793a\u901a\u308a <code>doctrine\/dbal<\/code> \u3092\u5165\u308c\u305f\u3089\u3001\u4eca\u5ea6\u306f\u5225\u306e\u30a8\u30e9\u30fc\uff08<code>Unknown database type enum requested<\/code>\uff09\u3067\u843d\u3061\u308b\u300d\u3068\u3044\u3046\u4e8c\u6bb5\u69cb\u3048\u306e\u30cf\u30de\u308a\u3069\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u306a\u305c <code>doctrine\/dbal<\/code> \u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u304b\u3001\u305d\u3053\u3067\u8d77\u304d\u308b\u5178\u578b\u7684\u306a\u30c8\u30e9\u30d6\u30eb\u3001\u305d\u3057\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306e\u6b63\u3057\u3044\u5bfe\u51e6\u65b9\u6cd5\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>PHP 8.x<\/li>\n<li>Laravel 9.x \/ 10.x \/ 11.x\uff08\u6319\u52d5\u5dee\u3092\u660e\u8a18\u3057\u3066\u89e3\u8aac\u3057\u307e\u3059\uff09<\/li>\n<li>MySQL 8.x\uff08<code>enum<\/code> \u30ab\u30e9\u30e0\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3067\u554f\u984c\u304c\u8d77\u304d\u3084\u3059\u3044\uff09<\/li>\n<\/ul>\n<h2>\u767a\u751f\u3057\u305f\u554f\u984c<\/h2>\n<p>\u65e2\u5b58\u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u3092\u5909\u66f4\u3059\u308b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u66f8\u3044\u3066 <code>php artisan migrate<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Changing columns for table \"users\" requires Doctrine DBAL.\nPlease install the \"doctrine\/dbal\" package.<\/pre>\n<p>\u5bfe\u8c61\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u3054\u304f\u666e\u901a\u306e\u578b\u5909\u66f4\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">public function up(): void\n{\n    Schema::table('users', function (Blueprint $table) {\n        $table-&gt;string('nickname', 100)-&gt;change();\n    });\n}<\/pre>\n<p>\u8a00\u308f\u308c\u308b\u304c\u307e\u307e\u306b <code>composer require doctrine\/dbal<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4eca\u5ea6\u306f<strong>\u5909\u66f4\u5bfe\u8c61\u3068\u306f\u7121\u95a2\u4fc2\u306a\u30ab\u30e9\u30e0\u304c\u539f\u56e0\u3067<\/strong>\u5225\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Unknown database type enum requested, Doctrine\\DBAL\\Platforms\\MySQL80Platform may not support it.<\/pre>\n<p>\u30ab\u30e9\u30e0\u5909\u66f4\u81ea\u4f53\u306f <code>nickname<\/code> \u306b\u5bfe\u3057\u3066\u306a\u306e\u306b\u3001\u306a\u305c\u304b\u540c\u30c6\u30fc\u30d6\u30eb\u306e <code>status enum(...)<\/code> \u304c\u539f\u56e0\u3067\u843d\u3061\u308b\u3001\u3068\u3044\u3046\u4e0d\u53ef\u89e3\u306a\u72b6\u614b\u3067\u3059\u3002<\/p>\n<h2>\u539f\u56e0<\/h2>\n<h3>\u306a\u305c <code>doctrine\/dbal<\/code> \u304c\u5fc5\u8981\u306a\u306e\u304b<\/h3>\n<p>Laravel \u306e\u30b9\u30ad\u30fc\u30de\u30d3\u30eb\u30c0\u306f\u3001<code>create<\/code> \u3084\u5358\u7d14\u306a <code>addColumn<\/code> \u306e\u3088\u3046\u306a\u64cd\u4f5c\u306f\u81ea\u524d\u3067 SQL \u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057<strong>\u65e2\u5b58\u30ab\u30e9\u30e0\u306e\u5909\u66f4\uff08<code>change()<\/code>\uff09\u3084\u30ea\u30cd\u30fc\u30e0\uff08<code>renameColumn()<\/code>\uff09<\/strong>\u306f\u3001\u300c\u73fe\u5728\u306e\u30ab\u30e9\u30e0\u5b9a\u7fa9\u3092\u8aad\u307f\u53d6\u3063\u3066\u5dee\u5206\u3092\u9069\u7528\u3059\u308b\u300d\u51e6\u7406\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>Laravel 10 \u4ee5\u524d\u306f\u3001\u3053\u306e\u300c\u65e2\u5b58\u5b9a\u7fa9\u306e\u8aad\u307f\u53d6\u308a\u300d\u3092 <code>doctrine\/dbal<\/code> \u3068\u3044\u3046\u30b9\u30ad\u30fc\u30de\u62bd\u8c61\u5316\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u59d4\u8b72\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001<code>change()<\/code> \u3092\u542b\u3080\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f <code>doctrine\/dbal<\/code> \u304c\u5fc5\u9808\u3060\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u64cd\u4f5c<\/th>\n<th>Laravel 9 \u4ee5\u524d<\/th>\n<th>Laravel 10<\/th>\n<th>Laravel 11 \u4ee5\u964d<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>renameColumn()<\/code><\/td>\n<td>dbal \u5fc5\u9808<\/td>\n<td>\u4e0d\u8981<\/td>\n<td>\u4e0d\u8981<\/td>\n<\/tr>\n<tr>\n<td><code>dropColumn()<\/code>\uff08SQLite\uff09<\/td>\n<td>dbal \u5fc5\u9808<\/td>\n<td>\u4e0d\u8981<\/td>\n<td>\u4e0d\u8981<\/td>\n<\/tr>\n<tr>\n<td><code>change()<\/code>\uff08\u578b\u30fb\u5c5e\u6027\u5909\u66f4\uff09<\/td>\n<td>dbal \u5fc5\u9808<\/td>\n<td>dbal \u5fc5\u9808<\/td>\n<td><strong>\u4e0d\u8981<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Laravel 11 \u3067 <code>change()<\/code> \u3082\u30cd\u30a4\u30c6\u30a3\u30d6\u5b9f\u88c5\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3001<code>doctrine\/dbal<\/code> \u4f9d\u5b58\u304c\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002\u3064\u307e\u308a\u5192\u982d\u306e\u30a8\u30e9\u30fc\u306f <strong>Laravel 10 \u4ee5\u524d\uff08\u7279\u306b <code>change()<\/code> \u5229\u7528\u6642\uff09<\/strong> \u306b\u51fa\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>\u306a\u305c <code>enum<\/code> \u3067\u4e8c\u6b21\u88ab\u5bb3\u304c\u8d77\u304d\u308b\u306e\u304b<\/h3>\n<p><code>doctrine\/dbal<\/code> \u306f\u3001\u30ab\u30e9\u30e0\u3092\u5909\u66f4\u3059\u308b\u969b\u306b <strong>\u30c6\u30fc\u30d6\u30eb\u5168\u4f53\u306e\u30ab\u30e9\u30e0\u5b9a\u7fa9\u3092\u4e00\u5ea6\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059<\/strong>\u3002\u3053\u306e\u3068\u304d MySQL \u306e <code>enum<\/code> \u578b\u306f DBAL \u304c\u6a19\u6e96\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u3089\u305a\u3001<code>Unknown database type enum requested<\/code> \u3068\u3057\u3066\u4f8b\u5916\u3092\u6295\u3052\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u304c\u30cf\u30de\u308a\u3069\u3053\u308d\u306e\u672c\u8cea\u3067\u3059\u3002<strong>\u5909\u66f4\u3057\u305f\u3044\u30ab\u30e9\u30e0\u304c <code>enum<\/code> \u3067\u306a\u304f\u3066\u3082\u3001\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u306e\u3069\u3053\u304b\u306b <code>enum<\/code> \u30ab\u30e9\u30e0\u304c\u3042\u308b\u3060\u3051\u3067\u5168\u4f53\u306e\u8aad\u307f\u53d6\u308a\u306b\u5931\u6557\u3059\u308b<\/strong>\u306e\u3067\u3059\u3002<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<h3>\u5bfe\u51e61: Laravel 11 \u4ee5\u964d\u306a\u3089 <code>doctrine\/dbal<\/code> \u306f\u4e0d\u8981<\/h3>\n<p>\u307e\u305a\u524d\u63d0\u78ba\u8a8d\u3068\u3057\u3066\u3001Laravel 11 \u4ee5\u964d\u3067\u3042\u308c\u3070 <code>change()<\/code> \u306b <code>doctrine\/dbal<\/code> \u306f\u8981\u308a\u307e\u305b\u3093\u3002\u53e4\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6163\u7fd2\u3067\u306a\u3093\u3068\u306a\u304f\u5165\u308c\u3066\u3044\u308b\u3060\u3051\u306a\u3089\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u5f8c\u306b\u5916\u305b\u307e\u3059\u3002\u305f\u3060\u3057 Laravel 11 \u306e\u30cd\u30a4\u30c6\u30a3\u30d6 <code>change()<\/code> \u306b\u3082\u91cd\u8981\u306a\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\uff08\u5f8c\u8ff0\uff09\u3002<\/p>\n<h3>\u5bfe\u51e62: Laravel 10 \u4ee5\u524d\u3067 <code>enum<\/code> \u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b<\/h3>\n<p><code>doctrine\/dbal<\/code> \u3092\u4f7f\u308f\u3056\u308b\u3092\u5f97\u306a\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067 <code>enum<\/code> \u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001<strong><code>enum<\/code> \u3092 <code>string<\/code> \u3068\u3057\u3066\u6271\u3046\u3088\u3046\u578b\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u767b\u9332<\/strong>\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">use Illuminate\\Support\\Facades\\DB;\n\npublic function up(): void\n{\n    DB::getDoctrineConnection()\n        -&gt;getDatabasePlatform()\n        -&gt;registerDoctrineTypeMapping('enum', 'string');\n\n    Schema::table('users', function (Blueprint $table) {\n        $table-&gt;string('nickname', 100)-&gt;change();\n    });\n}<\/pre>\n<p>\u3053\u308c\u3067 DBAL \u304c\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u3092\u8aad\u3080\u969b\u3001<code>enum<\/code> \u30ab\u30e9\u30e0\u3092 <code>string<\/code> \u3068\u307f\u306a\u3059\u305f\u3081\u8aad\u307f\u53d6\u308a\u304c\u901a\u308a\u307e\u3059\u3002\u5909\u66f4\u5bfe\u8c61\u306e <code>enum<\/code> \u30ab\u30e9\u30e0\u81ea\u4f53\u3092\u3044\u3058\u3089\u306a\u3044\u9650\u308a\u3001\u3053\u306e\u56de\u907f\u3067\u5341\u5206\u3067\u3059\u3002<\/p>\n<h3>\u5bfe\u51e63: <code>change()<\/code> \u3092\u907f\u3051\u3001\u751fSQL\u3067\u5909\u66f4\u3059\u308b<\/h3>\n<p>\u305d\u3082\u305d\u3082 <code>change()<\/code> \u306b\u983c\u3089\u305a\u3001\u751f\u306e <code>ALTER TABLE<\/code> \u3092\u767a\u884c\u3059\u308b\u624b\u3082\u3042\u308a\u307e\u3059\u3002DBAL \u306e\u6319\u52d5\u5dee\u306b\u632f\u308a\u56de\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u8907\u96d1\u306a\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3053\u3061\u3089\u304c\u78ba\u5b9f\u306a\u3053\u3068\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">public function up(): void\n{\n    DB::statement('ALTER TABLE users MODIFY nickname VARCHAR(100) NOT NULL');\n}\n\npublic function down(): void\n{\n    DB::statement('ALTER TABLE users MODIFY nickname VARCHAR(50) NOT NULL');\n}<\/pre>\n<p>\u751fSQL\u306fDB\u30a8\u30f3\u30b8\u30f3\u4f9d\u5b58\u306b\u306a\u308b\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u300c\u5c5e\u6027\u304c\u52dd\u624b\u306b\u843d\u3061\u308b\u300d\u4e8b\u6545\u3092\u907f\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u88c5\u4f8b<\/h2>\n<p>Laravel 10 \u4ee5\u524d\u3067\u3001<code>enum<\/code> \u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u306e\u5225\u30ab\u30e9\u30e0\u3092\u5b89\u5168\u306b\u5909\u66f4\u3059\u308b\u5b9f\u969b\u306e\u5f62\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration {\n    public function up(): void\n    {\n        \/\/ enum \u3092 string \u6271\u3044\u306b\u3057\u3066DBAL\u306e\u8aad\u307f\u53d6\u308a\u5931\u6557\u3092\u56de\u907f\n        DB::getDoctrineConnection()\n            -&gt;getDatabasePlatform()\n            -&gt;registerDoctrineTypeMapping('enum', 'string');\n\n        Schema::table('users', function (Blueprint $table) {\n            $table-&gt;string('nickname', 100)-&gt;nullable()-&gt;change();\n        });\n    }\n\n    public function down(): void\n    {\n        DB::getDoctrineConnection()\n            -&gt;getDatabasePlatform()\n            -&gt;registerDoctrineTypeMapping('enum', 'string');\n\n        Schema::table('users', function (Blueprint $table) {\n            $table-&gt;string('nickname', 50)-&gt;nullable(false)-&gt;change();\n        });\n    }\n};<\/pre>\n<h2>\u78ba\u8a8d\u65b9\u6cd5<\/h2>\n<ol>\n<li>\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u76f8\u5f53\u306eDB\u306b\u5bfe\u3057 <code>php artisan migrate --pretend<\/code> \u3067\u767a\u884cSQL\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u5b9f\u884c\u5f8c\u306b <code>SHOW CREATE TABLE users;<\/code> \u3067\u3001\u610f\u56f3\u3057\u306a\u3044\u5c5e\u6027\u306e\u6b20\u843d\uff08<code>unsigned<\/code>\u30fb<code>comment<\/code>\u30fb<code>default<\/code> \u306a\u3069\uff09\u304c\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3082 <code>php artisan migrate:rollback<\/code> \u3067\u691c\u8a3c\u3057\u3001<code>down()<\/code> \u304c\u5bfe\u79f0\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u304b\u3081\u308b<\/li>\n<\/ol>\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li><strong><code>change()<\/code> \u306f\u300c\u66f8\u3044\u305f\u5c5e\u6027\u4ee5\u5916\u3092\u843d\u3068\u3059\u300d<\/strong>\u3002\u3053\u308c\u306f DBAL \u6642\u4ee3\u3082 Laravel 11 \u30cd\u30a4\u30c6\u30a3\u30d6\u7248\u3082\u540c\u3058\u601d\u60f3\u3067\u3001<code>change()<\/code> \u306b\u6e21\u3057\u305f\u5b9a\u7fa9\u304c\u65b0\u3057\u3044\u72b6\u614b\u3068\u3057\u3066\u9069\u7528\u3055\u308c\u307e\u3059\u3002<code>nullable()<\/code> \u3084 <code>unsigned<\/code>\u3001<code>default<\/code>\u3001<code>comment<\/code> \u3092\u7701\u304f\u3068\u65e2\u5b58\u306e\u5c5e\u6027\u304c\u6d88\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001<strong>\u5909\u66f4\u6642\u306f\u7dad\u6301\u3057\u305f\u3044\u5c5e\u6027\u3082\u660e\u793a\u3059\u308b<\/strong>\u306e\u304c\u9244\u5247\u3067\u3059\u3002<\/li>\n<li><code>enum<\/code> \u306e\u578b\u30de\u30c3\u30d4\u30f3\u30b0\u56de\u907f\u306f\u300c\u8aad\u307f\u53d6\u308a\u3092\u901a\u3059\u305f\u3081\u306e\u5fdc\u6025\u51e6\u7f6e\u300d\u3067\u3059\u3002<code>enum<\/code> \u30ab\u30e9\u30e0\u81ea\u4f53\u3092 <code>change()<\/code> \u3067\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u751fSQL\uff08<code>ALTER TABLE ... MODIFY<\/code>\uff09\u306b\u5207\u308a\u66ff\u3048\u308b\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002<\/li>\n<li>Laravel 11 \u3078\u4e0a\u3052\u308b\u306a\u3089 <code>doctrine\/dbal<\/code> \u306f\u4f9d\u5b58\u304b\u3089\u5916\u305b\u307e\u3059\u304c\u3001<strong>\u4ed6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u9593\u63a5\u4f9d\u5b58\u3057\u3066\u3044\u306a\u3044\u304b<\/strong> <code>composer why doctrine\/dbal<\/code> \u3067\u78ba\u8a8d\u3057\u3066\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<li>\u672c\u756a\u9069\u7528\u524d\u306b\u3001\u5fc5\u305a\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u540c\u4e00\u30b9\u30ad\u30fc\u30de\u306b\u5bfe\u3057\u3066\u6d41\u3057\u3001<code>SHOW CREATE TABLE<\/code> \u524d\u5f8c\u6bd4\u8f03\u3092\u884c\u3046\u3053\u3068\u3002\u5c5e\u6027\u6b20\u843d\u306f\u4e00\u898b\u6210\u529f\u3057\u305f\u3088\u3046\u306b\u898b\u3048\u3066\u5f8c\u304b\u3089\u52b9\u3044\u3066\u304f\u308b\u4e8b\u6545\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<ul>\n<li><code>change()<\/code> \/ <code>renameColumn()<\/code> \u306f\u904e\u53bb\u30d0\u30fc\u30b8\u30e7\u30f3\u3067 <code>doctrine\/dbal<\/code> \u3092\u8981\u6c42\u3057\u305f\u3002<strong>Laravel 10 \u3067 rename\u3001Laravel 11 \u3067 change \u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u5316\u304c\u9032\u307f\u3001\u4f9d\u5b58\u306f\u89e3\u6d88\u3055\u308c\u305f<\/strong>\u3002<\/li>\n<li><code>doctrine\/dbal<\/code> \u5c0e\u5165\u5f8c\u306b\u51fa\u308b <code>Unknown database type enum requested<\/code> \u306f\u3001<strong>\u5909\u66f4\u5bfe\u8c61\u3068\u7121\u95a2\u4fc2\u306a <code>enum<\/code> \u30ab\u30e9\u30e0\u304c\u539f\u56e0<\/strong>\u3002<code>registerDoctrineTypeMapping('enum', 'string')<\/code> \u3067\u56de\u907f\u3067\u304d\u308b\u3002<\/li>\n<li><code>change()<\/code> \u306f\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5c5e\u6027\u3092\u843d\u3068\u3059\u3002<strong>\u7dad\u6301\u3057\u305f\u3044\u5c5e\u6027\u306f\u5fc5\u305a\u660e\u793a<\/strong>\u3057\u3001<code>--pretend<\/code> \u3068 <code>SHOW CREATE TABLE<\/code> \u3067\u524d\u5f8c\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n<li>\u8907\u96d1\u306a\u30c6\u30fc\u30d6\u30eb\u3084 <code>enum<\/code> \u306e\u5909\u66f4\u306f\u3001<code>change()<\/code> \u306b\u56fa\u57f7\u305b\u305a\u751fSQL\u306b\u5207\u308a\u66ff\u3048\u308b\u306e\u3082\u6709\u52b9\u306a\u9078\u629e\u80a2\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Laravel \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u65e2\u5b58\u30ab\u30e9\u30e0\u306e\u578b\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u3001doctrine\/dbal \u3092\u8981\u6c42\u3059\u308b\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u5384\u4ecb\u306a\u306e\u306f\u3001\u300c\u6307\u793a\u901a\u308a doctrine\/dbal \u3092\u5165\u308c\u305f\u3089\u3001\u4eca\u5ea6\u306f\u5225\u306e\u30a8\u30e9\u2026<\/p>\n","protected":false},"author":1,"featured_media":3921,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_lightning_design_setting":[],"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[34],"tags":[153,831,562,154],"class_list":["post-3922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-memorandum","tag-laravel","tag-sql","tag-562","tag-154"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2026\/11\/20261024-00mvllww-thumbnail.jpg","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=3922"}],"version-history":[{"count":1,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3922\/revisions"}],"predecessor-version":[{"id":3923,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3922\/revisions\/3923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/3921"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=3922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=3922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=3922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}