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

db bugfixes #510

Closed
wants to merge 1 commit into from
Closed

db bugfixes #510

wants to merge 1 commit into from

Conversation

fabianwolf
Copy link
Contributor

this fixes 2 bugs:

  • creation of empty sqlite file by system settings, if file does not
    exist, but dir is writable
  • php warning at install, cause configured version is not defined at the
    very start error installing baikal 0.4.1 #509

this fixes 2 bugs:
- creation of empty sqlite file by system settings, if file does not
exist, but dir is writable
- php warnig at install, cause configured version is not defined at the
very start
@fabianwolf fabianwolf changed the title minor db bugfixes db bugfixes Mar 19, 2016
@evert
Copy link
Member

evert commented Mar 21, 2016

I guess this problem got introduced because warnings are now shown, whereas before they were always hidden?

@fabianwolf
Copy link
Contributor Author

Yes i missed that when testing, because php warning was only written to php log.
(i should have checked that sry)

@@ -129,6 +129,13 @@ function validationHook(\Formal\Form $oForm, \Formal\Form\Morphology $oMorpho) {
// We'll have to clean this up later.
$sFile = eval('return ' . $sFile . ';');

if (!file_exists($sFile)) {
$sMessage = "DB file does not exist.";
$sMessage .= "</br>You can copy a sqlite Database file from there: <strong>Core/Resources/Db/SQLite/db.sqlite</strong>";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect actually.. that file no longer exists, because it was actually a bad idea to ship a sqlite database, as it doesn't work for every version of sqlite. Furthermore, the sqlite database should get automatically created.

@evert evert closed this in 69085ec Mar 21, 2016
@fabianwolf
Copy link
Contributor Author

I think we should add the sqlite DB creation code from install then, so people can switch to sqlite in settings

@evert
Copy link
Member

evert commented Mar 21, 2016

That's already the case. sqlite and mysql databases are now automatically generated.

@fabianwolf
Copy link
Contributor Author

Ok that's nice thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants