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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Updates.php')
-rw-r--r--core/Updates.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/core/Updates.php b/core/Updates.php
new file mode 100644
index 0000000000..3d5e4df537
--- /dev/null
+++ b/core/Updates.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ *
+ * @category Piwik
+ * @package Piwik
+ */
+
+/**
+ * Abstract class for update scripts
+ *
+ * @example core/Updates/0.4.2.php
+ * @package Piwik
+ */
+abstract class Piwik_Updates
+{
+ /**
+ * Return SQL to be executed in this update
+ *
+ * @param string Adapter name
+ * @return array
+ */
+ static function getSql($adapter = 'PDO_MYSQL')
+ {
+ return array();
+ }
+
+ /**
+ * Incremental version update
+ */
+ abstract static function update();
+}