-
Notifications
You must be signed in to change notification settings - Fork 345
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 & improvements #991
Conversation
add semaphore locker add cli timeout add db unique key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SOURCE_UPDATE_MAX_INTERVAL definition seems to be missing.
pgsql migration seems to be missing.
daos/sqlite/Database.php
Outdated
@@ -234,6 +234,47 @@ public function __construct() { | |||
'INSERT INTO version (version) VALUES (11)' | |||
]); | |||
} | |||
if (strnatcmp($version, '12') < 0) { | |||
\F3::get('db')->exec([ | |||
// Table needs to be re-created because ALTER TABLE is rather limited. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to CREATE UNIQUE INDEX
https://www.sqlite.org/lang_createtable.html#constraints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better? 2cf87ca
cliupdate.php
Outdated
@@ -1,4 +1,5 @@ | |||
<?php | |||
set_time_limit(300); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this time limit? We are already using a greater one in the ContentLoader
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix in 54235f8
|
query fixed in 54235f8 |
Regarding the locking, in #967 (comment), I actually meant the |
Also it would be nice if you could split the unique constraint to a separate commit from the locking part. |
add semaphore locker
add cli timeout
add db unique key