Issue type:
- question
- bug report
- feature request
- documentation issue
Database system/driver:
-
cordova
-
mongodb
-
mssql
-
mysql
/mariadb
-
oracle
-
postgres
-
sqlite
-
sqljs
-
websql
TypeORM version:
-
latest
-
@next
-
0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
- Create entity, e.g:
User
with columnemail
- Generate and run migration
typeorm migrations:generate -n Init && typeorm migrations:run
- Add new column
createdAt
withdefault
set to() => 'NOW()'
- Generate and run migration
typeorm migrations:generate -n AlterCreated && typeorm migrations:run
- Add new column
name
- If we generate migration again
typeorm migrations:generate -n Test
, the queries that generated because the changes on step 3 will show up again