Repository navigation
Expand file tree
/
Copy pathgregobase_structure.sql
More file actions
162 lines (130 loc) · 5.03 KB
/
Copy pathgregobase_structure.sql
File metadata and controls
162 lines (130 loc) · 5.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mer 26 Juin 2013 à 17:28
-- Version du serveur: 5.5.31-0ubuntu0.12.04.2
-- Version de PHP: 5.4.17RC1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `grego`
--
CREATE DATABASE IF NOT EXISTS `grego` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `grego`;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_booklets`
--
CREATE TABLE IF NOT EXISTS `gregobase_booklets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`filename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`code` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
`title` text COLLATE utf8_unicode_ci,
`content` text COLLATE utf8_unicode_ci,
`options` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=432 ;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_changes`
--
CREATE TABLE IF NOT EXISTS `gregobase_changes` (
`changeset` varchar(32) NOT NULL,
`field` varchar(32) NOT NULL,
`changed` text NOT NULL,
PRIMARY KEY (`changeset`,`field`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_changesets`
--
CREATE TABLE IF NOT EXISTS `gregobase_changesets` (
`user_id` int(11) NOT NULL,
`chant_id` int(11) NOT NULL,
`time` int(11) NOT NULL,
`comment` text,
PRIMARY KEY (`user_id`,`chant_id`,`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_chants`
--
CREATE TABLE IF NOT EXISTS `gregobase_chants` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`version` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
`incipit` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`initial` tinyint(4) NOT NULL DEFAULT '1',
`office-part` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
`mode` varchar(8) COLLATE utf8_unicode_ci DEFAULT NULL,
`mode_var` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
`transcriber` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
`commentary` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL,
`gabc` text COLLATE utf8_unicode_ci,
`gabc_verses` text COLLATE utf8_unicode_ci,
`tex_verses` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3302 ;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_chant_sources`
--
CREATE TABLE IF NOT EXISTS `gregobase_chant_sources` (
`chant_id` int(11) NOT NULL,
`source` int(11) NOT NULL,
`page` varchar(16) COLLATE utf8_unicode_ci NOT NULL,
`sequence` tinyint(4) NOT NULL DEFAULT '1',
`extent` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`chant_id`,`source`,`page`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_chant_tags`
--
CREATE TABLE IF NOT EXISTS `gregobase_chant_tags` (
`chant_id` int(11) NOT NULL,
`tag_id` int(11) NOT NULL,
PRIMARY KEY (`chant_id`,`tag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_proofreading`
--
CREATE TABLE IF NOT EXISTS `gregobase_proofreading` (
`chant_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_sources`
--
CREATE TABLE IF NOT EXISTS `gregobase_sources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`year` smallint(6) NOT NULL,
`editor` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`caption` text COLLATE utf8_unicode_ci NOT NULL,
`pages` mediumtext COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ;
-- --------------------------------------------------------
--
-- Structure de la table `gregobase_tags`
--
CREATE TABLE IF NOT EXISTS `gregobase_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `tag` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;