diff --git a/package-lock.json b/package-lock.json index cf5fd21..34351b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/database", - "version": "5.31.0", + "version": "5.32.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/database", - "version": "5.31.0", + "version": "5.32.0", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.4.1" diff --git a/package.json b/package.json index 62d1320..1f8cf96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/database", - "version": "5.31.0", + "version": "5.32.0", "description": "The Athenna database handler for SQL/NoSQL.", "license": "MIT", "author": "João Lenon ", diff --git a/src/commands/MakeMigrationCommand.ts b/src/commands/MakeMigrationCommand.ts index 5cd0cb1..d699d08 100644 --- a/src/commands/MakeMigrationCommand.ts +++ b/src/commands/MakeMigrationCommand.ts @@ -32,6 +32,7 @@ export class MakeMigrationCommand extends BaseCommand { const nameCamel = String.toCamelCase(this.name) const namePlural = String.pluralize(this.name) const namePascal = String.toPascalCase(this.name) + const nameSnake = String.toSnakeCase(this.name) const namePluralCamel = String.toCamelCase(String.pluralize(this.name)) const namePluralPascal = String.toPascalCase(String.pluralize(this.name)) @@ -53,7 +54,7 @@ export class MakeMigrationCommand extends BaseCommand { time = time.split('.')[0].replace(/:/g, '') const file = await this.generator - .fileName(`${sep}${date}_${time}_create_${tableName}_table`) + .fileName(`${sep}${date}_${time}_${nameSnake}`) .destination(destination) .properties({ nameUp,