Baikal - Update (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
== Versionen ==


[[Baikal - Update auf Version 0.7.1 (Linux)|Baikal - Update auf Version 0.7.1]]


== Von Version 0.2.7 auf Version 0.7.1 ==
[[Baikal - Update auf Version 0.9.1 (Linux)|Baikal - Update auf Version 0.9.1]]
 
=== Download ===
 
[https://github.com/sabre-io/Baikal/releases https://github.com/sabre-io/Baikal/releases]
 
<pre>
cd ~/temp
wget https://github.com/sabre-io/Baikal/releases/download/0.7.1/baikal-0.7.1.zip
</pre>
 
=== Installation ===
 
<pre>
unzip baikal-0.7.1.zip
sudo mv baikal /mnt/synology/web1/www/baikal0_7_1
cd /mnt/synology/web1/www/
sudo chown -R www-data:www-data baikal0_7_1
 
sudo mv baikal baikal_bak
sudo ln -s baikal0_7_1 baikal
</pre>
 
=== Upgrade ===
 
==== The constant PROJECT_DB_MYSQL_HOST, containing the MySQL host name, is not set. ====
 
Die Datei
 
<pre>
sudo vi /mnt/synology/web1/www/bakail/config/baikal.yaml
</pre>
 
bearbeiten und folgende Variablen anpassen:
 
<pre>
mysql_host: ''
mysql_dbname: ''
mysql_username: ''
mysql_password: ''
</pre>
 
==== SQL-Syntax-Errors ====
 
Remove all <code>asc</code> within
 
<pre>
sudo vi /mnt/synology/web1/www/baikal0_7_1/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php
</pre>
 
Comment out line 225, 260:
 
<pre>
//                $pdo->exec("CREATE INDEX principaluri_uri ON calendarsubscriptions (principaluri, uri);");
//                $pdo->exec('CREATE UNIQUE INDEX path_property ON propertystorage (path, name);');       
</pre>
 
Add following statement
 
<pre>
$pdo->exec('ALTER TABLE propertystorage DROP PRIMARY KEY, MODIFY id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT;');
</pre>
 
at line 299;
 
At line 387 change the lines (adding length for unique part):
 
<pre>
    UNIQUE (principaluri(255), uri(255)),
    UNIQUE (calendarid, principaluri(255)),
</pre>


== Links ==
== Links ==

Aktuelle Version vom 21. März 2022, 23:02 Uhr