DEBUG: Erreur de schéma de donnée #6

Merged
Mathis merged 2 commits from dev into prod 2026-01-14 20:17:43 +01:00
6 changed files with 3324 additions and 27 deletions
Showing only changes of commit dbfd14b57a - Show all commits

View File

@@ -0,0 +1,2 @@
ALTER TABLE "users" ALTER COLUMN "password_hash" SET DATA TYPE varchar(255);--> statement-breakpoint
ALTER TABLE "users" DROP COLUMN "avatar_url";

View File

@@ -0,0 +1 @@
ALTER TABLE "users" ALTER COLUMN "password_hash" SET DATA TYPE varchar(95);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,20 @@
"when": 1768393637823,
"tag": "0002_redundant_skin",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1768415667895,
"tag": "0003_colossal_fantastic_four",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1768417827439,
"tag": "0004_cheerful_dakota_north",
"breakpoints": true
}
]
}

View File

@@ -29,7 +29,7 @@ export const users = pgTable(
displayName: varchar("display_name", { length: 32 }),
username: varchar("username", { length: 32 }).notNull().unique(),
passwordHash: varchar("password_hash", { length: 72 }).notNull(),
passwordHash: varchar("password_hash", { length: 95 }).notNull(),
// Sécurité
twoFactorSecret: pgpEncrypted("two_factor_secret"),