mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: use correct spelling of synchronization (#8204)
syncronization -> synchronization
This commit is contained in:
parent
a868078f8f
commit
d4111ce0cb
@ -47,12 +47,12 @@ export class SchemaLogCommand implements yargs.CommandModule {
|
||||
connection = await createConnection(connectionOptions);
|
||||
const sqlInMemory = await connection.driver.createSchemaBuilder().log();
|
||||
if (sqlInMemory.upQueries.length === 0) {
|
||||
console.log(chalk.yellow("Your schema is up to date - there are no queries to be executed by schema syncronization."));
|
||||
console.log(chalk.yellow("Your schema is up to date - there are no queries to be executed by schema synchronization."));
|
||||
|
||||
} else {
|
||||
const lengthSeparators = String(sqlInMemory.upQueries.length).split("").map(char => "-").join("");
|
||||
console.log(chalk.yellow("---------------------------------------------------------------" + lengthSeparators));
|
||||
console.log(chalk.yellow.bold(`-- Schema syncronization will execute following sql queries (${chalk.white(sqlInMemory.upQueries.length.toString())}):`));
|
||||
console.log(chalk.yellow.bold(`-- Schema synchronization will execute following sql queries (${chalk.white(sqlInMemory.upQueries.length.toString())}):`));
|
||||
console.log(chalk.yellow("---------------------------------------------------------------" + lengthSeparators));
|
||||
|
||||
sqlInMemory.upQueries.forEach(upQuery => {
|
||||
|
||||
@ -45,7 +45,7 @@ export class SchemaSyncCommand implements yargs.CommandModule {
|
||||
await connection.synchronize();
|
||||
await connection.close();
|
||||
|
||||
console.log(chalk.green("Schema syncronization finished successfully."));
|
||||
console.log(chalk.green("Schema synchronization finished successfully."));
|
||||
|
||||
} catch (err) {
|
||||
if (connection) await (connection as Connection).close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user