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 +}