Skip to content

Commit 2230103

Browse files
[fix] remove methods causing migration failure on mysql 8 (#258)
1 parent 99f7b4b commit 2230103

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

database/migrations/2019_09_25_103421_update_task_results_duration_type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private function migrateDurationValues(bool $toFloat = true)
4242
->table(TOTEM_TABLE_PREFIX.'task_results', function (Blueprint $table) use ($toFloat) {
4343
// Create new decimal column
4444
if ($toFloat) {
45-
$table->decimal('duration', 24, 14)->default(0.0)->charset('')->collation('');
45+
$table->decimal('duration', 24, 14)->default(0.0);
4646
} else {
4747
$table->string('duration')->default('');
4848
}

tests/Feature/ViewDashboardTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
namespace Studio\Totem\Tests\Feature;
44

5+
use Illuminate\Foundation\Testing\RefreshDatabase;
56
use Studio\Totem\Result;
67
use Studio\Totem\Task;
78
use Studio\Totem\Tests\TestCase;
89

910
class ViewDashboardTest extends TestCase
1011
{
12+
use RefreshDatabase;
13+
1114
/** @test */
1215
public function user_can_view_dashboard()
1316
{

0 commit comments

Comments
 (0)