[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 45/65: database upgrade : if empty, skipped
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 45/65: database upgrade : if empty, skipped |
Date: |
Wed, 09 Sep 2015 08:27:26 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 709141e14352c1cb8e3b8565d38937647f1790bf
Author: Dany De Bontridder <address@hidden>
Date: Sun Sep 6 06:04:44 2015 +0200
database upgrade : if empty, skipped
---
include/class_database.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/class_database.php b/include/class_database.php
index 30d8548..9b87e70 100644
--- a/include/class_database.php
+++ b/include/class_database.php
@@ -404,6 +404,10 @@ class Database
function apply_patch($p_name, $from_setup=1)
{
+ if ( ! $this->exist_table('version')) {
+ echo _('Base de donnée vide');
+ return;
+ }
$MaxVersion=DBVERSION-1;
$succeed="<span style=\"font-size:18px;color:green\">✓</span>";
echo '<ul style="list-type-style:square">';
- [Noalyss-commit] [noalyss] 36/65: Missing file, (continued)
- [Noalyss-commit] [noalyss] 36/65: Missing file, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 37/65: Use the profile instead of the login name in the view, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 39/65: Add the side D/C to aged balance, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 38/65: translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 34/65: increase size of font in box, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 40/65: Remove ENABLE_CACHE + DB Upgrade, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 42/65: Remove ENABLE_CACHE, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 43/65: set version, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 41/65: database upgrade, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 47/65: avoid duplicate, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 45/65: database upgrade : if empty, skipped,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 46/65: drop view before recreating it, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 44/65: database upgrade, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 48/65: drop view before recreating it, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 49/65: translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 26/65: update translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 50/65: Fix SQL upgrade, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 52/65: translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 51/65: Correct Add category, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 32/65: translation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 55/65: translation, Dany De Bontridder, 2015/09/09