Guest User

Untitled

a guest
Apr 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. [{
  2. "name": "default",
  3. "type": "postgres",
  4. "host": "localhost",
  5. "port": 5432,
  6. "username": "username",
  7. "password": "",
  8. "database": "database",
  9. "entities": [
  10. "build/entity/**/*.js"
  11. ],
  12. "migrations": [
  13. "build/migration/**/*.js"
  14. ],
  15. "synchronize": false,
  16. "autoSchemaSync": true,
  17. "logging": false,
  18. "cli": {
  19. "migrationsDir": "src/migration",
  20. "entitiesDir": "src/entity",
  21. "subscribersDir": "src/subscriber"
  22. }
  23. },
  24. {
  25. "name": "test",
  26. "type": "postgres",
  27. "host": "localhost",
  28. "port": 5432,
  29. "username": "username",
  30. "password": "",
  31. "database": "database-test",
  32. "entities": [
  33. "build/entity/**/*.js"
  34. ],
  35. "migrations": [
  36. "build/migration/**/*.js"
  37. ],
  38. "synchronize": false,
  39. "autoSchemaSync": true,
  40. "logging": false,
  41. "cli": {
  42. "migrationsDir": "src/migration",
  43. "entitiesDir": "src/entity",
  44. "subscribersDir": "src/subscriber"
  45. }
  46. }]
  47.  
  48. typeorm migrations:run -c test
Add Comment
Please, Sign In to add comment