You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
I've created several enum columns, every time I create a migration or run schema:log typeorm calls CREATE TYPE for them, even if there have been no changes.
@Entity("equipmentmodels")
@Unique(["name"])exportclassEquipmentModel{/* snipped other properties for simplicity */
@PrimaryGeneratedColumn("uuid")id: string/** Type of equipment */
@Column("enum",{enum: EquipmentModelType})type: EquipmentModelType}exportenumEquipmentModelType{Thing1,Thing2,Thing3,Thing4}
Consistently yields this
DROP TYPE "pcc"."devicemodels_type_enum_old";
ALTER TYPE "pcc"."equipmentmodels_type_enum" RENAME TO "equipmentmodels_type_enum_old";
CREATE TYPE "pcc"."equipmentmodels_type_enum" AS ENUM('0', '1', '2', '3');
The text was updated successfully, but these errors were encountered:
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
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
I've created several enum columns, every time I create a migration or run schema:log typeorm calls
CREATE TYPE
for them, even if there have been no changes.Consistently yields this
The text was updated successfully, but these errors were encountered: