itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.69k stars 321 forks source link

Clockwork tries to create new table when using search #578

Closed screw closed 2 years ago

screw commented 2 years ago

It looks like Clockwork is trying to create an existing table (clockwork) over and over again when using the search in the top left corner.

When I don't use the search I can browse/view requests, commands, etc.

List of requests that fail image

And the response:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42P07]: Duplicate table: 7 ERROR:  relation "clockwork" already exists in file /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php on line 18

#0 /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(60): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /var/www/vendor/itsgoingd/clockwork/Clockwork/Storage/SqlStorage.php(235): Doctrine\DBAL\Driver\PDOConnection->exec('CREATE TABLE "c...')
#2 /var/www/vendor/itsgoingd/clockwork/Clockwork/Storage/SqlStorage.php(268): Clockwork\Storage\SqlStorage->initialize()
#3 /var/www/vendor/itsgoingd/clockwork/Clockwork/Storage/SqlStorage.php(173): Clockwork\Storage\SqlStorage->query('SELECT "id", "v...', Array)
#4 /var/www/vendor/itsgoingd/clockwork/Clockwork/Support/Laravel/ClockworkSupport.php(64): Clockwork\Storage\SqlStorage->next('1653560205-6569...', 0, Object(Clockwork\Storage\SqlSearch))
#5 /var/www/vendor/itsgoingd/clockwork/Clockwork/Support/Laravel/ClockworkController.php(33): Clockwork\Support\Laravel\ClockworkSupport->getData('1653560205-6569...', 'next', NULL, Array)