I am trying to write a function that works on all of the JavaScript array types, e.g. on number[], Float32Array etc. It should return the same type that it gets as a parameter. A simple example would be: The function should be able to use all methods common to all array types (not just map). I also tried but I
Tag: constraints
Remove constraints in sequelize migration
I’m adding a unique constraint in a migration via the migrations.changeColumn function. Adding the constraint works, but since you need to provide a “backwards migration“, removing it the same way does not. It doesn’t give any errors when migrating backwards, but again applying the forward migration results in Possibly unhandled SequelizeDatabaseError: relation “myAttribute_unique_idx” already exists. (The used database is postgres)