refactor(backfill): remove unnecessary timestamp fields from user_param insert query
All checks were successful
Deploy to production / deploy (push) Successful in 2m8s
All checks were successful
Deploy to production / deploy (push) Successful in 2m8s
This commit is contained in:
@@ -45,13 +45,11 @@ async function insertMissingDefaults({ description, optionValue }) {
|
||||
|
||||
const [rows] = await sequelize.query(
|
||||
`
|
||||
INSERT INTO community.user_param (user_id, param_type_id, value, created_at, updated_at)
|
||||
INSERT INTO community.user_param (user_id, param_type_id, value)
|
||||
SELECT
|
||||
u.id,
|
||||
:paramTypeId,
|
||||
:encryptedOptionId,
|
||||
NOW(),
|
||||
NOW()
|
||||
:encryptedOptionId
|
||||
FROM community."user" u
|
||||
LEFT JOIN community.user_param existing
|
||||
ON existing.user_id = u.id
|
||||
|
||||
Reference in New Issue
Block a user