<commit_before>package com.dreaminsteam.rpbot.db.migrations;

import java.sql.SQLException;
import java.util.Date;

import com.dreaminsteam.rpbot.db.DatabaseMigration;
import com.dreaminsteam.rpbot.db.models.Player;
import com.j256.ormlite.dao.BaseDaoImpl;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.table.TableInfo;

public class AddWorkoutMigration extends DatabaseMigration<Player, String>{

	@Override
	public void migrateIfNeeded(Dao<Player, String> dao) {
		try{
			dao.queryForEq("canWorkoutToday", "true");
		}
		catch(SQLException e){
			try {
				dao.executeRawNoArgs("IF NOT EXISTS TABLEALTER TABLE players ADD COLUMN canWorkoutToday BOOLEAN;");
			} catch (SQLException e2) {<commit_msg>Wow, copy and paste terrible.<commit_after>package com.dreaminsteam.rpbot.db.migrations;

import java.sql.SQLException;
import java.util.Date;

import com.dreaminsteam.rpbot.db.DatabaseMigration;
import com.dreaminsteam.rpbot.db.models.Player;
import com.j256.ormlite.dao.BaseDaoImpl;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.table.TableInfo;

public class AddWorkoutMigration extends DatabaseMigration<Player, String>{

	@Override
	public void migrateIfNeeded(Dao<Player, String> dao) {
		try{
			dao.queryForEq("canWorkoutToday", "true");
		}
		catch(SQLException e){
			try {
				dao.executeRawNoArgs("ALTER TABLE players ADD COLUMN canWorkoutToday BOOLEAN;");
			} catch (SQLException e2) {
{'fraction_non_alphanumeric': 0.10962754743499649, 'fraction_numerical': 0.014054813773717497, 'mean_word_length': 5.56221198156682, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6746124', 'n_tokens_mistral': 535, 'n_tokens_neox': 502, 'n_words': 95}