The problem with migrations to PHPUnit

When the test is run for the first time, everything goes fine. But when you run it a second time, an error occurs PDOException: SQLSTATE[42701]: Duplicate column: 7 ERROR

use Illuminate\Http\UploadedFile;
use PluginTestCase;

class PostTest extends PluginTestCase
    public function testCreateToken()
        $file =  UploadedFile::fake()->image('post.jpg');
        $response = $this->post(
            ['file' => $file, 'name' => 'Main post', 'description' => 'Main post']


Hi @Mirny

You may need to clean up after the test to prevent the duplication error.