Checkpoint: Fix: colonne azureAdId agrandie à VARCHAR(128) pour accepter les identifiants Azure AD composés (objectId.tenantId). Migration appliquée en production.

This commit is contained in:
Manus
2026-07-07 06:20:33 -04:00
parent 8ee10602d3
commit a994ec2e61
4 changed files with 2164 additions and 1 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `users` MODIFY COLUMN `azureAdId` varchar(128);

File diff suppressed because it is too large Load Diff

View File

@@ -232,6 +232,13 @@
"when": 1781690960721, "when": 1781690960721,
"tag": "0032_volatile_jocasta", "tag": "0032_volatile_jocasta",
"breakpoints": true "breakpoints": true
},
{
"idx": 33,
"version": "5",
"when": 1783419609559,
"tag": "0033_strange_manta",
"breakpoints": true
} }
] ]
} }

View File

@@ -9,7 +9,7 @@ export const users = mysqlTable("users", {
/** Manus OAuth identifier (openId) - Optional for backward compatibility */ /** Manus OAuth identifier (openId) - Optional for backward compatibility */
openId: varchar("openId", { length: 64 }).unique(), openId: varchar("openId", { length: 64 }).unique(),
/** Azure AD Object ID - Unique identifier from Azure AD */ /** Azure AD Object ID - Unique identifier from Azure AD */
azureAdId: varchar("azureAdId", { length: 64 }).unique(), azureAdId: varchar("azureAdId", { length: 128 }).unique(),
name: text("name"), name: text("name"),
email: varchar("email", { length: 320 }).notNull().unique(), email: varchar("email", { length: 320 }).notNull().unique(),
/** Hashed password for local authentication (bcrypt) */ /** Hashed password for local authentication (bcrypt) */