From 87d54392f1764efa889c3b3a983be4c28c2f517b Mon Sep 17 00:00:00 2001 From: Bart Duisters Date: Mon, 23 Apr 2018 21:00:44 +0200 Subject: [PATCH] Changed autoSchemaSync to synchronize (new way according to typeorm) --- .../pages/recipes/sql-typeorm/sql-typeorm.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/homepage/pages/recipes/sql-typeorm/sql-typeorm.component.ts b/src/app/homepage/pages/recipes/sql-typeorm/sql-typeorm.component.ts index 3006971de3..68b37b2abd 100644 --- a/src/app/homepage/pages/recipes/sql-typeorm/sql-typeorm.component.ts +++ b/src/app/homepage/pages/recipes/sql-typeorm/sql-typeorm.component.ts @@ -11,7 +11,7 @@ export class SqlTypeormComponent extends BasePageComponent { return ` $ npm install --save typeorm mysql`; } - + get databaseProviders() { return ` import { createConnection } from 'typeorm'; @@ -29,7 +29,7 @@ export const databaseProviders = [ entities: [ __dirname + '/../**/*.entity{.ts,.js}', ], - autoSchemaSync: true, + synchronize: true, }), }, ];`; @@ -122,4 +122,4 @@ import { PhotoService } from './photo.service'; }) export class PhotoModule {}` } -} \ No newline at end of file +}