Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add suffix to sequelize records while updting

tableModel.update(
    {
      name: Sequelize.fn("concat", Sequelize.col("name"), "your-suffix"),
    },
    {
      where: {
        userType: "not-updated",
      },
    }
  );
 
PREVIOUS NEXT
Tagged: #add #suffix #sequelize #records #updting
ADD COMMENT
Topic
Name
1+6 =