mirror of https://github.com/requarks/wiki
parent
5295e413be
commit
aa96e97028
@ -0,0 +1,7 @@
|
||||
exports.up = async knex => {
|
||||
await knex('users').update({
|
||||
email: knex.raw('LOWER(email)')
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = knex => { }
|
@ -0,0 +1,7 @@
|
||||
exports.up = async knex => {
|
||||
await knex('users').update({
|
||||
email: knex.raw('LOWER(??)', ['email'])
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = knex => { }
|
Loading…
Reference in new issue