fix: users.password 컬럼 nullable로 변경

- 사원 전용 계정(시스템 로그인 불가) 지원
- 비밀번호 없이 사원 등록 시 500 에러 수정
- EmployeeService.store()에서 password null 허용

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-14 19:42:56 +09:00
parent 92d39d7294
commit 3d1dbfc3ca

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
* 사원 전용 계정(시스템 로그인 불가)을 지원하기 위해 password nullable로 변경
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('password')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('password')->nullable(false)->change();
});
}
};