Steps to reproduce synchronization bug (typeorm/typeorm#7992)
- Run the app by providing 2 env variables -
DB_USERNAMEandDB_PASSWORDfor postgres db connection. Make suretestDB exists in postgres. - In first run it'll create
testtable with columnsid,col1andcol2. - 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=trueis set in connection.