This PR changes the definition of the adonis_schema_versions table to ensure a PRIMARY KEY is set.
In many DBMS, it is required to have a least one PRIMARY KEY. If you don't set one manually, the DBMS will try to figure out any indexes (UNIQUE), which may be used to act as the PRIMARY KEY. In this case, we had none.
Hey! 👋🏻
This PR changes the definition of the
adonis_schema_versions
table to ensure aPRIMARY KEY
is set.In many DBMS, it is required to have a least one
PRIMARY KEY
. If you don't set one manually, the DBMS will try to figure out any indexes (UNIQUE
), which may be used to act as thePRIMARY KEY
. In this case, we had none.Updated version of https://github.com/adonisjs/lucid/pull/945 for V6.