Skip to content

Commit 367b835

Browse files
committed
singleQuote to true. logging and dropSchema to false. single quotes on data-source.ts
1 parent 6700475 commit 367b835

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

netepscript.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ echo -e "${YELLOW}\n9) We added the .prettierrc file with its configuration${NC}
117117
touch ./.prettierrc
118118
cat << EOF > .prettierrc
119119
{
120-
"singleQuote": false,
120+
"singleQuote": true,
121121
"trailingComma": "all",
122122
"semi": true,
123123
"tabWidth": 2,
@@ -154,18 +154,18 @@ EOF
154154
echo -e "${YELLOW}\n11) We configured data-source.ts ${NC}"
155155

156156
cat << EOF > src/config/data-source.ts
157-
import { DataSource } from "typeorm";
157+
import { DataSource } from 'typeorm';
158158
159159
export const AppDataSource = new DataSource({
160-
type: "postgres",
161-
host: "localhost",
160+
type: 'postgres',
161+
host: 'localhost',
162162
port: 5432,
163-
username: "postgres",
164-
password: "postgres",
165-
database: "new_database", //This database must be created before initialize the typeorm
166-
//dropSchema: true, //Erase database content when the server starts
163+
username: 'postgres',
164+
password: 'postgres',
165+
database: 'new_database', //This database must be created before initialize the typeorm
166+
dropSchema: false, //Erase database content when the server starts
167167
synchronize: true,
168-
// logging: true, // Don't log queries in the console
168+
logging: false, // Don't log queries in the console
169169
entities: [],
170170
subscribers: [],
171171
migrations: [],

0 commit comments

Comments
 (0)