I have a table which has a field `activated_at` timestamp NULL DEFAULT NULL, which means that it can contain a timestamp or it can be null and it\'s
`activated_at` timestamp NULL DEFAULT NULL
null
this solution check if column_name is empty or NULL
column_name
WHERE (LENGTH(`column_name`) > 0)
->andWhere(['>', 'LENGTH(column_name)', 0]) //check if empty or null
Another variant - check only for NULL
WHERE column_name IS NOT NULL
->andWhere(['IS NOT', 'column_name', null]); // check on null