source: trunk/install/sql/eleonline.sql@ 360

Last change on this file since 360 was 360, checked in by roby, 2 years ago

ATTENZIONE: con questa rev viene cambiato il charset che da ora viene impostato su utf8. Fate tutte le vostre verifiche prima di installarla.
Seconda fase di rivisitazione e completamento delle funzioni necessarie per l'accesso al servizio tramite cellulare.
Effettuate alcune sistemazioni per gli avvisi di incongruenza.

File size: 32.0 KB
Line 
1-- phpMyAdmin SQL Dump
2-- version 5.1.0
3-- https://www.phpmyadmin.net/
4--
5-- Host: localhost
6-- Creato il: Mar 11, 2022 alle 17:08
7-- Versione del server: 10.3.27-MariaDB-0+deb10u1
8-- Versione PHP: 7.3.31-1~deb10u1
9
10SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11START TRANSACTION;
12SET time_zone = "+00:00";
13
14
15/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18/*!40101 SET NAMES utf8mb4 */;
19
20--
21-- Database: `eleonline3`
22--
23
24-- --------------------------------------------------------
25
26--
27-- Struttura della tabella `soraldo_access`
28--
29
30CREATE TABLE `soraldo_access` (
31 `access_id` int(10) NOT NULL,
32 `access_title` varchar(20) DEFAULT NULL
33) ENGINE=MyISAM DEFAULT CHARSET=utf8;
34
35--
36-- Dump dei dati per la tabella `soraldo_access`
37--
38
39INSERT INTO `soraldo_access` (`access_id`, `access_title`) VALUES
40(1, 'Sospeso'),
41(16, 'Operatore'),
42(32, 'Amministratore'),
43(64, 'Amministratore Unico'),
44(256, 'Superuser');
45
46-- --------------------------------------------------------
47
48--
49-- Struttura della tabella `soraldo_authors`
50--
51
52CREATE TABLE `soraldo_authors` (
53 `aid` varchar(25) NOT NULL DEFAULT '',
54 `name` varchar(50) DEFAULT NULL,
55 `id_comune` int(11) NOT NULL DEFAULT 0,
56 `email` varchar(255) DEFAULT NULL,
57 `pwd` varchar(40) DEFAULT NULL,
58 `counter` int(11) NOT NULL DEFAULT 0,
59 `adminop` tinyint(2) NOT NULL DEFAULT 0,
60 `admincomune` tinyint(2) NOT NULL DEFAULT 0,
61 `adminsuper` tinyint(2) NOT NULL DEFAULT 0,
62 `admlanguage` varchar(30) NOT NULL DEFAULT ''
63) ENGINE=MyISAM DEFAULT CHARSET=utf8;
64
65--
66-- Dump dei dati per la tabella `soraldo_authors`
67--
68
69INSERT INTO `soraldo_authors` (`aid`, `name`, `id_comune`, `email`, `pwd`, `counter`, `adminop`, `admincomune`, `adminsuper`, `admlanguage`) VALUES
70('suser', 'suser', 0, 'test@', '098f6bcd4621d373cade4e832627b4f6', 1, 0, 0, 1, 'it');
71
72-- --------------------------------------------------------
73
74--
75-- Struttura della tabella `soraldo_config`
76--
77
78CREATE TABLE `soraldo_config` (
79 `sitename` varchar(255) NOT NULL DEFAULT '',
80 `siteurl` varchar(255) NOT NULL DEFAULT '',
81 `site_logo` varchar(255) NOT NULL DEFAULT '',
82 `slogan` varchar(255) NOT NULL DEFAULT '',
83 `startdate` varchar(50) NOT NULL DEFAULT '',
84 `adminmail` varchar(255) NOT NULL DEFAULT '',
85 `tema` varchar(25) NOT NULL DEFAULT '',
86 `foot` mediumtext NOT NULL,
87 `language` char(3) NOT NULL DEFAULT '',
88 `blocco` enum('0','1') NOT NULL DEFAULT '0',
89 `testata` blob DEFAULT NULL,
90 `nome_testata` varchar(50) NOT NULL DEFAULT '',
91 `fileout` varchar(255) NOT NULL DEFAULT '',
92 `copyright` mediumtext NOT NULL,
93 `versione` int(3) DEFAULT NULL,
94 `patch` int(3) NOT NULL DEFAULT 0,
95 `siteistat` int(11) NOT NULL DEFAULT 0,
96 `multicomune` enum('0','1') NOT NULL DEFAULT '0',
97 `flash` enum('0','1') NOT NULL DEFAULT '0',
98 `displayerrors` enum('0','1') NOT NULL DEFAULT '0',
99 `gkey` varchar(100) NOT NULL DEFAULT '',
100 `googlemaps` enum('0','1') NOT NULL DEFAULT '0',
101 `editor` enum('0','1') NOT NULL DEFAULT '1',
102 `tema_on` enum('0','1') NOT NULL DEFAULT '1',
103 `ed_user` varchar(25) NOT NULL DEFAULT '',
104 `secret` varchar(30) DEFAULT NULL
105) ENGINE=MyISAM DEFAULT CHARSET=utf8;
106
107--
108-- Dump dei dati per la tabella `soraldo_config`
109--
110
111INSERT INTO `soraldo_config` (`sitename`, `siteurl`, `site_logo`, `slogan`, `startdate`, `adminmail`, `tema`, `foot`, `language`, `blocco`, `testata`, `nome_testata`, `fileout`, `copyright`, `Versione`, `patch`, `siteistat`, `multicomune`, `flash`, `displayerrors`, `gkey`, `googlemaps`, `editor`, `tema_on`, `ed_user`) VALUES
112('', 'https://www.eleonline.it', '', 'Sito istituzionale', 'Maggio 2022', 'admin@localhost', 'facebook', '<b>Comune di Test</b><br>\r\nvia - \r\nTel: Fax: \r\n<hr>', 'it', '1', '', '', '', 'Gpl v3', 2, 0, 84023, '1', '1', '0', '', '0', '1', '1', 'Admin');
113
114-- --------------------------------------------------------
115
116--
117-- Struttura della tabella `soraldo_doc_cons`
118--
119
120CREATE TABLE `soraldo_doc_cons` (
121 `id_cons` int(11) NOT NULL DEFAULT 0,
122 `id_doc` int(11) NOT NULL DEFAULT 0,
123 `tabella` varchar(25) NOT NULL DEFAULT ''
124) ENGINE=MyISAM DEFAULT CHARSET=utf8;
125
126-- --------------------------------------------------------
127
128--
129-- Struttura della tabella `soraldo_ele_candidati`
130--
131
132CREATE TABLE `soraldo_ele_candidati` (
133 `id_cand` int(11) NOT NULL,
134 `id_cons` int(11) NOT NULL DEFAULT 0,
135 `id_lista` int(11) NOT NULL DEFAULT 0,
136 `num_lista` int(2) UNSIGNED NOT NULL,
137 `cognome` varchar(50) DEFAULT NULL,
138 `nome` varchar(50) DEFAULT NULL,
139 `note` text NOT NULL,
140 `simbolo` varchar(30) NOT NULL DEFAULT '',
141 `num_cand` int(7) NOT NULL DEFAULT 0
142) ENGINE=MyISAM DEFAULT CHARSET=utf8;
143
144-- --------------------------------------------------------
145
146--
147-- Struttura della tabella `soraldo_ele_circoscrizione`
148--
149
150CREATE TABLE `soraldo_ele_circoscrizione` (
151 `id_cons` int(11) NOT NULL DEFAULT 0,
152 `id_circ` int(11) NOT NULL,
153 `num_circ` int(7) NOT NULL DEFAULT 0,
154 `descrizione` mediumtext DEFAULT NULL
155) ENGINE=MyISAM DEFAULT CHARSET=utf8;
156
157-- --------------------------------------------------------
158
159--
160-- Struttura della tabella `soraldo_ele_collegi`
161--
162
163CREATE TABLE `soraldo_ele_collegi` (
164 `id_collegio` int(11) NOT NULL,
165 `id_cons_gen` int(11) NOT NULL DEFAULT 0,
166 `descrizione` mediumtext DEFAULT NULL
167) ENGINE=MyISAM DEFAULT CHARSET=utf8;
168
169-- --------------------------------------------------------
170
171--
172-- Struttura della tabella `soraldo_ele_come`
173--
174
175CREATE TABLE `soraldo_ele_come` (
176 `id_cons` int(11) NOT NULL DEFAULT 0,
177 `mid` int(7) NOT NULL,
178 `title` varchar(150) NOT NULL DEFAULT '',
179 `preamble` mediumtext NOT NULL,
180 `content` mediumtext NOT NULL,
181 `editimage` varchar(100) NOT NULL DEFAULT ''
182) ENGINE=MyISAM DEFAULT CHARSET=utf8;
183
184-- --------------------------------------------------------
185
186--
187-- Struttura della tabella `soraldo_ele_comuni`
188--
189
190CREATE TABLE `soraldo_ele_comuni` (
191 `id_comune` int(11) NOT NULL DEFAULT 0,
192 `descrizione` varchar(50) DEFAULT NULL,
193 `indirizzo` varchar(50) DEFAULT NULL,
194 `centralino` varchar(15) DEFAULT NULL,
195 `fax` varchar(15) DEFAULT NULL,
196 `email` varchar(50) DEFAULT NULL,
197 `fascia` tinyint(4) NOT NULL DEFAULT 0,
198 `capoluogo` enum('0','1') NOT NULL DEFAULT '0',
199 `simbolo` mediumtext DEFAULT NULL,
200 `stemma` blob DEFAULT NULL,
201 `id_cons` int(11) DEFAULT 0,
202 `cap` mediumtext DEFAULT NULL
203) ENGINE=MyISAM DEFAULT CHARSET=utf8;
204
205-- --------------------------------------------------------
206
207--
208-- Struttura della tabella `soraldo_ele_comu_collegi`
209--
210
211CREATE TABLE `soraldo_ele_comu_collegi` (
212 `id_collegio` int(11) NOT NULL DEFAULT 0,
213 `id_cons` int(11) NOT NULL DEFAULT 0,
214 `id_comune` int(11) NOT NULL DEFAULT 0,
215 `id_cons_gen` int(11) NOT NULL DEFAULT 0
216) ENGINE=MyISAM DEFAULT CHARSET=utf8;
217
218-- --------------------------------------------------------
219
220--
221-- Struttura della tabella `soraldo_ele_conf`
222--
223
224CREATE TABLE `soraldo_ele_conf` (
225 `id_conf` int(11) NOT NULL,
226 `descrizione` varchar(50) NOT NULL,
227 `limite` int(2) NOT NULL,
228 `consin` enum('0','1') NOT NULL DEFAULT '1',
229 `infpremio` int(3) NOT NULL,
230 `supsbarramento` int(3) NOT NULL,
231 `suppremio` int(3) NOT NULL,
232 `listinfsbar` int(3) NOT NULL DEFAULT 1,
233 `listinfconta` enum('0','1') NOT NULL DEFAULT '1',
234 `listsupconta` enum('0','1') NOT NULL DEFAULT '1',
235 `supminpremio` int(3) NOT NULL,
236 `infminpremio` int(3) NOT NULL,
237 `infdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
238 `supdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
239 `votolista` enum('0','1') NOT NULL DEFAULT '0',
240 `inffisso` enum('0','1') NOT NULL DEFAULT '0',
241 `supfisso` enum('0','1') NOT NULL DEFAULT '0',
242 `fascia_capoluogo` int(2) NOT NULL DEFAULT 0
243) ENGINE=MyISAM DEFAULT CHARSET=utf8;
244
245--
246-- Dump dei dati per la tabella `soraldo_ele_conf`
247--
248
249INSERT INTO `soraldo_ele_conf` (`id_conf`, `descrizione`, `limite`, `consin`, `infpremio`, `supsbarramento`, `suppremio`, `listinfsbar`, `listinfconta`, `listsupconta`, `supminpremio`, `infminpremio`, `infdisgiunto`, `supdisgiunto`, `votolista`, `inffisso`, `supfisso`, `fascia_capoluogo`) VALUES
250(1, 'Legge Italiana 267/2000', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 6),
251(2, 'Regione Sicilia precedente al 2008', 2, '0', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 6),
252(3, 'Regione Sicilia Legge n. 22 del 16/12/2008', 2, '0', 67, 5, 60, 3, '1', '0', 40, 40, '0', '0', '0', '0', '0', 7),
253(4, 'Regione Sicilia Legge n.6/2011', 5, '1', 67, 5, 60, 5, '1', '1', 40, 40, '1', '1', '0', '0', '0', 7),
254(5, 'Legge Italiana 267/2000 con riduzione 2011', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 7),
255(6, 'Legge Italiana 267/2000 con riduzione 2012', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 7),
256(7, 'Legge Italiana 267/2000 con modifiche 2014', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 6);
257
258-- --------------------------------------------------------
259
260--
261-- Struttura della tabella `soraldo_ele_consultazione`
262--
263
264CREATE TABLE `soraldo_ele_consultazione` (
265 `id_cons_gen` int(11) NOT NULL,
266 `descrizione` mediumtext DEFAULT NULL,
267 `data_inizio` date DEFAULT NULL,
268 `data_fine` date DEFAULT NULL,
269 `tipo_cons` int(7) NOT NULL DEFAULT 0
270) ENGINE=MyISAM DEFAULT CHARSET=utf8;
271
272-- --------------------------------------------------------
273
274--
275-- Struttura della tabella `soraldo_ele_cons_comune`
276--
277
278CREATE TABLE `soraldo_ele_cons_comune` (
279 `id_cons` int(11) NOT NULL,
280 `chiusa` set('0','1','2') NOT NULL DEFAULT '0',
281 `id_comune` int(11) NOT NULL DEFAULT 0,
282 `id_cons_gen` int(11) NOT NULL DEFAULT 0,
283 `id_conf` int(11) NOT NULL DEFAULT 0,
284 `preferita` enum('0','1') NOT NULL DEFAULT '0',
285 `preferenze` tinyint(1) NOT NULL DEFAULT 1,
286 `id_fascia` int(2) NOT NULL DEFAULT 1,
287 `vismf` enum('0','1') NOT NULL DEFAULT '0',
288 `solo_gruppo` enum('0','1') DEFAULT '0',
289 `disgiunto` enum('0','1') NOT NULL DEFAULT '0'
290) ENGINE=MyISAM DEFAULT CHARSET=utf8;
291
292-- --------------------------------------------------------
293
294--
295-- Struttura della tabella `soraldo_ele_controlli`
296--
297
298CREATE TABLE `soraldo_ele_controlli` (
299 `id_cons` int(11) NOT NULL,
300 `id_sez` int(11) NOT NULL,
301 `tipo` varchar(10) NOT NULL,
302 `id` int(11) NOT NULL
303) ENGINE=MyISAM DEFAULT CHARSET=utf8;
304
305-- --------------------------------------------------------
306
307--
308-- Struttura della tabella `soraldo_ele_documenti`
309--
310
311CREATE TABLE `soraldo_ele_documenti` (
312 `id_doc` int(11) NOT NULL,
313 `descrizione` varchar(50) NOT NULL DEFAULT '',
314 `nomedoc` varchar(25) NOT NULL DEFAULT '',
315 `filedoc` blob NOT NULL
316) ENGINE=MyISAM DEFAULT CHARSET=utf8;
317
318-- --------------------------------------------------------
319
320--
321-- Struttura della tabella `soraldo_ele_fasce`
322--
323
324CREATE TABLE `soraldo_ele_fasce` (
325 `id_fascia` int(2) NOT NULL,
326 `abitanti` int(11) NOT NULL,
327 `seggi` int(4) NOT NULL,
328 `id_conf` int(11) DEFAULT 1
329) ENGINE=MyISAM DEFAULT CHARSET=utf8;
330
331--
332-- Dump dei dati per la tabella `soraldo_ele_fasce`
333--
334
335INSERT INTO `soraldo_ele_fasce` (`id_fascia`, `abitanti`, `seggi`, `id_conf`) VALUES
336(1, 3000, 12, 1),
337(2, 10000, 16, 1),
338(3, 15000, 20, 1),
339(4, 30000, 20, 1),
340(5, 100000, 30, 1),
341(6, 250000, 40, 1),
342(7, 500000, 46, 1),
343(8, 1000000, 50, 1),
344(9, 100000000, 60, 1),
345(1, 3000, 12, 2),
346(2, 10000, 16, 2),
347(3, 15000, 20, 2),
348(4, 30000, 20, 2),
349(5, 100000, 30, 2),
350(6, 250000, 40, 2),
351(7, 500000, 46, 2),
352(8, 1000000, 50, 2),
353(9, 100000000, 60, 2),
354(1, 3000, 9, 3),
355(2, 5000, 9, 3),
356(4, 15000, 16, 3),
357(3, 10000, 12, 3),
358(5, 30000, 16, 3),
359(6, 100000, 24, 3),
360(7, 250000, 32, 3),
361(8, 500000, 36, 3),
362(9, 1000000, 40, 3),
363(10, 100000000, 48, 3),
364(1, 3000, 6, 4),
365(2, 5000, 7, 4),
366(3, 10000, 12, 4),
367(4, 15000, 16, 4),
368(5, 30000, 16, 4),
369(6, 100000, 24, 4),
370(7, 250000, 32, 4),
371(8, 500000, 36, 4),
372(9, 1000000, 40, 4),
373(10, 100000000, 48, 4),
374(1, 3000, 9, 5),
375(2, 5000, 9, 5),
376(3, 10000, 12, 5),
377(4, 15000, 16, 5),
378(5, 30000, 16, 5),
379(6, 100000, 24, 5),
380(7, 250000, 32, 5),
381(8, 500000, 36, 5),
382(9, 1000000, 40, 5),
383(10, 100000000, 48, 5),
384(1, 3000, 6, 6),
385(2, 5000, 7, 6),
386(3, 10000, 10, 6),
387(4, 15000, 16, 6),
388(5, 30000, 16, 6),
389(6, 100000, 24, 6),
390(7, 250000, 32, 6),
391(8, 500000, 36, 6),
392(9, 1000000, 40, 6),
393(10, 100000000, 48, 6),
394(1, 3000, 10, 7),
395(2, 10000, 12, 7),
396(3, 15000, 16, 7),
397(4, 30000, 16, 7),
398(5, 100000, 24, 7),
399(6, 250000, 32, 7),
400(7, 500000, 36, 7),
401(8, 1000000, 40, 7),
402(9, 100000000, 48, 7);
403
404-- --------------------------------------------------------
405
406--
407-- Struttura della tabella `soraldo_ele_gruppo`
408--
409
410CREATE TABLE `soraldo_ele_gruppo` (
411 `id_cons` int(11) NOT NULL DEFAULT 0,
412 `id_gruppo` int(11) NOT NULL,
413 `num_gruppo` int(7) NOT NULL DEFAULT 0,
414 `descrizione` mediumtext DEFAULT NULL,
415 `simbolo` mediumtext DEFAULT NULL,
416 `stemma` blob DEFAULT NULL,
417 `id_circ` int(11) NOT NULL DEFAULT 0,
418 `num_circ` int(2) UNSIGNED NOT NULL DEFAULT 1,
419 `prognome` mediumtext DEFAULT NULL,
420 `programma` mediumblob DEFAULT NULL
421) ENGINE=MyISAM DEFAULT CHARSET=utf8;
422
423-- --------------------------------------------------------
424
425--
426-- Struttura della tabella `soraldo_ele_link`
427--
428
429CREATE TABLE `soraldo_ele_link` (
430 `id_cons` int(11) NOT NULL DEFAULT 0,
431 `mid` int(7) NOT NULL,
432 `title` varchar(150) NOT NULL DEFAULT '',
433 `preamble` mediumtext NOT NULL,
434 `content` mediumtext NOT NULL,
435 `editimage` varchar(100) NOT NULL DEFAULT ''
436) ENGINE=MyISAM DEFAULT CHARSET=utf8;
437
438-- --------------------------------------------------------
439
440--
441-- Struttura della tabella `soraldo_ele_lista`
442--
443
444CREATE TABLE `soraldo_ele_lista` (
445 `id_cons` int(11) NOT NULL DEFAULT 0,
446 `id_lista` int(11) NOT NULL,
447 `num_lista` int(7) NOT NULL DEFAULT 0,
448 `id_gruppo` int(11) NOT NULL DEFAULT 0,
449 `num_gruppo` int(2) UNSIGNED NOT NULL DEFAULT 0,
450 `id_circ` int(11) NOT NULL DEFAULT 0,
451 `num_circ` int(2) UNSIGNED NOT NULL DEFAULT 1,
452 `descrizione` text DEFAULT NULL,
453 `simbolo` mediumtext DEFAULT NULL,
454 `stemma` blob DEFAULT NULL
455) ENGINE=MyISAM DEFAULT CHARSET=utf8;
456
457-- --------------------------------------------------------
458
459--
460-- Struttura della tabella `soraldo_ele_log`
461--
462
463CREATE TABLE `soraldo_ele_log` (
464 `id_cons` int(11) DEFAULT NULL,
465 `id_sez` int(11) DEFAULT NULL,
466 `utente` varchar(20) DEFAULT NULL,
467 `data` date DEFAULT NULL,
468 `ora` time DEFAULT NULL,
469 `log_da` mediumtext DEFAULT NULL,
470 `log_a` mediumtext DEFAULT NULL,
471 `tabella` varchar(30) DEFAULT NULL
472) ENGINE=MyISAM DEFAULT CHARSET=utf8;
473
474-- --------------------------------------------------------
475
476--
477-- Struttura della tabella `soraldo_ele_modelli`
478--
479
480CREATE TABLE `soraldo_ele_modelli` (
481 `id_cons` int(11) NOT NULL DEFAULT 0,
482 `categoria` varchar(20) NOT NULL DEFAULT '',
483 `modello` blob NOT NULL
484) ENGINE=MyISAM DEFAULT CHARSET=utf8;
485
486-- --------------------------------------------------------
487
488--
489-- Struttura della tabella `soraldo_ele_numeri`
490--
491
492CREATE TABLE `soraldo_ele_numeri` (
493 `id_cons` int(11) NOT NULL DEFAULT 0,
494 `mid` int(7) NOT NULL,
495 `title` varchar(150) NOT NULL DEFAULT '',
496 `preamble` mediumtext NOT NULL,
497 `content` mediumtext NOT NULL,
498 `editimage` varchar(100) NOT NULL DEFAULT ''
499) ENGINE=MyISAM DEFAULT CHARSET=utf8;
500
501-- --------------------------------------------------------
502
503--
504-- Struttura della tabella `soraldo_ele_operatori`
505--
506
507CREATE TABLE `soraldo_ele_operatori` (
508 `id_cons` int(11) NOT NULL DEFAULT 0,
509 `id_sede` int(11) NOT NULL DEFAULT 0,
510 `id_comune` int(11) NOT NULL DEFAULT 0,
511 `permessi` int(3) DEFAULT NULL,
512 `aid` varchar(25) NOT NULL DEFAULT '',
513 `id_circ` int(11) NOT NULL DEFAULT 0,
514 `id_sez` int(11) NOT NULL DEFAULT 0
515) ENGINE=MyISAM DEFAULT CHARSET=utf8;
516
517-- --------------------------------------------------------
518
519--
520-- Struttura della tabella `soraldo_ele_province`
521--
522
523CREATE TABLE `soraldo_ele_province` (
524 `id` tinyint(11) NOT NULL DEFAULT 0,
525 `descrizione` varchar(30) NOT NULL DEFAULT ''
526) ENGINE=MyISAM DEFAULT CHARSET=utf8;
527
528-- --------------------------------------------------------
529
530--
531-- Struttura della tabella `soraldo_ele_regioni`
532--
533
534CREATE TABLE `soraldo_ele_regioni` (
535 `id` int(11) NOT NULL DEFAULT 0,
536 `descrizione` varchar(25) NOT NULL DEFAULT ''
537) ENGINE=MyISAM DEFAULT CHARSET=utf8;
538
539-- --------------------------------------------------------
540
541--
542-- Struttura della tabella `soraldo_ele_rilaff`
543--
544
545CREATE TABLE `soraldo_ele_rilaff` (
546 `id_cons_gen` int(11) NOT NULL DEFAULT 0,
547 `orario` time NOT NULL DEFAULT '00:00:00',
548 `data` date NOT NULL DEFAULT '0000-00-00'
549) ENGINE=MyISAM DEFAULT CHARSET=utf8;
550
551-- --------------------------------------------------------
552
553--
554-- Struttura della tabella `soraldo_ele_sede`
555--
556
557CREATE TABLE `soraldo_ele_sede` (
558 `id_cons` int(11) NOT NULL DEFAULT 0,
559 `id_sede` int(11) NOT NULL,
560 `id_circ` int(11) NOT NULL DEFAULT 0,
561 `indirizzo` varchar(60) DEFAULT NULL,
562 `telefono1` varchar(12) DEFAULT NULL,
563 `telefono2` varchar(12) DEFAULT NULL,
564 `fax` varchar(12) DEFAULT NULL,
565 `responsabile` varchar(60) DEFAULT NULL,
566 `mappa` mediumblob NOT NULL,
567 `filemappa` varchar(100) NOT NULL DEFAULT ''
568) ENGINE=MyISAM DEFAULT CHARSET=utf8;
569
570-- --------------------------------------------------------
571
572--
573-- Struttura della tabella `soraldo_ele_servizi`
574--
575
576CREATE TABLE `soraldo_ele_servizi` (
577 `id_cons` int(11) NOT NULL DEFAULT 0,
578 `mid` int(7) NOT NULL,
579 `title` varchar(150) NOT NULL DEFAULT '',
580 `preamble` mediumtext NOT NULL,
581 `content` mediumtext NOT NULL,
582 `editimage` varchar(100) NOT NULL DEFAULT ''
583) ENGINE=MyISAM DEFAULT CHARSET=utf8;
584
585-- --------------------------------------------------------
586
587--
588-- Struttura della tabella `soraldo_ele_sezioni`
589--
590
591CREATE TABLE `soraldo_ele_sezioni` (
592 `id_cons` int(11) NOT NULL DEFAULT 0,
593 `id_sez` int(11) NOT NULL,
594 `id_sede` int(11) NOT NULL DEFAULT 0,
595 `num_sez` int(7) NOT NULL DEFAULT 0,
596 `maschi` int(4) DEFAULT NULL,
597 `femmine` int(4) DEFAULT NULL,
598 `validi` int(7) NOT NULL DEFAULT 0,
599 `nulli` int(7) NOT NULL DEFAULT 0,
600 `bianchi` int(7) NOT NULL DEFAULT 0,
601 `contestati` int(7) NOT NULL DEFAULT 0,
602 `solo_gruppo` int(7) NOT NULL DEFAULT 0,
603 `autorizzati_m` int(4) NOT NULL DEFAULT 0,
604 `autorizzati_f` int(4) NOT NULL DEFAULT 0,
605 `voti_nulli` int(7) NOT NULL DEFAULT 0,
606 `validi_lista` int(7) NOT NULL DEFAULT 0,
607 `contestati_lista` int(7) NOT NULL DEFAULT 0,
608 `voti_nulli_lista` int(7) NOT NULL DEFAULT 0,
609 `solo_lista` int(7) NOT NULL DEFAULT 0,
610 `colore` varchar(50) DEFAULT NULL
611) ENGINE=MyISAM DEFAULT CHARSET=utf8;
612
613-- --------------------------------------------------------
614
615--
616-- Struttura della tabella `soraldo_ele_temi`
617--
618
619CREATE TABLE `soraldo_ele_temi` (
620 `id` int(11) NOT NULL,
621 `tema` varchar(20) NOT NULL DEFAULT ''
622) ENGINE=MyISAM DEFAULT CHARSET=utf8;
623
624-- --------------------------------------------------------
625
626--
627-- Struttura della tabella `soraldo_ele_tipo`
628--
629
630CREATE TABLE `soraldo_ele_tipo` (
631 `tipo_cons` int(11) NOT NULL DEFAULT 0,
632 `descrizione` varchar(30) DEFAULT NULL,
633 `lingua` varchar(2) NOT NULL DEFAULT '0',
634 `genere` tinyint(4) NOT NULL DEFAULT 0,
635 `voto_g` enum('0','1') NOT NULL DEFAULT '0',
636 `voto_l` enum('0','1') NOT NULL DEFAULT '0',
637 `voto_c` enum('0','1') NOT NULL DEFAULT '0',
638 `circo` enum('0','1') NOT NULL DEFAULT '0'
639) ENGINE=MyISAM DEFAULT CHARSET=utf8;
640
641--
642-- Dump dei dati per la tabella `soraldo_ele_tipo`
643--
644
645INSERT INTO `soraldo_ele_tipo` (`tipo_cons`, `descrizione`, `lingua`, `genere`, `voto_g`, `voto_l`, `voto_c`, `circo`) VALUES
646(1, 'PROVINCIALI', 'it', 3, '0', '0', '0', '0'),
647(2, 'REFERENDUM', 'it', 0, '0', '0', '0', '0'),
648(3, 'COMUNALI', 'it', 5, '0', '0', '0', '0'),
649(4, 'CIRCOSCRIZIONALI', 'it', 5, '0', '0', '0', '1'),
650(5, 'BALLOTTAGGIO COMUNALI', 'it', 1, '0', '0', '0', '0'),
651(6, 'CAMERA', 'it', 2, '0', '0', '0', '0'),
652(7, 'SENATO', 'it', 2, '0', '0', '0', '0'),
653(8, 'EUROPEE', 'it', 4, '0', '0', '0', '0'),
654(9, 'REGIONALI', 'it', 5, '0', '0', '0', '0'),
655(10, 'SENATO CON GRUPPI', 'it', 5, '1', '0', '1', '0'),
656(11, 'CAMERA CON GRUPPI', 'it', 5, '1', '0', '1', '0'),
657(12, 'PROVINCIALI CON COLLEGI', 'it', 3, '0', '0', '0', '1'),
658(13, 'BALLOTTAGGIO PROVINCIALI', 'it', 1, '0', '0', '0', '0'),
659(14, 'EUROPEE CON COLLEGI', 'it', 4, '0', '0', '0', '1'),
660(15, 'CAMERA CON GRUPPI E COLLEGI', 'it', 5, '1', '0', '1', '1'),
661(16, 'SENATO CON GRUPPI E COLLEGI', 'it', 5, '1', '0', '1', '1'),
662(17, 'REGIONALI CON COLLEGI', 'it', 5, '0', '0', '0', '1'),
663(18, 'CAMERA - Rosatellum 2.0', 'it', 5, '0', '0', '1', '0'),
664(19, 'SENATO - Rosatellum 2.0', 'it', 5, '0', '0', '1', '0');
665
666-- --------------------------------------------------------
667
668--
669-- Struttura della tabella `soraldo_ele_voti_candidati`
670--
671
672CREATE TABLE `soraldo_ele_voti_candidati` (
673 `id_cons` int(11) NOT NULL DEFAULT 0,
674 `id_cand` int(11) NOT NULL DEFAULT 0,
675 `id_sez` int(11) NOT NULL DEFAULT 0,
676 `num_cand` int(2) UNSIGNED NOT NULL,
677 `voti` int(7) NOT NULL DEFAULT 0
678) ENGINE=MyISAM DEFAULT CHARSET=utf8;
679
680-- --------------------------------------------------------
681
682--
683-- Struttura della tabella `soraldo_ele_voti_gruppo`
684--
685
686CREATE TABLE `soraldo_ele_voti_gruppo` (
687 `id_cons` int(11) NOT NULL DEFAULT 0,
688 `id_gruppo` int(11) NOT NULL DEFAULT 0,
689 `id_sez` int(11) NOT NULL DEFAULT 0,
690 `num_gruppo` int(2) UNSIGNED NOT NULL,
691 `voti` int(7) NOT NULL DEFAULT 0,
692 `solo_gruppo` int(7) NOT NULL DEFAULT 0
693) ENGINE=MyISAM DEFAULT CHARSET=utf8;
694
695-- --------------------------------------------------------
696
697--
698-- Struttura della tabella `soraldo_ele_voti_lista`
699--
700
701CREATE TABLE `soraldo_ele_voti_lista` (
702 `id_cons` int(11) NOT NULL DEFAULT 0,
703 `id_lista` int(11) NOT NULL DEFAULT 0,
704 `id_sez` int(11) NOT NULL DEFAULT 0,
705 `num_lista` int(2) UNSIGNED DEFAULT 0,
706 `voti` int(7) NOT NULL DEFAULT 0,
707 `nulli_lista` int(7) NOT NULL DEFAULT 0,
708 `solo_lista` int(7) DEFAULT 0
709) ENGINE=MyISAM DEFAULT CHARSET=utf8;
710
711-- --------------------------------------------------------
712
713--
714-- Struttura della tabella `soraldo_ele_voti_parziale`
715--
716
717CREATE TABLE `soraldo_ele_voti_parziale` (
718 `id_cons` int(11) NOT NULL DEFAULT 0,
719 `id_sez` int(11) NOT NULL DEFAULT 0,
720 `id_parz` int(11) NOT NULL,
721 `orario` time NOT NULL DEFAULT '00:00:00',
722 `data` date NOT NULL DEFAULT '0000-00-00',
723 `voti_uomini` int(7) NOT NULL DEFAULT 0,
724 `voti_donne` int(7) NOT NULL DEFAULT 0,
725 `voti_complessivi` int(7) NOT NULL DEFAULT 0,
726 `id_gruppo` int(11) NOT NULL DEFAULT 0
727) ENGINE=MyISAM DEFAULT CHARSET=utf8;
728
729-- --------------------------------------------------------
730
731--
732-- Struttura della tabella `soraldo_ele_voti_ref`
733--
734
735CREATE TABLE `soraldo_ele_voti_ref` (
736 `id_cons` int(11) NOT NULL DEFAULT 0,
737 `id_gruppo` int(11) NOT NULL DEFAULT 0,
738 `id_sez` int(11) NOT NULL DEFAULT 0,
739 `num_gruppo` int(2) UNSIGNED NOT NULL,
740 `si` int(7) DEFAULT 0,
741 `no` int(7) DEFAULT 0,
742 `validi` int(7) DEFAULT 0,
743 `nulli` int(7) DEFAULT 0,
744 `bianchi` int(7) DEFAULT 0,
745 `contestati` int(7) DEFAULT 0
746) ENGINE=MyISAM DEFAULT CHARSET=utf8;
747
748-- --------------------------------------------------------
749
750--
751-- Struttura della tabella `soraldo_ele_widget`
752--
753
754CREATE TABLE `soraldo_ele_widget` (
755 `id` int(10) NOT NULL,
756 `nome_file` varchar(255) NOT NULL DEFAULT '',
757 `titolo` varchar(255) NOT NULL DEFAULT '',
758 `pos_or` int(1) NOT NULL DEFAULT 1,
759 `pos_ver` int(3) NOT NULL DEFAULT 0,
760 `attivo` int(1) NOT NULL DEFAULT 0
761) ENGINE=MyISAM DEFAULT CHARSET=utf8;
762
763--
764-- Dump dei dati per la tabella `soraldo_ele_widget`
765--
766
767INSERT INTO `soraldo_ele_widget` (`id`, `nome_file`, `titolo`, `pos_or`, `pos_ver`, `attivo`) VALUES
768(1, '00_affluenze.php', '00_affluenze.php', 1, 0, 0),
769(2, '01_votanti.php', '01_votanti.php', 1, 0, 0),
770(3, '02_risultati.php', '02_risultati.php', 1, 0, 0),
771(4, '04_sezioni.php', '04_sezioni.php', 1, 0, 0),
772(5, 'bar_affluenze.php', 'bar_affluenze.php', 1, 0, 0),
773(6, 'bloccocand.php', 'bloccocand.php', 1, 0, 0),
774(7, 'bloccogen.php', 'bloccogen.php', 1, 0, 0),
775(8, 'bloccolink.php', 'bloccolink.php', 1, 0, 0),
776(9, 'bloccoref.php', 'bloccoref.php', 1, 0, 0),
777(10, 'gom_affluenze.php', 'gom_affluenze.php', 1, 0, 0),
778(11, 'off_Votanti.php', 'off_Votanti.php', 1, 0, 0),
779(12, 'pie_affluenze.php', 'pie_affluenze.php', 1, 0, 0);
780
781--
782-- Indici per le tabelle scaricate
783--
784
785--
786-- Indici per le tabelle `soraldo_access`
787--
788ALTER TABLE `soraldo_access`
789 ADD PRIMARY KEY (`access_id`);
790
791--
792-- Indici per le tabelle `soraldo_authors`
793--
794ALTER TABLE `soraldo_authors`
795 ADD PRIMARY KEY (`aid`,`id_comune`),
796 ADD KEY `aid` (`aid`);
797
798--
799-- Indici per le tabelle `soraldo_doc_cons`
800--
801ALTER TABLE `soraldo_doc_cons`
802 ADD KEY `id_cons` (`id_cons`,`id_doc`);
803
804--
805-- Indici per le tabelle `soraldo_ele_candidati`
806--
807ALTER TABLE `soraldo_ele_candidati`
808 ADD PRIMARY KEY (`id_cand`) USING BTREE,
809 ADD KEY `id_lista` (`id_lista`),
810 ADD KEY `id_cons` (`id_cons`,`id_lista`) USING BTREE;
811
812--
813-- Indici per le tabelle `soraldo_ele_circoscrizione`
814--
815ALTER TABLE `soraldo_ele_circoscrizione`
816 ADD UNIQUE KEY `id_circ` (`id_circ`),
817 ADD UNIQUE KEY `id_cons` (`id_cons`,`num_circ`);
818
819--
820-- Indici per le tabelle `soraldo_ele_collegi`
821--
822ALTER TABLE `soraldo_ele_collegi`
823 ADD PRIMARY KEY (`id_collegio`),
824 ADD KEY `id_cons_gen` (`id_cons_gen`);
825
826--
827-- Indici per le tabelle `soraldo_ele_come`
828--
829ALTER TABLE `soraldo_ele_come`
830 ADD UNIQUE KEY `mid` (`mid`);
831
832--
833-- Indici per le tabelle `soraldo_ele_comuni`
834--
835ALTER TABLE `soraldo_ele_comuni`
836 ADD PRIMARY KEY (`id_comune`),
837 ADD KEY `access_id` (`descrizione`);
838
839--
840-- Indici per le tabelle `soraldo_ele_comu_collegi`
841--
842ALTER TABLE `soraldo_ele_comu_collegi`
843 ADD PRIMARY KEY (`id_cons_gen`,`id_comune`),
844 ADD KEY `id_cons` (`id_cons`),
845 ADD KEY `id_collegio` (`id_collegio`);
846
847--
848-- Indici per le tabelle `soraldo_ele_conf`
849--
850ALTER TABLE `soraldo_ele_conf`
851 ADD PRIMARY KEY (`id_conf`);
852
853--
854-- Indici per le tabelle `soraldo_ele_consultazione`
855--
856ALTER TABLE `soraldo_ele_consultazione`
857 ADD PRIMARY KEY (`id_cons_gen`),
858 ADD UNIQUE KEY `descrizione` (`descrizione`(100));
859
860--
861-- Indici per le tabelle `soraldo_ele_cons_comune`
862--
863ALTER TABLE `soraldo_ele_cons_comune`
864 ADD PRIMARY KEY (`id_cons`),
865 ADD UNIQUE KEY `comune` (`id_comune`,`id_cons_gen`);
866
867--
868-- Indici per le tabelle `soraldo_ele_controlli`
869--
870ALTER TABLE `soraldo_ele_controlli`
871 ADD KEY `sezione` (`id_sez`);
872
873--
874-- Indici per le tabelle `soraldo_ele_documenti`
875--
876ALTER TABLE `soraldo_ele_documenti`
877 ADD PRIMARY KEY (`id_doc`),
878 ADD KEY `descrizione` (`descrizione`);
879
880--
881-- Indici per le tabelle `soraldo_ele_fasce`
882--
883ALTER TABLE `soraldo_ele_fasce`
884 ADD KEY `id_fascia` (`id_fascia`);
885
886--
887-- Indici per le tabelle `soraldo_ele_gruppo`
888--
889ALTER TABLE `soraldo_ele_gruppo`
890 ADD PRIMARY KEY (`id_gruppo`) USING BTREE,
891 ADD KEY `id_cons` (`id_cons`,`id_circ`) USING BTREE;
892
893--
894-- Indici per le tabelle `soraldo_ele_link`
895--
896ALTER TABLE `soraldo_ele_link`
897 ADD PRIMARY KEY (`mid`);
898
899--
900-- Indici per le tabelle `soraldo_ele_lista`
901--
902ALTER TABLE `soraldo_ele_lista`
903 ADD PRIMARY KEY (`id_lista`) USING BTREE,
904 ADD KEY `id_gruppo` (`id_gruppo`),
905 ADD KEY `id_cons` (`id_cons`,`id_gruppo`) USING BTREE;
906
907--
908-- Indici per le tabelle `soraldo_ele_modelli`
909--
910ALTER TABLE `soraldo_ele_modelli`
911 ADD KEY `access_id` (`id_cons`);
912
913--
914-- Indici per le tabelle `soraldo_ele_numeri`
915--
916ALTER TABLE `soraldo_ele_numeri`
917 ADD PRIMARY KEY (`mid`),
918 ADD KEY `id_cons` (`id_cons`);
919
920--
921-- Indici per le tabelle `soraldo_ele_operatori`
922--
923ALTER TABLE `soraldo_ele_operatori`
924 ADD UNIQUE KEY `id_cons_aid` (`id_cons`,`aid`,`id_comune`),
925 ADD KEY `id_circ` (`id_comune`),
926 ADD KEY `id_sede` (`id_sede`);
927
928--
929-- Indici per le tabelle `soraldo_ele_regioni`
930--
931ALTER TABLE `soraldo_ele_regioni`
932 ADD PRIMARY KEY (`id`),
933 ADD KEY `descrizione` (`descrizione`);
934
935--
936-- Indici per le tabelle `soraldo_ele_rilaff`
937--
938ALTER TABLE `soraldo_ele_rilaff`
939 ADD KEY `id_cons_gen` (`id_cons_gen`);
940
941--
942-- Indici per le tabelle `soraldo_ele_sede`
943--
944ALTER TABLE `soraldo_ele_sede`
945 ADD PRIMARY KEY (`id_sede`),
946 ADD KEY `id_cons` (`id_cons`),
947 ADD KEY `id_circ` (`id_circ`);
948
949--
950-- Indici per le tabelle `soraldo_ele_servizi`
951--
952ALTER TABLE `soraldo_ele_servizi`
953 ADD PRIMARY KEY (`mid`),
954 ADD KEY `id_cons` (`id_cons`);
955
956--
957-- Indici per le tabelle `soraldo_ele_sezioni`
958--
959ALTER TABLE `soraldo_ele_sezioni`
960 ADD UNIQUE KEY `id_sezi` (`id_sez`),
961 ADD KEY `id_cons` (`id_cons`),
962 ADD KEY `id_sede` (`id_sede`);
963
964--
965-- Indici per le tabelle `soraldo_ele_temi`
966--
967ALTER TABLE `soraldo_ele_temi`
968 ADD PRIMARY KEY (`id`);
969
970--
971-- Indici per le tabelle `soraldo_ele_tipo`
972--
973ALTER TABLE `soraldo_ele_tipo`
974 ADD PRIMARY KEY (`tipo_cons`);
975
976--
977-- Indici per le tabelle `soraldo_ele_voti_candidati`
978--
979ALTER TABLE `soraldo_ele_voti_candidati`
980 ADD KEY `id_sez` (`id_sez`),
981 ADD KEY `id_cand` (`id_cand`),
982 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_cand`) USING BTREE;
983
984--
985-- Indici per le tabelle `soraldo_ele_voti_gruppo`
986--
987ALTER TABLE `soraldo_ele_voti_gruppo`
988 ADD KEY `id_gruppo` (`id_gruppo`),
989 ADD KEY `id_sez` (`id_sez`),
990 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_gruppo`) USING BTREE;
991
992--
993-- Indici per le tabelle `soraldo_ele_voti_lista`
994--
995ALTER TABLE `soraldo_ele_voti_lista`
996 ADD KEY `id_lista` (`id_lista`),
997 ADD KEY `id_sez` (`id_sez`),
998 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_lista`) USING BTREE;
999
1000--
1001-- Indici per le tabelle `soraldo_ele_voti_parziale`
1002--
1003ALTER TABLE `soraldo_ele_voti_parziale`
1004 ADD PRIMARY KEY (`id_parz`),
1005 ADD KEY `id_cons` (`id_cons`),
1006 ADD KEY `id_sez` (`id_sez`),
1007 ADD KEY `id_gruppo` (`id_gruppo`);
1008
1009--
1010-- Indici per le tabelle `soraldo_ele_voti_ref`
1011--
1012ALTER TABLE `soraldo_ele_voti_ref`
1013 ADD KEY `id_gruppo` (`id_gruppo`),
1014 ADD KEY `id_sez` (`id_sez`),
1015 ADD KEY `id_cons` (`id_cons`,`id_gruppo`) USING BTREE;
1016
1017--
1018-- Indici per le tabelle `soraldo_ele_widget`
1019--
1020ALTER TABLE `soraldo_ele_widget`
1021 ADD PRIMARY KEY (`id`);
1022
1023--
1024-- AUTO_INCREMENT per le tabelle scaricate
1025--
1026
1027--
1028-- AUTO_INCREMENT per la tabella `soraldo_ele_candidati`
1029--
1030ALTER TABLE `soraldo_ele_candidati`
1031 MODIFY `id_cand` int(11) NOT NULL AUTO_INCREMENT;
1032
1033--
1034-- AUTO_INCREMENT per la tabella `soraldo_ele_circoscrizione`
1035--
1036ALTER TABLE `soraldo_ele_circoscrizione`
1037 MODIFY `id_circ` int(11) NOT NULL AUTO_INCREMENT;
1038
1039--
1040-- AUTO_INCREMENT per la tabella `soraldo_ele_collegi`
1041--
1042ALTER TABLE `soraldo_ele_collegi`
1043 MODIFY `id_collegio` int(11) NOT NULL AUTO_INCREMENT;
1044
1045--
1046-- AUTO_INCREMENT per la tabella `soraldo_ele_come`
1047--
1048ALTER TABLE `soraldo_ele_come`
1049 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
1050
1051--
1052-- AUTO_INCREMENT per la tabella `soraldo_ele_conf`
1053--
1054ALTER TABLE `soraldo_ele_conf`
1055 MODIFY `id_conf` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
1056
1057--
1058-- AUTO_INCREMENT per la tabella `soraldo_ele_consultazione`
1059--
1060ALTER TABLE `soraldo_ele_consultazione`
1061 MODIFY `id_cons_gen` int(11) NOT NULL AUTO_INCREMENT;
1062
1063--
1064-- AUTO_INCREMENT per la tabella `soraldo_ele_cons_comune`
1065--
1066ALTER TABLE `soraldo_ele_cons_comune`
1067 MODIFY `id_cons` int(11) NOT NULL AUTO_INCREMENT;
1068
1069--
1070-- AUTO_INCREMENT per la tabella `soraldo_ele_documenti`
1071--
1072ALTER TABLE `soraldo_ele_documenti`
1073 MODIFY `id_doc` int(11) NOT NULL AUTO_INCREMENT;
1074
1075--
1076-- AUTO_INCREMENT per la tabella `soraldo_ele_gruppo`
1077--
1078ALTER TABLE `soraldo_ele_gruppo`
1079 MODIFY `id_gruppo` int(11) NOT NULL AUTO_INCREMENT;
1080
1081--
1082-- AUTO_INCREMENT per la tabella `soraldo_ele_link`
1083--
1084ALTER TABLE `soraldo_ele_link`
1085 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
1086
1087--
1088-- AUTO_INCREMENT per la tabella `soraldo_ele_lista`
1089--
1090ALTER TABLE `soraldo_ele_lista`
1091 MODIFY `id_lista` int(11) NOT NULL AUTO_INCREMENT;
1092
1093--
1094-- AUTO_INCREMENT per la tabella `soraldo_ele_numeri`
1095--
1096ALTER TABLE `soraldo_ele_numeri`
1097 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
1098
1099--
1100-- AUTO_INCREMENT per la tabella `soraldo_ele_sede`
1101--
1102ALTER TABLE `soraldo_ele_sede`
1103 MODIFY `id_sede` int(11) NOT NULL AUTO_INCREMENT;
1104
1105--
1106-- AUTO_INCREMENT per la tabella `soraldo_ele_servizi`
1107--
1108ALTER TABLE `soraldo_ele_servizi`
1109 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
1110
1111--
1112-- AUTO_INCREMENT per la tabella `soraldo_ele_sezioni`
1113--
1114ALTER TABLE `soraldo_ele_sezioni`
1115 MODIFY `id_sez` int(11) NOT NULL AUTO_INCREMENT;
1116
1117--
1118-- AUTO_INCREMENT per la tabella `soraldo_ele_temi`
1119--
1120ALTER TABLE `soraldo_ele_temi`
1121 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
1122
1123--
1124-- AUTO_INCREMENT per la tabella `soraldo_ele_voti_parziale`
1125--
1126ALTER TABLE `soraldo_ele_voti_parziale`
1127 MODIFY `id_parz` int(11) NOT NULL AUTO_INCREMENT;
1128
1129--
1130-- AUTO_INCREMENT per la tabella `soraldo_ele_widget`
1131--
1132ALTER TABLE `soraldo_ele_widget`
1133 MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
1134COMMIT;
1135
1136/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1137/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1138/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Note: See TracBrowser for help on using the repository browser.