mirror of
https://github.com/strapi/strapi.git
synced 2025-10-16 10:33:34 +00:00
Improve the check of the database tables
This commit is contained in:
parent
120e10ef65
commit
add8d47a86
@ -32,7 +32,7 @@ module.exports = (scope, success, error) => {
|
||||
success();
|
||||
};
|
||||
|
||||
if (tables.rows.length !== 0) {
|
||||
if (tables.rows && tables.rows.length !== 0) {
|
||||
logger.warn('It seems that your database is not empty. Be aware that Strapi is going to automatically creates tables & columns, and might update columns which can corrupt data or cause data loss.');
|
||||
|
||||
inquirer.prompt([{
|
||||
|
Loading…
x
Reference in New Issue
Block a user