Skip to content

Commit 37b3704

Browse files
author
Yutaro Iiyama
committed
Max's updates of the registry tables
1 parent 4db770e commit 37b3704

1 file changed

Lines changed: 43 additions & 5 deletions

File tree

etc/db/dynamoregister.sql

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--
33
-- Host: localhost Database: dynamoregister
44
-- ------------------------------------------------------
5-
-- Server version 5.1.73
5+
-- Server version 5.1.73-log
66

77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
88
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -55,10 +55,11 @@ DROP TABLE IF EXISTS `deletion_queue`;
5555
/*!40101 SET @saved_cs_client = @@character_set_client */;
5656
/*!40101 SET character_set_client = utf8 */;
5757
CREATE TABLE `deletion_queue` (
58+
`reqid` int(10) unsigned NOT NULL DEFAULT '0',
5859
`file` varchar(512) COLLATE latin1_general_cs NOT NULL,
59-
`target` varchar(64) COLLATE latin1_general_cs NOT NULL,
60-
`created` datetime NOT NULL,
61-
UNIQUE KEY `files` (`file`,`target`)
60+
`site` varchar(32) COLLATE latin1_general_cs NOT NULL,
61+
`status` enum('new','done','failed') COLLATE latin1_general_cs NOT NULL,
62+
UNIQUE KEY `file` (`file`,`site`)
6263
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;
6364
/*!40101 SET character_set_client = @saved_cs_client */;
6465

@@ -103,6 +104,43 @@ CREATE TABLE `domains` (
103104
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;
104105
/*!40101 SET character_set_client = @saved_cs_client */;
105106

107+
--
108+
-- Table structure for table `requests`
109+
--
110+
111+
DROP TABLE IF EXISTS `requests`;
112+
/*!40101 SET @saved_cs_client = @@character_set_client */;
113+
/*!40101 SET character_set_client = utf8 */;
114+
CREATE TABLE `requests` (
115+
`item` varchar(512) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
116+
`datatype` enum('dataset','block') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
117+
`site` varchar(32) NOT NULL,
118+
`reqtype` enum('copy','delete') NOT NULL,
119+
`created` datetime NOT NULL
120+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
121+
/*!40101 SET character_set_client = @saved_cs_client */;
122+
123+
--
124+
-- Table structure for table `requests_unified`
125+
--
126+
127+
DROP TABLE IF EXISTS `requests_unified`;
128+
/*!40101 SET @saved_cs_client = @@character_set_client */;
129+
/*!40101 SET character_set_client = utf8 */;
130+
CREATE TABLE `requests_unified` (
131+
`reqid` int(10) unsigned NOT NULL AUTO_INCREMENT,
132+
`item` varchar(512) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
133+
`datatype` enum('dataset','block') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
134+
`site` varchar(32) NOT NULL,
135+
`reqtype` enum('copy','delete') NOT NULL,
136+
`rank` int(10) unsigned DEFAULT '0',
137+
`status` enum('new','queued') NOT NULL,
138+
`created` datetime NOT NULL,
139+
`updated` datetime DEFAULT NULL,
140+
PRIMARY KEY (`reqid`)
141+
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
142+
/*!40101 SET character_set_client = @saved_cs_client */;
143+
106144
--
107145
-- Table structure for table `services`
108146
--
@@ -162,4 +200,4 @@ CREATE TABLE `users` (
162200
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
163201
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
164202

165-
-- Dump completed on 2017-06-26 15:52:45
203+
-- Dump completed on 2017-10-07 11:12:50

0 commit comments

Comments
 (0)