Browse Source

Fixed database updates

Tobias Reich 8 years ago
parent
commit
fe2c56422d

+ 4 - 0
php/database/update_020700.php

@@ -4,6 +4,10 @@
  * Update to version 2.7.0
  */
 
+namespace Lychee\Database;
+
+use Lychee\Modules\Database;
+
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 
 // Add medium to photos

+ 4 - 0
php/database/update_030000.php

@@ -4,6 +4,10 @@
  * Update to version 3.0.0
  */
 
+namespace Lychee\Database;
+
+use Lychee\Modules\Database;
+
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 
 // Remove login

+ 4 - 0
php/database/update_030001.php

@@ -4,6 +4,10 @@
  * Update to version 3.0.1
  */
 
+namespace Lychee\Database;
+
+use Lychee\Modules\Database;
+
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 
 // Change length of photo title

+ 4 - 0
php/database/update_030003.php

@@ -4,6 +4,10 @@
  * Update to version 3.0.3
  */
 
+namespace Lychee\Database;
+
+use Lychee\Modules\Database;
+
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 
 // Add skipDuplicates to settings