From e2f83c8b40b12b6eec3867aeb86c425546e7f454 Mon Sep 17 00:00:00 2001
From: RomanSteinberg <romanofficial@yandex.com>
Date: Fri, 4 Sep 2015 18:14:55 +0300
Subject: [PATCH] FIX: db

---
 db/Makefile           |  4 ++--
 db/fixes/15_07_21.sql | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/db/Makefile b/db/Makefile
index 872525ca8..7c7a649d2 100644
--- a/db/Makefile
+++ b/db/Makefile
@@ -60,12 +60,12 @@ deployTest: \
 clear \
 ../../mmcs_rating \
 hideData \
-update \
+update
 	@
 
 update: \
 fix \
-deploy \
+deploy
 	@
 
 %:
diff --git a/db/fixes/15_07_21.sql b/db/fixes/15_07_21.sql
index e69de29bb..cb2eac0b8 100644
--- a/db/fixes/15_07_21.sql
+++ b/db/fixes/15_07_21.sql
@@ -0,0 +1,11 @@
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+SET time_zone = "+00:00";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+ALTER TABLE students_groups DROP IsStudyLeave;
+ALTER TABLE students_groups ADD `State` enum('common', 'outlet', 'expulsion', 'leave') NOT NULL DEFAULT 'common';
-- 
GitLab