<commit_before><?php declare(strict_types=1);

namespace Koldy\Db\Migration;

use Koldy\Db\Model;

/**
 * Class KoldyMigration
 *
 * If you want to override this class, just create "KoldyMigration" class anywhere in your project and extend it
 * with Koldy\Db\Model, after which you can redefine connection and table name.
 *
 * @package Koldy\Db\Migration
 */
class KoldyMigration extends Model {

    protected static $table = 'koldy_migration';

}<commit_msg>Ability to define where koldy_migration will be stored<commit_after><?php declare(strict_types=1);

namespace Koldy\Db\Migration;

use Koldy\Application;
use Koldy\Db\Model;

/**
 * Class KoldyMigration
 *
 * If you want to override this class, just create "KoldyMigration" class anywhere in your project and extend it
 * with Koldy\Db\Model, after which you can redefine connection and table name.
 *
 * @package Koldy\Db\Migration
 */
class KoldyMigration extends Model {

    protected static $table = 'koldy_migration';

    /**
     * If you define koldy_migration database adapter, then migrations table will be stored there
     *
     * @return null|string
     */
    public static function getAdapterConnection(): ?string
    {
        return Application::getConfig('database')->has('koldy_migration') ? 'koldy_migration' : null;
    }

}
{'fraction_non_alphanumeric': 0.09312977099236641, 'fraction_numerical': 0.0015267175572519084, 'mean_word_length': 4.042307692307692, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5514247', 'n_tokens_mistral': 394, 'n_tokens_neox': 402, 'n_words': 127}