Skip to content

Commit 35a53a2

Browse files
author
Umed Khudoiberdiev
committed
updated typeorm version
1 parent 657bb0d commit 35a53a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"pg": "^6.1.0",
3030
"reflect-metadata": "^0.1.8",
31-
"typeorm": "0.0.3"
31+
"typeorm": "0.0.4"
3232
},
3333
"scripts": {
3434
"start": "tsc && node src/index.js"

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {Category} from "./entity/Category";
55

66
createConnection({
77
driver: {
8-
type: "postgres",
8+
type: "postgres", // to use mysql instead, just change it to "mysql", change other params (port, credentials) and install driver: npm i mysql
99
host: "localhost",
1010
port: 5432,
1111
username: "test",
12-
password: "admin",
12+
password: "test",
1313
database: "test"
1414
},
1515
entities: [

0 commit comments

Comments
 (0)