-- 添加缺失的列到Personnel表
ALTER TABLE Personnel ADD Ethnicity nvarchar(50) NULL;
ALTER TABLE Personnel ADD PoliticalStatus nvarchar(50) NULL;
ALTER TABLE Personnel ADD BirthDate nvarchar(20) NULL;
ALTER TABLE Personnel ADD EnlistmentDate nvarchar(20) NULL;
ALTER TABLE Personnel ADD Specialty nvarchar(200) NULL;

-- 标记迁移为已应用
INSERT INTO __EFMigrationsHistory (MigrationId, ProductVersion) 
VALUES ('20260114141545_AddMaterialCategory', '8.0.0');

INSERT INTO __EFMigrationsHistory (MigrationId, ProductVersion) 
VALUES ('20260115063457_UpdatePersonnelFieldsComplete', '8.0.0');
