Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Avoid error when setting up SQLite cache backends #1766

Conversation

@bwaidelich
Copy link
Member

commented Sep 11, 2019

When configuring the PdoBackend to use an SQLite database
it will be set up automatically upon connection.

Invoking the cache:setup command afterwards leads to an
error:

General error: 1 table "cache" already exists

With this fix, the creation of cache tables is skipped for
SQLite databases during setup.

Fixes: #1763

BUGFIX: Avoid error when setting up SQLite cache backends
When configuring the `PdoBackend` to use an SQLite database
it will be set up automatically upon connection.

Invoking the `cache:setup` command afterwards leads to an
error:

   General error: 1 table "cache" already exists

With this fix, the creation of cache tables is skipped for
SQLite databases during setup.

Fixes: #1763

@bwaidelich bwaidelich changed the base branch from master to 5.2 Sep 11, 2019

@kdambekalns
Copy link
Member

left a comment

Looks reasonable.

bwaidelich added 2 commits Sep 11, 2019
BUGFIX: Avoid error when setting up SQLite cache backends
When configuring the `PdoBackend` to use an SQLite database
it will be set up automatically upon connection.

Invoking the `cache:setup` command afterwards leads to an
error:

   General error: 1 table "cache" already exists

With this fix, the creation of cache tables is skipped for
SQLite databases during setup.

Fixes: #1763

@bwaidelich bwaidelich merged commit f5e840d into neos:5.2 Sep 13, 2019

2 checks passed

continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.