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(
|
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
|
SELECT
|
||||||
u.id,
|
u.id,
|
||||||
:paramTypeId,
|
:paramTypeId,
|
||||||
:encryptedOptionId,
|
:encryptedOptionId
|
||||||
NOW(),
|
|
||||||
NOW()
|
|
||||||
FROM community."user" u
|
FROM community."user" u
|
||||||
LEFT JOIN community.user_param existing
|
LEFT JOIN community.user_param existing
|
||||||
ON existing.user_id = u.id
|
ON existing.user_id = u.id
|
||||||
|
|||||||
Reference in New Issue
Block a user