source: trunk/_InstallationResources/ombookmarks.sql @ 424

Revision 424, 6.5 KB checked in by Sean.McClowry, 3 years ago (diff)

Changed db install script and created a patch script to extend column size for bookmarks
 http://waterloo.openmethodology.org/trac/omcollab/ticket/26

Line 
1-- omCollab MySQL Dump
2
3SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
4
5--
6-- Database: `{ombookmarks_database_name}`
7--
8
9-- --------------------------------------------------------
10
11--
12-- Table structure for table `{omcollab_db_table_prefix}bookmarks`
13--
14
15DROP TABLE IF EXISTS `{omcollab_db_table_prefix}bookmarks`;
16CREATE TABLE `{omcollab_db_table_prefix}bookmarks` (
17  `bId` int(11) NOT NULL auto_increment,
18  `uId` int(11) NOT NULL default '0',
19  `bIp` varchar(40) default NULL,
20  `bStatus` tinyint(1) NOT NULL default '0',
21  `bDatetime` datetime NOT NULL default '0000-00-00 00:00:00',
22  `bModified` datetime NOT NULL default '0000-00-00 00:00:00',
23  `bTitle` varchar(255) NOT NULL default '',
24  `bAddress` text NOT NULL,
25  `bDescription` varchar(255) default NULL,
26  `bHash` varchar(32) NOT NULL default '',
27  PRIMARY KEY  (`bId`),
28  KEY `{omcollab_db_table_prefix}bookmarks_usd` (`uId`,`bStatus`,`bDatetime`),
29  KEY `{omcollab_db_table_prefix}bookmarks_hui` (`bHash`,`uId`,`bId`),
30  KEY `{omcollab_db_table_prefix}bookmarks_du` (`bDatetime`,`uId`)
31) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=130 ;
32
33--
34-- Dumping data for table `{omcollab_db_table_prefix}bookmarks`
35--
36
37INSERT INTO `{omcollab_db_table_prefix}bookmarks` (`bId`, `uId`, `bIp`, `bStatus`, `bDatetime`, `bModified`, `bTitle`, `bAddress`, `bDescription`, `bHash`) VALUES
38(127, 1, '127.0.0.1', 0, '2008-06-12 09:53:39', '2008-06-13 11:00:53', 'MIKE2.0 - an implementation of the omCollab application suite', 'http://mike2.openmethodology.org', 'This is the first site to use the omCollab application suite', 'e5e4b3f6980a0c09f60646a258f2954a'),
39(129, 1, '127.0.0.1', 0, '2008-07-04 14:24:15', '2008-07-04 14:30:47', 'Example of SPAM bookmark', 'http://www.spam.com', 'Occasionally, you will get spammed. Read this bookmarks comments to learn how to manage it.', '4ff84ed87bfff74f86a7f37d37dce222');
40
41-- --------------------------------------------------------
42
43--
44-- Table structure for table `{omcollab_db_table_prefix}comments`
45--
46
47DROP TABLE IF EXISTS `{omcollab_db_table_prefix}comments`;
48CREATE TABLE `{omcollab_db_table_prefix}comments` (
49  `cId` int(11) NOT NULL auto_increment,
50  `cParentId` int(11) default NULL,
51  `uId` int(11) NOT NULL,
52  `cText` text NOT NULL,
53  `cHash` varchar(32) NOT NULL,
54  `cDatePosted` timestamp NOT NULL default CURRENT_TIMESTAMP,
55  PRIMARY KEY  (`cId`)
56) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
57
58--
59-- Dumping data for table `{omcollab_db_table_prefix}comments`
60--
61
62INSERT INTO `{omcollab_db_table_prefix}comments` (`cId`, `cParentId`, `uId`, `cText`, `cHash`, `cDatePosted`) VALUES
63(1, 0, 1, 'This is a sample comment', 'e5e4b3f6980a0c09f60646a258f2954a', '2008-06-13 12:24:02'),
64(2, 1, 1, 'This is a sample reply', 'e5e4b3f6980a0c09f60646a258f2954a', '2008-06-13 12:24:18'),
65(3, 0, 1, 'When you are logged in as a user with admin rights, you may delete any bookmark by clicking the ''Delete Spam Bookmark'' link on the main bookmark page. This permanently deletes all bookmarks sharing that URL (and related comments and ratings).', '4ff84ed87bfff74f86a7f37d37dce222', '2008-07-04 15:27:50');
66
67-- --------------------------------------------------------
68
69--
70-- Table structure for table `{omcollab_db_table_prefix}ratings`
71--
72
73DROP TABLE IF EXISTS `{omcollab_db_table_prefix}ratings`;
74CREATE TABLE `{omcollab_db_table_prefix}ratings` (
75  `rId` int(11) NOT NULL auto_increment,
76  `uId` int(11) NOT NULL,
77  `rValue` int(11) NOT NULL,
78  `rHash` varchar(32) NOT NULL,
79  `rDateRated` timestamp NOT NULL default CURRENT_TIMESTAMP,
80  PRIMARY KEY  (`rId`)
81) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
82
83--
84-- Dumping data for table `{omcollab_db_table_prefix}ratings`
85--
86
87INSERT INTO `{omcollab_db_table_prefix}ratings` (`rId`, `uId`, `rValue`, `rHash`, `rDateRated`) VALUES
88(1, 1, 5, 'e5e4b3f6980a0c09f60646a258f2954a', '2008-06-13 11:41:53'),
89(3, 1, 5, '4ff84ed87bfff74f86a7f37d37dce222', '2008-07-04 15:30:23');
90
91-- --------------------------------------------------------
92
93--
94-- Table structure for table `{omcollab_db_table_prefix}tags`
95--
96
97DROP TABLE IF EXISTS `{omcollab_db_table_prefix}tags`;
98CREATE TABLE `{omcollab_db_table_prefix}tags` (
99  `id` int(11) NOT NULL auto_increment,
100  `bId` int(11) NOT NULL default '0',
101  `tag` varchar(32) NOT NULL default '',
102  PRIMARY KEY  (`id`),
103  UNIQUE KEY `{omcollab_db_table_prefix}tags_tag_bId` (`tag`,`bId`),
104  KEY `{omcollab_db_table_prefix}tags_bId` (`bId`)
105) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=321 ;
106
107--
108-- Dumping data for table `{omcollab_db_table_prefix}tags`
109--
110
111INSERT INTO `{omcollab_db_table_prefix}tags` (`id`, `bId`, `tag`) VALUES
112(316, 127, 'omcollab examples'),
113(319, 129, 'spam spam spam'),
114(320, 129, 'omcollab examples');
115
116-- --------------------------------------------------------
117
118--
119-- Table structure for table `{omcollab_db_table_prefix}users`
120--
121
122DROP TABLE IF EXISTS `{omcollab_db_table_prefix}users`;
123CREATE TABLE `{omcollab_db_table_prefix}users` (
124  `uId` int(11) NOT NULL auto_increment,
125  `username` varchar(25) NOT NULL default '',
126  `password` varchar(40) NOT NULL default '',
127  `uDatetime` datetime NOT NULL default '0000-00-00 00:00:00',
128  `uModified` datetime NOT NULL default '0000-00-00 00:00:00',
129  `name` varchar(50) default NULL,
130  `email` varchar(50) NOT NULL default '',
131  `homepage` varchar(255) default NULL,
132  `uContent` text,
133  `uIsAdmin` tinyint(1) NOT NULL default '0',
134  PRIMARY KEY  (`uId`)
135) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
136
137--
138-- Dumping data for table `{omcollab_db_table_prefix}users`
139--
140
141INSERT INTO `{omcollab_db_table_prefix}users` (`uId`, `username`, `password`, `uDatetime`, `uModified`, `name`, `email`, `homepage`, `uContent`, `uIsAdmin`) VALUES
142(1, 'Admin', '5f4dcc3b5aa765d61d8327deb882cf99', '2008-06-06 00:00:00', '2008-06-06 00:00:00', 'Admin', '', NULL, NULL, 1);
143
144-- --------------------------------------------------------
145
146--
147-- Table structure for table `{omcollab_db_table_prefix}watched`
148--
149
150DROP TABLE IF EXISTS `{omcollab_db_table_prefix}watched`;
151CREATE TABLE `{omcollab_db_table_prefix}watched` (
152  `wId` int(11) NOT NULL auto_increment,
153  `uId` int(11) NOT NULL default '0',
154  `watched` int(11) NOT NULL default '0',
155  PRIMARY KEY  (`wId`),
156  KEY `{omcollab_db_table_prefix}watched_uId` (`uId`)
157) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
158
159--
160-- Dumping data for table `{omcollab_db_table_prefix}watched`
161--
162
Note: See TracBrowser for help on using the repository browser.