<commit_before>class OneDatePerReport extends edu.northwestern.bioinformatics.bering.Migration {
    void up() {
        addColumn("ae_reports", "detection_date", "date")
        execute("UPDATE ae_reports\n" +
                "   SET detection_date=\n" +
                "       (SELECT ae.detection_date FROM adverse_events ae WHERE ae.report_id=id)")
        dropColumn("adverse_events", "detection_date")
        setNullable("ae_reports", "detection_date", false)
    }

    void down() {
        addColumn("adverse_events", "detection_date", "date")
        execute("UPDATE adverse_events\n" +
                "   SET detection_date=\n" +
                "       (SELECT aer.detection_date FROM ae_reports aer WHERE report_id=aer.id)")
        dropColumn("ae_reports", "detection_date")
        setNullable("adverse_events", "detection_date", false)
    }
}<commit_msg>Need to qualify column names in order for data to be preserved<commit_after>class OneDatePerReport extends edu.northwestern.bioinformatics.bering.Migration {
    void up() {
        addColumn("ae_reports", "detection_date", "date")
        execute("UPDATE ae_reports\n" +
                "   SET detection_date=\n" +
                "       (SELECT ae.detection_date FROM adverse_events ae WHERE ae.report_id=ae_reports.id)")
        dropColumn("adverse_events", "detection_date")
        setNullable("ae_reports", "detection_date", false)
    }

    void down() {
        addColumn("adverse_events", "detection_date", "date")
        execute("UPDATE adverse_events\n" +
                "   SET detection_date=\n" +
                "       (SELECT aer.detection_date FROM ae_reports aer WHERE adverse_events.report_id=aer.id)")
        dropColumn("ae_reports", "detection_date")
        setNullable("adverse_events", "detection_date", false)
    }
}
{'fraction_non_alphanumeric': 0.11409764125068568, 'fraction_numerical': 0.0, 'mean_word_length': 2.8158995815899583, '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': '6349387', 'n_tokens_mistral': 570, 'n_tokens_neox': 522, 'n_words': 103}