mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
Altered wording in migration utils
- if the table doesn't exist, it's not necessarily a failure that we should be informing the user about - this brings the message wording in line with other log lines of similar operations
This commit is contained in:
parent
c8d6024a0c
commit
aed7ef0cae
@ -56,7 +56,7 @@ function dropTables(names) {
|
||||
const exists = await connection.schema.hasTable(name);
|
||||
|
||||
if (!exists) {
|
||||
logging.warn(`Failed to drop table: ${name} - table does not exist`);
|
||||
logging.warn(`Skipping dropping table: ${name} - table does not exist`);
|
||||
} else {
|
||||
logging.info(`Dropping table: ${name}`);
|
||||
await commands.deleteTable(name, connection);
|
||||
@ -80,7 +80,7 @@ function recreateTable(name, tableSpec) {
|
||||
const exists = await connection.schema.hasTable(name);
|
||||
|
||||
if (!exists) {
|
||||
logging.warn(`Failed to drop table: ${name} - table does not exist`);
|
||||
logging.warn(`Skipping dropping table: ${name} - table does not exist`);
|
||||
} else {
|
||||
logging.info(`Dropping table: ${name}`);
|
||||
await commands.deleteTable(name, connection);
|
||||
|
Loading…
Reference in New Issue
Block a user