Compare commits
No commits in common. "62388bd92dd45ee84601bb99b88bc67e21c249d5" and "7aa2ddefdfde1886942458e7bc3232685d5ee198" have entirely different histories.
62388bd92d
...
7aa2ddefdf
|
|
@ -42,7 +42,6 @@ CREATE TABLE users (
|
|||
city VARCHAR(100),
|
||||
postal_code VARCHAR(10),
|
||||
role user_role DEFAULT 'CLIENT',
|
||||
is_active BOOLEAN DEFAULT TRUE,
|
||||
is_verified BOOLEAN DEFAULT FALSE,
|
||||
verification_token VARCHAR(255),
|
||||
reset_token VARCHAR(255),
|
||||
|
|
|
|||
|
|
@ -217,12 +217,6 @@ async function applyMigrations() {
|
|||
console.log('🔄 Application des migrations...');
|
||||
|
||||
try {
|
||||
// Add is_active column to users if not exists
|
||||
await pool.query(`
|
||||
ALTER TABLE users ADD COLUMN IF NOT EXISTS is_active BOOLEAN DEFAULT TRUE
|
||||
`);
|
||||
console.log(' ✅ Colonne is_active ajoutée à users');
|
||||
|
||||
// Newsletter table
|
||||
await pool.query(`
|
||||
CREATE TABLE IF NOT EXISTS newsletters (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user