Steps to reproduce synchronization bug (typeorm/typeorm#7992)
- Run the app by providing 2 env variables -
DB_USERNAME
andDB_PASSWORD
for postgres db connection. Make suretest
DB exists in postgres. - In first run it'll create
test
table with columnsid
,col1
andcol2
. - Now if you add another column
col3
(of any type) in entites/test.ts Typeorm Entity and restart the app, a new columns will not be added in DB table event thoughsynchronize=true
is set in connection.