Make the project field in the tags table nullable so it is (hopefully)

optional on setups with enabled foreign key constraints.
This commit is contained in:
Thomas Keller
2012-04-19 00:14:10 +02:00
parent 169fbe6216
commit 75f62663a9
4 changed files with 52 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class IDF_Forge
}
public function getProjectLabelsWithCounts() {
$sql = new Pluf_SQL('project=0');
$sql = new Pluf_SQL('project IS NULL');
$tagList = Pluf::factory('IDF_Tag')->getList(array(
'filter' => $sql->gen(),
'view' => 'join_projects',
@@ -92,4 +92,4 @@ class IDF_Forge
public function setCustomForgePageContent($content) {
$this->conf->setVal('custom_forge_page_content', $content);
}
}
}