<commit_before><?php

namespace BoomCMS\Tests;

use Illuminate\Support\Facades\App;
use PDO;

class MigrationsTest extends AbstractTestCase
{
    public function testMigrationsComplete()
    {
        $pdo = new PDO(env('DB_DRIVER').':host='.env('DB_HOST'), env('DB_USERNAME'), env('DB_PASSWORD'));
        $pdo->exec('drop database if exists '.env('DB_DATABASE'));
        $pdo->exec('create database '.env('DB_DATABASE'));

        $app = App::getFacadeRoot();
        $app['migration.repository']->createRepository();
        $app['migrator']->run(realpath(__DIR__.'/../src/database/migrations'));

        $pdo->exec('drop database '.env('DB_DATABASE'));
    }
}<commit_msg>Attempting to fix migration which only fails on Travis CI<commit_after><?php

namespace BoomCMS\Tests;

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Schema;
use PDO;

class MigrationsTest extends AbstractTestCase
{
    public function testMigrationsComplete()
    {
        Schema::defaultStringLength(2050);

        $pdo = new PDO(env('DB_DRIVER').':host='.env('DB_HOST'), env('DB_USERNAME'), env('DB_PASSWORD'));
        $pdo->exec('drop database if exists '.env('DB_DATABASE'));
        $pdo->exec('create database '.env('DB_DATABASE'));

        $app = App::getFacadeRoot();
        $app['migration.repository']->createRepository();
        $app['migrator']->run(realpath(__DIR__.'/../src/database/migrations'));

        $pdo->exec('drop database '.env('DB_DATABASE'));
    }
}
{'fraction_non_alphanumeric': 0.174645987862441, 'fraction_numerical': 0.0026972353337828725, 'mean_word_length': 4.064846416382252, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6506299', 'n_tokens_mistral': 479, 'n_tokens_neox': 477, 'n_words': 80}