fix(new): keep upper cased letters in migration file names by default
This commit is contained in:
parent
59a013b0d8
commit
acb0b4f195
3 changed files with 8 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ describe('sanitizeMigrationName', () => {
|
|||
assert.strictEqual(sanitizeMigrationName('foo_? :*<>'), 'foo');
|
||||
});
|
||||
|
||||
it('should lower case the filename', () => {
|
||||
assert.strictEqual(sanitizeMigrationName('Are you, Foo?'), 'are_you_foo');
|
||||
it('should keep upper cased letters in the filename', () => {
|
||||
assert.strictEqual(sanitizeMigrationName('Are you, Foo?'), 'Are_you_Foo');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -215,5 +215,4 @@ export const sanitizeMigrationName = (name: string) =>
|
|||
name
|
||||
.replaceAll(/[\W/\\:|*?'"<>_]+/g, '_')
|
||||
.trim()
|
||||
.replace(/^_|_$/, '')
|
||||
.toLocaleLowerCase();
|
||||
.replace(/^_|_$/, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue