Remian103 / lolskin-price-tracker

A web app for tracking LoL skin price
3 stars 1 forks source link

Replace SQLite with Postgresql for local test database. #66

Closed jiyolla closed 3 years ago

jiyolla commented 3 years ago

SQLite's default behavior has surprised me too many times. I have end up spending time fixing errors only happens on dev environment which is quite frustrating.

It seems I am not the only one who thinks so. http://michael.robellard.com/2015/07/dont-test-with-sqllite-when-you-use.html https://news.ycombinator.com/item?id=10002142

So migrating the local test database from SQLite to Postgresql. Actually test on Postgresql was also necessary previously, but it was done with much manual work(creating database clone on aws).

So I'm searching for a solution to make a

  1. postgresql database
  2. clone of the one in production
  3. with docker(no extra installation)