diff --git a/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js b/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js index c91378f9e1..ae7620fd28 100644 --- a/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js +++ b/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js @@ -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(); } }