From 52aa91ef3c6c15260b83ac2b123a0a85599ddaf0 Mon Sep 17 00:00:00 2001
From: fred-fri <fred-fri@dsv.su.se>
Date: Tue, 29 May 2012 13:42:31 +0900
Subject: [PATCH] brushed up current.sql

---
 resources/db_update_scripts/current.sql | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/resources/db_update_scripts/current.sql b/resources/db_update_scripts/current.sql
index eec111b904..1a44f6e9b8 100644
--- a/resources/db_update_scripts/current.sql
+++ b/resources/db_update_scripts/current.sql
@@ -1,8 +1,13 @@
 CREATE TABLE IF NOT EXISTS unit (
   `id` bigint(20) NOT NULL AUTO_INCREMENT,
+  `dateCreated` datetime NOT NULL,
+  `lastModified` datetime NOT NULL,
   `identifier` bigint(20) DEFAULT NULL,
   `title` varchar(255) NOT NULL,
   `version` int(4) NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   UNIQUE KEY `identifier` (`identifier`)
-) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2925 ;
\ No newline at end of file
+) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2925 ;
+
+ALTER TABLE role
+ADD unit_id bigint(20) DEFAULT NULL;