Forcing any new (given) DB. Create tables. Show tables in DB.
Showing
- server/src/db/db_init.ts 12 additions, 9 deletionsserver/src/db/db_init.ts
- server/src/db/seqConnection.ts 38 additions, 9 deletionsserver/src/db/seqConnection.ts
- server/src/db/showDBTables.ts 18 additions, 0 deletionsserver/src/db/showDBTables.ts
- server/src/server.ts 4 additions, 6 deletionsserver/src/server.ts
server/src/db/showDBTables.ts
0 → 100644
-
- Database will be forced if not exists.
- Tables will be created into any new (given) Database.
- Problem of some tables being created before others, solved.
- Testing Sequelize-Connection deleted.
Could need installation of "pg".
To test it:
- change the name in .env to "Fahrtenbuch" (or any other name) and run normally using docker.
Edited by alrwasheda
Please register or sign in to comment