diff options
Diffstat (limited to 'apps/gallery/appinfo')
-rw-r--r-- | apps/gallery/appinfo/database.xml | 42 | ||||
-rw-r--r-- | apps/gallery/appinfo/update.php | 9 | ||||
-rw-r--r-- | apps/gallery/appinfo/version | 2 |
3 files changed, 14 insertions, 39 deletions
diff --git a/apps/gallery/appinfo/database.xml b/apps/gallery/appinfo/database.xml index f370e1521e4..d1ccd6b5a24 100644 --- a/apps/gallery/appinfo/database.xml +++ b/apps/gallery/appinfo/database.xml @@ -5,66 +5,32 @@ <overwrite>false</overwrite> <charset>latin1</charset> <table> - <name>*dbprefix*gallery_albums</name> + <name>*dbprefix*pictures_images_cache</name> <declaration> <field> - <name>album_id</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <autoincrement>1</autoincrement> - <length>4</length> - </field> - <field> <name>uid_owner</name> <type>text</type> <notnull>true</notnull> <length>64</length> </field> <field> - <name>album_name</name> - <type>text</type> - <notnull>true</notnull> - <length>100</length> - </field> - <field> - <name>album_path</name> - <type>text</type> - <notnull>true</notnull> - <length>256</length> - </field> - <field> - <name>parent_path</name> + <name>path</name> <type>text</type> <notnull>true</notnull> <length>256</length> </field> - </declaration> - </table> - <table> - <name>*dbprefix*gallery_photos</name> - <declaration> <field> - <name>photo_id</name> + <name>width</name> <type>integer</type> - <default>0</default> <notnull>true</notnull> - <autoincrement>1</autoincrement> <length>4</length> </field> <field> - <name>album_id</name> + <name>height</name> <type>integer</type> - <default>0</default> <notnull>true</notnull> <length>4</length> </field> - <field> - <name>file_path</name> - <type>text</type> - <notnull>true</notnull> - <length>256</length> - </field> </declaration> </table> <table> diff --git a/apps/gallery/appinfo/update.php b/apps/gallery/appinfo/update.php new file mode 100644 index 00000000000..dd248e21b3e --- /dev/null +++ b/apps/gallery/appinfo/update.php @@ -0,0 +1,9 @@ +<?php + +$stmt = OCP\DB::prepare('DROP TABLE IF EXISTS *PREFIX*gallery_photos'); +$stmt->execute(); +$stmt = OCP\DB::prepare('DROP TABLE IF EXISTS *PREFIX*gallery_albums'); +$stmt->execute(); + +\OC_DB::createDbFromStructure('./database.xml'); + diff --git a/apps/gallery/appinfo/version b/apps/gallery/appinfo/version index 17b2ccd9bf9..8f0916f768f 100644 --- a/apps/gallery/appinfo/version +++ b/apps/gallery/appinfo/version @@ -1 +1 @@ -0.4.3 +0.5.0 |