Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fixes in MigrationCreateCommand #239

Merged
merged 2 commits into from
Jan 26, 2017

Conversation

Tobias4872
Copy link
Contributor

Hi,

despite adding the missing import for class "EntityManager", I propose some changes to meet some more strict tslint rules.

Please let me know if this will work for you.

Tobias.


export class ${name}${timestamp} implements MigrationInterface {

async up(queryRunner: QueryRunner, connection: Connection, entityManager?: EntityManager): Promise<any> {
public async up(queryRunner: QueryRunner, connection: Connection, entityManager?: EntityManager): Promise<any> {
;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really disgusting tslint rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have not been setting this rule explicitly, it is part of the default rule set. In any case, would you still consider this pull request? Or do you need me to change anything?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, of course we need to have EntityManager in imports. I'm okay with public keyword (however don't really like it). But having ; is not acceptable. Please change only this part.

@Tobias4872
Copy link
Contributor Author

Done. Removed semicolons in empty functions.

@pleerock
Copy link
Member

Thank you!

@pleerock pleerock merged commit e8dd5ca into typeorm:master Jan 26, 2017
@Tobias4872 Tobias4872 deleted the fix-migration-create-command branch January 26, 2017 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants