Entity field with array: true
and length
generates a new migration every time
#3088
Labels
array: true
and length
generates a new migration every time
#3088
Issue type:
[ ] question
[x ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[x]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
When I add an entity field with
array: true
andlength: <n>
,migration:generate
will drop and re-add the array column every time.Small reproducible case here: https://github.com/realyze/typescript-example (problematic fields added here: https://github.com/realyze/typescript-example/blob/master/src/entity/Post.ts#L20-L27)
Big props to you for this awesome ORM, @pleerock !
The text was updated successfully, but these errors were encountered: