style: Pint 코드 스타일 자동 수정 및 마이그레이션 실행
- Pint 스타일 이슈 25개 수정 (783 파일 통과) - 마이그레이션 4개 실행 (payrolls, payroll_settings, push 테이블) - routes/api.php import 정렬
This commit is contained in:
@@ -26,4 +26,4 @@ public function down(): void
|
||||
$table->dropColumn('options');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -157,4 +157,4 @@ private function restoreFieldKeyPrefixes(): void
|
||||
->where('field_key', 'note')
|
||||
->update(['field_key' => 'material_receipts_note']);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -25,4 +25,4 @@ public function down(): void
|
||||
$table->dropColumn('bom');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -100,4 +100,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('items');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -38,4 +38,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('item_id_mappings');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -21,4 +21,4 @@ public function down(): void
|
||||
{
|
||||
// 비활성화
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
@@ -46,4 +45,4 @@ public function down(): void
|
||||
// items 테이블은 재설계 후 새로운 마이그레이션으로 생성 예정
|
||||
echo "⚠️ 이 마이그레이션은 롤백되지 않습니다. items 테이블 재설계 후 새로운 마이그레이션을 사용하세요.\n";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@ public function up(): void
|
||||
->whereNotIn('product_type', ['FG', 'PT'])
|
||||
->count();
|
||||
|
||||
Log::info("Phase 0: Normalizing item_types", [
|
||||
Log::info('Phase 0: Normalizing item_types', [
|
||||
'total_before' => $beforeCount,
|
||||
'non_standard_count' => $nonStandardCount,
|
||||
]);
|
||||
@@ -57,7 +57,7 @@ public function up(): void
|
||||
// 4. 삭제 후 건수 확인
|
||||
$afterCount = DB::table('products')->count();
|
||||
|
||||
Log::info("Phase 0: Normalization complete", [
|
||||
Log::info('Phase 0: Normalization complete', [
|
||||
'bom_deleted' => $bomDeleted,
|
||||
'products_deleted' => $deleted,
|
||||
'total_after' => $afterCount,
|
||||
@@ -71,6 +71,6 @@ public function up(): void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Log::warning("Phase 0 rollback: Deleted data cannot be restored");
|
||||
Log::warning('Phase 0 rollback: Deleted data cannot be restored');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -68,4 +68,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('items');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -67,4 +67,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('item_details');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -163,7 +163,7 @@ public function up(): void
|
||||
$materialCount++;
|
||||
}
|
||||
|
||||
Log::info("Phase 1.3: Data migration complete", [
|
||||
Log::info('Phase 1.3: Data migration complete', [
|
||||
'products_migrated' => $productCount,
|
||||
'materials_migrated' => $materialCount,
|
||||
'total' => $productCount + $materialCount,
|
||||
@@ -182,6 +182,6 @@ public function down(): void
|
||||
// ID 매핑 테이블 삭제
|
||||
Schema::dropIfExists('item_id_mappings');
|
||||
|
||||
Log::info("Phase 1.3: Data migration rolled back");
|
||||
Log::info('Phase 1.3: Data migration rolled back');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -35,6 +35,7 @@ public function up(): void
|
||||
|
||||
if (! $childItemId || ! $childItemType) {
|
||||
$newBom[] = $entry;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -47,6 +48,7 @@ public function up(): void
|
||||
|
||||
if (! $sourceTable) {
|
||||
$newBom[] = $entry;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -104,6 +106,7 @@ public function down(): void
|
||||
|
||||
if (! $childItemId) {
|
||||
$newBom[] = $entry;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('push_device_tokens');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -31,4 +31,4 @@ public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('push_notification_settings');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user