diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-09-13 14:07:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-09-13 14:07:56 -0400 |
commit | a6a00a00400f164c4b18094999a5ed72366dd519 (patch) | |
tree | 7d2bfc3fe4a36649f9092463228f4553979aef94 /app/Schema/Mysql.php | |
parent | c405f99fc8b7420b3e69c633b3259756a1ceb2f2 (diff) |
First draft for plugins system
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r-- | app/Schema/Mysql.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index efdb159b..5a12bb3c 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,18 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 86; +const VERSION = 87; + +function version_87($pdo) +{ + $pdo->exec(" + CREATE TABLE plugin_schema_versions ( + plugin VARCHAR(80) NOT NULL, + version INT NOT NULL DEFAULT 0, + PRIMARY KEY(plugin) + ) ENGINE=InnoDB CHARSET=utf8 + "); +} function version_86($pdo) { |