mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue