<commit_before>ALTER TABLE user_dialogs ADD COLUMN archived_at TIMESTAMP DEFAULT NULL;
ALTER TABLE user_dialogs DROP COLUMN is_archived;
CREATE INDEX ON dialogs(user_id, archived_at);
UPDATE user_dialogs SET archived_at = (
  CASE shown_at
    WHEN NULL THEN NOW() + ((RANDOM()*1000)::INT::TEXT || ' seconds')::INTERVAL<commit_msg>fix(server): fixed migration<commit_after>ALTER TABLE user_dialogs ADD COLUMN archived_at TIMESTAMP DEFAULT NULL;
ALTER TABLE user_dialogs DROP COLUMN is_archived;
CREATE INDEX ON user_dialogs(user_id, archived_at);
UPDATE user_dialogs SET archived_at = (
  CASE shown_at
    WHEN NULL THEN NOW() + ((RANDOM()*1000)::INT::TEXT || ' seconds')::INTERVAL
{'fraction_non_alphanumeric': 0.09530791788856305, 'fraction_numerical': 0.011730205278592375, 'mean_word_length': 6.850574712643678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5401554', 'n_tokens_mistral': 236, 'n_tokens_neox': 229, 'n_words': 65}