| 1234567891011121314151617181920212223 |
- async function up(knex) {
- const hasChangeEmail = await knex.schema.hasColumn(
- "users",
- "change_email_token"
- );
- if (!hasChangeEmail) {
- await knex.schema.alterTable("users", table => {
- table.dateTime("change_email_expires");
- table.string("change_email_token");
- table.string("change_email_address");
- });
- }
- }
- async function down() {
- return null;
- }
- module.exports = {
- up,
- down
- }
|