-2
How can I send DD-MM-YYYY formatted dates to the Adonisjs database?
class AtendimentoSchema extends Schema {
up () {
this.create('atendimentos', (table) => {
table.increments()
table.date('data_emissao')
table.timestamps()
})
}
down () {
this.drop('atendimentos')
}
}
The Migration does not offer this type of flexibility as it is very limited. You have to format the dates on Lucid Models.
– Augusto Vasques