aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-27 09:58:53 +0200
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-27 09:58:53 +0200
commitb723f9f83d33a962e9b949cfa05a8fb7d9e5f657 (patch)
tree6bceb6dedb5c091dcc7f89f31232e6ab3cbc83df /sonar-server
parentd999cece595da7c843de473fae9cc0631169a7fc (diff)
downloadsonarqube-b723f9f83d33a962e9b949cfa05a8fb7d9e5f657.tar.gz
sonarqube-b723f9f83d33a962e9b949cfa05a8fb7d9e5f657.zip
SONAR-3636 Add and feed a new column projects.created_at
=> The goal of this column is only to provide an additional piece of information when something wrong happens.
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/330_add_created_at_on_projects.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/330_add_created_at_on_projects.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/330_add_created_at_on_projects.rb
new file mode 100644
index 00000000000..473941b29c8
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/330_add_created_at_on_projects.rb
@@ -0,0 +1,30 @@
+#
+# Sonar, open source software quality management tool.
+# Copyright (C) 2008-2012 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# Sonar is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# Sonar is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Sonar; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+#
+
+#
+# Sonar 3.3
+#
+class AddCreatedAtOnProjects < ActiveRecord::Migration
+
+ def self.up
+ add_column 'projects', 'created_at', :datetime, :null => true
+ end
+
+end