Remove upgrade functions (sync)

This commit is contained in:
2019-10-05 10:01:37 +02:00
parent 57e79a2abc
commit f6e2140842
3 changed files with 4 additions and 15 deletions

View File

@@ -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()

View File

@@ -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;
} }

View File

@@ -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