Browse Source

Install updates

Nathaniel van Diepen 11 years ago
parent
commit
e7ca5e94aa
3 changed files with 60 additions and 3 deletions
  1. 1 0
      install/index.js
  2. 13 3
      install/index.php
  3. 46 0
      install/install.template.sql

+ 1 - 0
install/index.js

@@ -0,0 +1 @@
+// TODO - Add initial page loading and handlers

+ 13 - 3
install/index.php

@@ -1,3 +1,13 @@
-<?php
-	print_r($_GET);
-?>
+<html>
+	<head>
+		<title>Install</title>
+		<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
+		<script src="index.js"></script>
+	</head>
+	<body>
+		<!-- TODO add containers for content -->
+		<?php
+			print_r($_GET);
+		?>
+	</body>
+</html>

+ 46 - 0
install/install.template.sql

@@ -18,6 +18,8 @@ USE `$DATABASENAME`;
 --
 -- Table structure for table `issues`
 --
+-- Creation: Oct 04, 2013 at 03:32 AM
+--
 
 DROP TABLE IF EXISTS `issues`;
 CREATE TABLE IF NOT EXISTS `issues` (
@@ -45,6 +47,8 @@ CREATE TABLE IF NOT EXISTS `issues` (
 --
 -- Table structure for table `messages`
 --
+-- Creation: Oct 05, 2013 at 02:24 AM
+--
 
 DROP TABLE IF EXISTS `messages`;
 CREATE TABLE IF NOT EXISTS `messages` (
@@ -75,9 +79,41 @@ CREATE TABLE IF NOT EXISTS `messages` (
 
 -- --------------------------------------------------------
 
+--
+-- Table structure for table `rels`
+--
+-- Creation: Oct 06, 2013 at 06:52 PM
+--
+
+DROP TABLE IF EXISTS `rels`;
+CREATE TABLE IF NOT EXISTS `rels` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `u_id` int(11) NOT NULL,
+  `i_id` int(11) DEFAULT NULL,
+  `s_id` int(11) DEFAULT NULL,
+  PRIMARY KEY (`id`),
+  KEY `u_id` (`u_id`,`i_id`,`s_id`),
+  KEY `i_id` (`i_id`),
+  KEY `s_id` (`s_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+
+--
+-- RELATIONS FOR TABLE `rels`:
+--   `s_id`
+--       `scrums` -> `id`
+--   `u_id`
+--       `users` -> `id`
+--   `i_id`
+--       `issues` -> `id`
+--
+
+-- --------------------------------------------------------
+
 --
 -- Table structure for table `scrums`
 --
+-- Creation: Oct 04, 2013 at 03:33 AM
+--
 
 DROP TABLE IF EXISTS `scrums`;
 CREATE TABLE IF NOT EXISTS `scrums` (
@@ -100,6 +136,8 @@ CREATE TABLE IF NOT EXISTS `scrums` (
 --
 -- Table structure for table `users`
 --
+-- Creation: Oct 04, 2013 at 03:23 AM
+--
 
 DROP TABLE IF EXISTS `users`;
 CREATE TABLE IF NOT EXISTS `users` (
@@ -133,6 +171,14 @@ ALTER TABLE `messages`
   ADD CONSTRAINT `messages_ibfk_2` FOREIGN KEY (`to_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
   ADD CONSTRAINT `messages_ibfk_3` FOREIGN KEY (`s_id`) REFERENCES `scrums` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
 
+--
+-- Constraints for table `rels`
+--
+ALTER TABLE `rels`
+  ADD CONSTRAINT `rels_ibfk_3` FOREIGN KEY (`s_id`) REFERENCES `scrums` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+  ADD CONSTRAINT `rels_ibfk_1` FOREIGN KEY (`u_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+  ADD CONSTRAINT `rels_ibfk_2` FOREIGN KEY (`i_id`) REFERENCES `issues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
 --
 -- Constraints for table `scrums`
 --