[Adonis 4.1] Database schema with zerofill auto_increments? #1467
-
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class CardSchema extends Schema {
up () {
this.create('cards', (table) => {
table.increments() // How to add zerofill in here or
table.int('cardID', 4).increments() // here
table.timestamps()
})
}
down () {
this.drop('cards')
}
}
module.exports = CardSchema I want the output into something like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Aug 16, 2020
Replies: 1 comment 3 replies
-
I don't know about zerofill. Maybe point me to the SQL documentation for it? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
RomainLanz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know about zerofill. Maybe point me to the SQL documentation for it?