root / db / create_ojb_tables.sql

Revision 93:29b3d19de881, 5.6 kB (checked in by Harri Kaimio <harri@…>, 8 years ago)

Started porting of PhotoVault? to Linux environment. Still several problems
(worksin debugger but on in production JVM!)

Main changes to test code to get rid of hardcoded absolute pathnames.
Also added scripts to populate database with OJB tables and test data.

Line 
1-- MySQL dump 10.7
2--
3-- Host: localhost    Database: pv_test
4-- ------------------------------------------------------
5-- Server version       4.1.3-beta-standard
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/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
12/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
13/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE="NO_AUTO_VALUE_ON_ZERO" */;
14
15--
16-- Table structure for table `OJB_DLIST`
17--
18
19DROP TABLE IF EXISTS `OJB_DLIST`;
20CREATE TABLE `OJB_DLIST` (
21  `ID` int(11) NOT NULL default '0',
22  `SIZE_` int(11) default NULL,
23  PRIMARY KEY  (`ID`)
24) ENGINE=MyISAM DEFAULT CHARSET=latin1;
25
26--
27-- Dumping data for table `OJB_DLIST`
28--
29
30
31/*!40000 ALTER TABLE `OJB_DLIST` DISABLE KEYS */;
32LOCK TABLES `OJB_DLIST` WRITE;
33UNLOCK TABLES;
34/*!40000 ALTER TABLE `OJB_DLIST` ENABLE KEYS */;
35
36--
37-- Table structure for table `OJB_DLIST_ENTRIES`
38--
39
40DROP TABLE IF EXISTS `OJB_DLIST_ENTRIES`;
41CREATE TABLE `OJB_DLIST_ENTRIES` (
42  `ID` int(11) NOT NULL default '0',
43  `DLIST_ID` int(11) NOT NULL default '0',
44  `POSITION_` int(11) default NULL,
45  `OID_` longblob,
46  PRIMARY KEY  (`ID`)
47) ENGINE=MyISAM DEFAULT CHARSET=latin1;
48
49--
50-- Dumping data for table `OJB_DLIST_ENTRIES`
51--
52
53
54/*!40000 ALTER TABLE `OJB_DLIST_ENTRIES` DISABLE KEYS */;
55LOCK TABLES `OJB_DLIST_ENTRIES` WRITE;
56UNLOCK TABLES;
57/*!40000 ALTER TABLE `OJB_DLIST_ENTRIES` ENABLE KEYS */;
58
59--
60-- Table structure for table `OJB_DSET`
61--
62
63DROP TABLE IF EXISTS `OJB_DSET`;
64CREATE TABLE `OJB_DSET` (
65  `ID` int(11) NOT NULL default '0',
66  `SIZE_` int(11) default NULL,
67  PRIMARY KEY  (`ID`)
68) ENGINE=MyISAM DEFAULT CHARSET=latin1;
69
70--
71-- Dumping data for table `OJB_DSET`
72--
73
74
75/*!40000 ALTER TABLE `OJB_DSET` DISABLE KEYS */;
76LOCK TABLES `OJB_DSET` WRITE;
77UNLOCK TABLES;
78/*!40000 ALTER TABLE `OJB_DSET` ENABLE KEYS */;
79
80--
81-- Table structure for table `OJB_DSET_ENTRIES`
82--
83
84DROP TABLE IF EXISTS `OJB_DSET_ENTRIES`;
85CREATE TABLE `OJB_DSET_ENTRIES` (
86  `ID` int(11) NOT NULL default '0',
87  `DLIST_ID` int(11) NOT NULL default '0',
88  `POSITION_` int(11) default NULL,
89  `OID_` longblob,
90  PRIMARY KEY  (`ID`)
91) ENGINE=MyISAM DEFAULT CHARSET=latin1;
92
93--
94-- Dumping data for table `OJB_DSET_ENTRIES`
95--
96
97
98/*!40000 ALTER TABLE `OJB_DSET_ENTRIES` DISABLE KEYS */;
99LOCK TABLES `OJB_DSET_ENTRIES` WRITE;
100UNLOCK TABLES;
101/*!40000 ALTER TABLE `OJB_DSET_ENTRIES` ENABLE KEYS */;
102
103--
104-- Table structure for table `OJB_DMAP`
105--
106
107DROP TABLE IF EXISTS `OJB_DMAP`;
108CREATE TABLE `OJB_DMAP` (
109  `ID` int(11) NOT NULL default '0',
110  `SIZE_` int(11) default NULL,
111  PRIMARY KEY  (`ID`)
112) ENGINE=MyISAM DEFAULT CHARSET=latin1;
113
114--
115-- Dumping data for table `OJB_DMAP`
116--
117
118
119/*!40000 ALTER TABLE `OJB_DMAP` DISABLE KEYS */;
120LOCK TABLES `OJB_DMAP` WRITE;
121UNLOCK TABLES;
122/*!40000 ALTER TABLE `OJB_DMAP` ENABLE KEYS */;
123
124--
125-- Table structure for table `OJB_DMAP_ENTRIES`
126--
127
128DROP TABLE IF EXISTS `OJB_DMAP_ENTRIES`;
129CREATE TABLE `OJB_DMAP_ENTRIES` (
130  `ID` int(11) NOT NULL default '0',
131  `DMAP_ID` int(11) NOT NULL default '0',
132  `KEY_OID` longblob,
133  `VALUE_OID` longblob,
134  PRIMARY KEY  (`ID`)
135) ENGINE=MyISAM DEFAULT CHARSET=latin1;
136
137--
138-- Dumping data for table `OJB_DMAP_ENTRIES`
139--
140
141
142/*!40000 ALTER TABLE `OJB_DMAP_ENTRIES` DISABLE KEYS */;
143LOCK TABLES `OJB_DMAP_ENTRIES` WRITE;
144UNLOCK TABLES;
145/*!40000 ALTER TABLE `OJB_DMAP_ENTRIES` ENABLE KEYS */;
146
147--
148-- Table structure for table `OJB_HL_SEQ`
149--
150
151DROP TABLE IF EXISTS `OJB_HL_SEQ`;
152CREATE TABLE `OJB_HL_SEQ` (
153  `TABLENAME` varchar(175) NOT NULL default '',
154  `FIELDNAME` varchar(70) NOT NULL default '',
155  `MAX_KEY` int(11) default NULL,
156  `GRAB_SIZE` int(11) default NULL,
157  PRIMARY KEY  (`TABLENAME`,`FIELDNAME`)
158) ENGINE=MyISAM DEFAULT CHARSET=latin1;
159
160--
161-- Dumping data for table `OJB_HL_SEQ`
162--
163
164
165/*!40000 ALTER TABLE `OJB_HL_SEQ` DISABLE KEYS */;
166LOCK TABLES `OJB_HL_SEQ` WRITE;
167INSERT INTO `OJB_HL_SEQ` VALUES ('SEQ_OJB_DLIST','ID',14840,20),('SEQ_photo_collections','collection_id',5380,20),('SEQ_OJB_DLIST_ENTRIES','ID',101100,20),('SEQ_photos','photo_id',13564,20);
168UNLOCK TABLES;
169/*!40000 ALTER TABLE `OJB_HL_SEQ` ENABLE KEYS */;
170
171--
172-- Table structure for table `OJB_LOCKENTRY`
173--
174
175DROP TABLE IF EXISTS `OJB_LOCKENTRY`;
176CREATE TABLE `OJB_LOCKENTRY` (
177  `OID_` varchar(250) NOT NULL default '',
178  `TX_ID` varchar(50) NOT NULL default '',
179  `TIMESTAMP_` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
180  `ISOLATIONLEVEL` int(11) default NULL,
181  `LOCKTYPE` int(11) default NULL,
182  PRIMARY KEY  (`OID_`,`TX_ID`)
183) ENGINE=MyISAM DEFAULT CHARSET=latin1;
184
185--
186-- Dumping data for table `OJB_LOCKENTRY`
187--
188
189
190/*!40000 ALTER TABLE `OJB_LOCKENTRY` DISABLE KEYS */;
191LOCK TABLES `OJB_LOCKENTRY` WRITE;
192UNLOCK TABLES;
193/*!40000 ALTER TABLE `OJB_LOCKENTRY` ENABLE KEYS */;
194
195--
196-- Table structure for table `OJB_NRM`
197--
198
199DROP TABLE IF EXISTS `OJB_NRM`;
200CREATE TABLE `OJB_NRM` (
201  `NAME` varchar(250) NOT NULL default '',
202  `OID_` longblob,
203  PRIMARY KEY  (`NAME`)
204) ENGINE=MyISAM DEFAULT CHARSET=latin1;
205
206--
207-- Dumping data for table `OJB_NRM`
208--
209
210
211/*!40000 ALTER TABLE `OJB_NRM` DISABLE KEYS */;
212LOCK TABLES `OJB_NRM` WRITE;
213UNLOCK TABLES;
214/*!40000 ALTER TABLE `OJB_NRM` ENABLE KEYS */;
215
216/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
217/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
218/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
219/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
220/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
221/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Note: See TracBrowser for help on using the browser.