From: John Runyon Date: Sun, 3 Nov 2013 17:33:36 +0000 (+0000) Subject: Updating sql X-Git-Url: https://jfr.im/git/z_archive/KronOS.git/commitdiff_plain/9e6fe058d5c2420b19b5c4854db9d63d921ff366 Updating sql --- diff --git a/dump.sql b/dump.sql index 10a428b..4497e26 100644 --- a/dump.sql +++ b/dump.sql @@ -29,6 +29,7 @@ CREATE TABLE `apps` ( `parent` int(10) unsigned NOT NULL, `filename` varchar(100) NOT NULL, `access` enum('user','operator','manager') NOT NULL DEFAULT 'user', + `active` tinyint(1) DEFAULT '1', PRIMARY KEY (`aid`), UNIQUE KEY `appname` (`appname`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; @@ -40,7 +41,7 @@ CREATE TABLE `apps` ( LOCK TABLES `apps` WRITE; /*!40000 ALTER TABLE `apps` DISABLE KEYS */; -INSERT INTO `apps` VALUES (1,'App Zone','App_Zone',2,'appzone.php','manager'),(2,'User Manager','User_Manager',2,'users.php','operator'),(3,'App Settings','App_Settings_Manager',2,'appsetup.php','operator'); +INSERT INTO `apps` VALUES (1,'App Zone','App_Zone',2,'default/appzone.php','manager',0),(2,'User Manager','User_Manager',2,'default/users.php','operator',1),(3,'App Settings','App_Settings_Manager',2,'default/appsetup.php','operator',0); /*!40000 ALTER TABLE `apps` ENABLE KEYS */; UNLOCK TABLES; @@ -79,9 +80,10 @@ DROP TABLE IF EXISTS `session_apps`; CREATE TABLE `session_apps` ( `iid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `sid` int(10) unsigned NOT NULL, - `aid` int(10) unsigned NOT NULL, + `aid` int(11) NOT NULL, + `corename` varchar(100) DEFAULT NULL, PRIMARY KEY (`iid`) -) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; +) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -90,6 +92,7 @@ CREATE TABLE `session_apps` ( LOCK TABLES `session_apps` WRITE; /*!40000 ALTER TABLE `session_apps` DISABLE KEYS */; +INSERT INTO `session_apps` VALUES (1,2,4,NULL),(2,3,4,NULL),(3,6,0,NULL),(4,6,0,NULL),(5,6,0,NULL),(6,6,0,NULL),(7,6,0,NULL),(8,6,0,NULL),(9,7,0,NULL),(10,7,0,NULL),(11,7,4,NULL),(12,8,0,NULL),(13,11,0,NULL),(14,12,0,NULL),(15,14,2,NULL),(16,15,0,NULL),(17,16,-1,'credits'),(18,17,-1,'credits'),(19,18,-1,'credits'),(20,18,-1,'credits'),(21,19,-1,'credits'),(22,20,2,NULL),(23,21,2,NULL),(24,22,2,NULL),(25,23,2,NULL),(26,24,2,NULL),(27,25,2,NULL),(28,26,2,NULL); /*!40000 ALTER TABLE `session_apps` ENABLE KEYS */; UNLOCK TABLES; @@ -107,7 +110,7 @@ CREATE TABLE `sessions` ( `last` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `lockip` text NOT NULL, PRIMARY KEY (`sid`) -) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; +) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -116,6 +119,7 @@ CREATE TABLE `sessions` ( LOCK TABLES `sessions` WRITE; /*!40000 ALTER TABLE `sessions` DISABLE KEYS */; +INSERT INTO `sessions` VALUES (1,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(2,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(3,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(4,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(5,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(6,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(7,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(8,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(9,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(10,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(11,2,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(12,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(13,2,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(14,2,'0000-00-00 00:00:00','0000-00-00 00:00:00','85.157.91.21'),(15,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(16,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(17,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(18,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(19,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(20,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(21,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(22,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(23,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(24,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(25,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'),(26,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','67.79.10.133'); /*!40000 ALTER TABLE `sessions` ENABLE KEYS */; UNLOCK TABLES; @@ -134,7 +138,7 @@ CREATE TABLE `users` ( `display_name` varchar(100) NOT NULL, `level` enum('user','operator','manager') NOT NULL DEFAULT 'user', PRIMARY KEY (`uid`) -) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; +) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -143,7 +147,7 @@ CREATE TABLE `users` ( LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; -INSERT INTO `users` VALUES (1,'manager',SHA1('saltdiManager'),'saltd','Manager','manager'); -- Password will be "iManager" +INSERT INTO `users` VALUES (1,'jrunyon','0e4fbcfac8f8627fbebace9647f0b8af8b13eac9','53214','John','manager'),(2,'test','2c378084a75e475bc98a964e27923ab6f1789966','saltd','Test User','manager'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -156,4 +160,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2013-11-01 3:43:00 +-- Dump completed on 2013-11-03 17:31:27