Skip to content

Commit

Permalink
Merge pull request nestjs#66 from bartduisters/master
Browse files Browse the repository at this point in the history
Changed autoSchemaSync to synchronize (new way according to typeorm)
  • Loading branch information
kamilmysliwiec authored Apr 28, 2018
2 parents c7052d0 + 87d5439 commit 5537b7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class SqlTypeormComponent extends BasePageComponent {
return `
$ npm install --save typeorm mysql`;
}

get databaseProviders() {
return `
import { createConnection } from 'typeorm';
Expand All @@ -29,7 +29,7 @@ export const databaseProviders = [
entities: [
__dirname + '/../**/*.entity{.ts,.js}',
],
autoSchemaSync: true,
synchronize: true,
}),
},
];`;
Expand Down Expand Up @@ -122,4 +122,4 @@ import { PhotoService } from './photo.service';
})
export class PhotoModule {}`
}
}
}

0 comments on commit 5537b7a

Please sign in to comment.