Browse Source

Fix.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
66ac2165f4
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      bitshift/database/migration.py
  2. +2
    -2
      bitshift/database/schema.sql

+ 2
- 2
bitshift/database/migration.py View File

@@ -104,7 +104,7 @@ MIGRATIONS = [
# 8 -> 9 # 8 -> 9
[ [
"""DELIMITER // """DELIMITER //
CREATE PROCEDURE `empty_database`
CREATE PROCEDURE `empty_database`()
BEGIN BEGIN
DELETE FROM `codelets`; DELETE FROM `codelets`;
DELETE FROM `code`; DELETE FROM `code`;
@@ -113,7 +113,7 @@ MIGRATIONS = [
ALTER TABLE `authors` AUTO_INCREMENT = 1; ALTER TABLE `authors` AUTO_INCREMENT = 1;
ALTER TABLE `symbols` AUTO_INCREMENT = 1; ALTER TABLE `symbols` AUTO_INCREMENT = 1;
ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1; ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1;
END
END//
DELIMITER ;""" DELIMITER ;"""
] ]
] ]


+ 2
- 2
bitshift/database/schema.sql View File

@@ -108,7 +108,7 @@ CREATE TABLE `cache_data` (
) ENGINE=InnoDB; ) ENGINE=InnoDB;


DELIMITER // DELIMITER //
CREATE PROCEDURE `empty_database`
CREATE PROCEDURE `empty_database`()
BEGIN BEGIN
DELETE FROM `codelets`; DELETE FROM `codelets`;
DELETE FROM `code`; DELETE FROM `code`;
@@ -117,7 +117,7 @@ CREATE PROCEDURE `empty_database`
ALTER TABLE `authors` AUTO_INCREMENT = 1; ALTER TABLE `authors` AUTO_INCREMENT = 1;
ALTER TABLE `symbols` AUTO_INCREMENT = 1; ALTER TABLE `symbols` AUTO_INCREMENT = 1;
ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1; ALTER TABLE `symbol_locations` AUTO_INCREMENT = 1;
END
END//
DELIMITER ; DELIMITER ;


CREATE EVENT `flush_cache` CREATE EVENT `flush_cache`


Loading…
Cancel
Save