mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
Remove not null on sqlite alter as the table is recreated afterwards
This commit is contained in:
parent
ae4728be8c
commit
ea5cdc78d8
@ -163,7 +163,7 @@ module.exports = async ({ ORM, loadedModel, definition, connection, model }) =>
|
||||
|
||||
if (type) {
|
||||
const col = tbl.specificType(key, type);
|
||||
if (attribute.required) {
|
||||
if (attribute.required && definition.client !== 'sqlite3') {
|
||||
col.notNullable();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user