server/apps/gallery/appinfo/update.php
2012-06-10 13:17:23 +02:00

9 lines
238 B
PHP

<?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');