Remove upgrade functions (sync)
This commit is contained in:
@@ -24,9 +24,6 @@ class CATC extends Main
|
|||||||
|
|
||||||
//if($this->oDb->sDbState == Db::DB_PEACHY) $this->oAuth = new Auth($this->oDb, Settings::API_KEY);
|
//if($this->oDb->sDbState == Db::DB_PEACHY) $this->oAuth = new Auth($this->oDb, Settings::API_KEY);
|
||||||
$this->oAuth = new Auth($this->oDb, Settings::API_KEY);
|
$this->oAuth = new Auth($this->oDb, Settings::API_KEY);
|
||||||
|
|
||||||
//TODO remove. For upgrade purposes only
|
|
||||||
(new Doc($this->oDb))->getList('full');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function install()
|
protected function install()
|
||||||
|
|||||||
11
inc/doc.php
11
inc/doc.php
@@ -84,16 +84,7 @@ class Doc extends PhpObject {
|
|||||||
'from' => self::DOC_TABLE,
|
'from' => self::DOC_TABLE,
|
||||||
'constraint'=> $asKeys
|
'constraint'=> $asKeys
|
||||||
));
|
));
|
||||||
|
foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']);
|
||||||
foreach($asDocs as &$asDoc) {
|
|
||||||
$asDoc['filepath'] = self::getFilePath($asDoc['filename']);
|
|
||||||
|
|
||||||
//TODO remove. For upgrade purposes only
|
|
||||||
if($asDoc['filehash']=='') {
|
|
||||||
$asDoc['filehash'] = self::getChecksum($asDoc['filename']);
|
|
||||||
$this->oDb->updateRow(self::DOC_TABLE, $asDoc[Db::getId(self::DOC_TABLE)], array('filehash'=>$asDoc['filehash']), false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $asDocs;
|
return $asDocs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,5 +10,6 @@ Prise de notes pour les cours du Collège des Arts Thérapeutiques Chinois
|
|||||||
* [x] Progress bar
|
* [x] Progress bar
|
||||||
* [x] Save note on F5/quit
|
* [x] Save note on F5/quit
|
||||||
* [ ] Sync local with remote repository
|
* [ ] Sync local with remote repository
|
||||||
* [ ] Table in Quill JS
|
* [x] Table in Quill JS
|
||||||
* [ ] Font Awesome icons in Quill JS Toolbar
|
* [ ] Font Awesome icons in Quill JS Toolbar
|
||||||
|
* [ ] Todo lists
|
||||||
Reference in New Issue
Block a user