<commit_before>package migrations

import (
	"github.com/rubenv/sql-migrate"
)

func addApplicationAndVersionColumnsToEnvironmentsTable() *migrate.Migration {
	return &migrate.Migration{
		Id: "12",
		Up: []string{`
      ALTER TABLE environments
        ADD COLUMN application_uuid varchar(36) NOT NULL AFTER application_id,
        ADD COLUMN version_id int(10) unsigned DEFAULT NULL AFTER application_uuid,
        ADD COLUMN version_uuid varchar(36) NOT NULL AFTER version_id
      ;
    `},
		Down: []string{`
      ALTER TABLE environments
        DROP COLUMN application_uuid,
        DROP COLUMN version_id,
		DROP COLUMN version_uuid
      ;
    `},
	}
}
<commit_msg>set default to null instead of not null<commit_after>package migrations

import (
	"github.com/rubenv/sql-migrate"
)

func addApplicationAndVersionColumnsToEnvironmentsTable() *migrate.Migration {
	return &migrate.Migration{
		Id: "12",
		Up: []string{`
      ALTER TABLE environments
        ADD COLUMN application_uuid varchar(36) DEFAULT NULL AFTER application_id,
        ADD COLUMN version_id int(10) unsigned DEFAULT NULL AFTER application_uuid,
        ADD COLUMN version_uuid varchar(36) NOT NULL AFTER version_id
      ;
    `},
		Down: []string{`
      ALTER TABLE environments
        DROP COLUMN application_uuid,
        DROP COLUMN version_id,
		DROP COLUMN version_uuid
      ;
    `},
	}
}

{'fraction_non_alphanumeric': 0.07670043415340087, 'fraction_numerical': 0.011577424023154847, 'mean_word_length': 3.349056603773585, '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': '5219878', 'n_tokens_mistral': 436, 'n_tokens_neox': 431, 'n_words': 117}