From 66ac2165f47a22ea81b0a5129adfa7234ddf2564 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 6 Jun 2014 13:05:35 -0400 Subject: [PATCH] Fix. --- bitshift/database/migration.py | 4 ++-- bitshift/database/schema.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitshift/database/migration.py b/bitshift/database/migration.py index 7a4ba62..b3eabbd 100644 --- a/bitshift/database/migration.py +++ b/bitshift/database/migration.py @@ -104,7 +104,7 @@ MIGRATIONS = [ # 8 -> 9 [ """DELIMITER // - CREATE PROCEDURE `empty_database` + CREATE PROCEDURE `empty_database`() BEGIN DELETE FROM `codelets`; DELETE FROM `code`; @@ -113,7 +113,7 @@ MIGRATIONS = [ ALTER TABLE `authors` AUTO_INCREMENT = 1; ALTER TABLE `symbols` AUTO_INCREMENT = 1; ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1; - END + END// DELIMITER ;""" ] ] diff --git a/bitshift/database/schema.sql b/bitshift/database/schema.sql index 65266b8..3c4a75e 100644 --- a/bitshift/database/schema.sql +++ b/bitshift/database/schema.sql @@ -108,7 +108,7 @@ CREATE TABLE `cache_data` ( ) ENGINE=InnoDB; DELIMITER // -CREATE PROCEDURE `empty_database` +CREATE PROCEDURE `empty_database`() BEGIN DELETE FROM `codelets`; DELETE FROM `code`; @@ -117,7 +117,7 @@ CREATE PROCEDURE `empty_database` ALTER TABLE `authors` AUTO_INCREMENT = 1; ALTER TABLE `symbols` AUTO_INCREMENT = 1; ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1; - END + END// DELIMITER ; CREATE EVENT `flush_cache`