Skip to content

How can I update my column to make it unique ? #1396

Answered by kennedyrs
Hakamate asked this question in Help
Discussion options

You must be logged in to vote

AdonisJS uses Knex behind, take a look at Knex documentation you can use this method.

If you have any email record duplicated at the database in the moment of the alter, it will not work

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Hakamate
Comment options

@iammrsea
Comment options

@Hakamate
Comment options

@iammrsea
Comment options

@Hakamate
Comment options

Comment options

You must be logged in to vote
1 reply
@Hakamate
Comment options

Answer selected by Hakamate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants