]> jfr.im git - z_archive/KronOS.git/blob - dump.sql
Fixed SQL (sessions.last should be ON UPDATE CURRENT_TIMESTAMP instead of sessions...
[z_archive/KronOS.git] / dump.sql
1 -- MySQL dump 10.13 Distrib 5.5.27, for debian-linux-gnu (x86_64)
2 --
3 -- Host: localhost Database: dime_wos
4 -- ------------------------------------------------------
5 -- Server version 5.5.27-1~dotdeb.0
6
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18 --
19 -- Table structure for table `sessions`
20 --
21
22 DROP TABLE IF EXISTS `sessions`;
23 /*!40101 SET @saved_cs_client = @@character_set_client */;
24 /*!40101 SET character_set_client = utf8 */;
25 CREATE TABLE `sessions` (
26 `sid` int(10) unsigned NOT NULL AUTO_INCREMENT,
27 `uid` int(10) unsigned NOT NULL,
28 `started` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
29 `last` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
30 `active` tinyint(1) NOT NULL DEFAULT '1',
31 PRIMARY KEY (`sid`)
32 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
33 /*!40101 SET character_set_client = @saved_cs_client */;
34
35 --
36 -- Dumping data for table `sessions`
37 --
38
39 LOCK TABLES `sessions` WRITE;
40 /*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
41 /*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
42 UNLOCK TABLES;
43
44 --
45 -- Table structure for table `users`
46 --
47
48 DROP TABLE IF EXISTS `users`;
49 /*!40101 SET @saved_cs_client = @@character_set_client */;
50 /*!40101 SET character_set_client = utf8 */;
51 CREATE TABLE `users` (
52 `uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
53 `username` varchar(15) NOT NULL,
54 `password` char(40) NOT NULL,
55 PRIMARY KEY (`uid`)
56 ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
57 /*!40101 SET character_set_client = @saved_cs_client */;
58
59 --
60 -- Dumping data for table `users`
61 --
62
63 LOCK TABLES `users` WRITE;
64 /*!40000 ALTER TABLE `users` DISABLE KEYS */;
65 /*!40000 ALTER TABLE `users` ENABLE KEYS */;
66 UNLOCK TABLES;
67 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
68
69 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
70 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
71 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
72 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
73 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
74 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
75 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
76
77 -- Dump completed on 2012-10-09 10:55:41