Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update.php « appinfo « gallery « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a0997ab5e86f88e46ff11a7dabfa24d8599af680 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

$currentVersion=OC_Appconfig::getValue('gallery', 'installed_version');
if (version_compare($currentVersion, '0.5.0', '<')) {
	$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(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/database.xml');
}