chore(checkpoint): save club core backend and pending pos fixes
This commit is contained in:
@@ -6,20 +6,22 @@
|
||||
*/
|
||||
|
||||
export const up = (pgm) => {
|
||||
pgm.addColumn('identity_users', 'confirmation_token', {
|
||||
type: 'string',
|
||||
notNull: false,
|
||||
default: null,
|
||||
});
|
||||
pgm.addColumn('identity_users', 'confirmed_at', {
|
||||
type: 'timestamp',
|
||||
notNull: false,
|
||||
default: null,
|
||||
});
|
||||
pgm.addColumn('identity_users', 'email_confirmed', {
|
||||
type: 'boolean',
|
||||
notNull: true,
|
||||
default: false,
|
||||
pgm.addColumn('identity_users', {
|
||||
confirmation_token: {
|
||||
type: 'text',
|
||||
notNull: false,
|
||||
default: null,
|
||||
},
|
||||
confirmed_at: {
|
||||
type: 'timestamptz',
|
||||
notNull: false,
|
||||
default: null,
|
||||
},
|
||||
email_confirmed: {
|
||||
type: 'boolean',
|
||||
notNull: true,
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
// FEAT-199: migrate existing users to confirmed (they already verified their email during signup)
|
||||
pgm.sql('UPDATE identity_users SET email_confirmed = true');
|
||||
|
||||
Reference in New Issue
Block a user