Skip to content

Commit

Permalink
Changed autoSchemaSync to synchronize (new way according to typeorm)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartduisters committed Apr 23, 2018
1 parent b88c712 commit e26fb28
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 e26fb28

Please sign in to comment.