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
RevLine 
[270]1-- phpMyAdmin SQL Dump
[360]2-- version 5.1.0
[270]3-- https://www.phpmyadmin.net/
[2]4--
[360]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
[2]9
[270]10SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11START TRANSACTION;
12SET time_zone = "+00:00";
[2]13
[270]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
[2]20--
[360]21-- Database: `eleonline3`
[2]22--
23
[270]24-- --------------------------------------------------------
25
26--
27-- Struttura della tabella `soraldo_access`
28--
29
[2]30CREATE TABLE `soraldo_access` (
31 `access_id` int(10) NOT NULL,
[270]32 `access_title` varchar(20) DEFAULT NULL
[360]33) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]34
35--
[270]36-- Dump dei dati per la tabella `soraldo_access`
[2]37--
38
[270]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');
[2]45
[270]46-- --------------------------------------------------------
[2]47
48--
[270]49-- Struttura della tabella `soraldo_authors`
[2]50--
51
52CREATE TABLE `soraldo_authors` (
[270]53 `aid` varchar(25) NOT NULL DEFAULT '',
54 `name` varchar(50) DEFAULT NULL,
[360]55 `id_comune` int(11) NOT NULL DEFAULT 0,
[270]56 `email` varchar(255) DEFAULT NULL,
57 `pwd` varchar(40) DEFAULT NULL,
[360]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,
[270]62 `admlanguage` varchar(30) NOT NULL DEFAULT ''
[360]63) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]64
65--
[270]66-- Dump dei dati per la tabella `soraldo_authors`
[2]67--
68
[270]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');
[2]71
[270]72-- --------------------------------------------------------
[2]73
74--
[270]75-- Struttura della tabella `soraldo_config`
[2]76--
77
78CREATE TABLE `soraldo_config` (
[270]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 '',
[360]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',
[270]101 `editor` enum('0','1') NOT NULL DEFAULT '1',
102 `tema_on` enum('0','1') NOT NULL DEFAULT '1',
[360]103 `ed_user` varchar(25) NOT NULL DEFAULT '',
104 `secret` varchar(30) DEFAULT NULL
105) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]106
107--
[270]108-- Dump dei dati per la tabella `soraldo_config`
[2]109--
110
[270]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
[360]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');
[2]113
[270]114-- --------------------------------------------------------
[2]115
116--
[270]117-- Struttura della tabella `soraldo_doc_cons`
[2]118--
119
120CREATE TABLE `soraldo_doc_cons` (
[360]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;
[2]125
[270]126-- --------------------------------------------------------
[2]127
128--
[270]129-- Struttura della tabella `soraldo_ele_candidati`
[2]130--
131
132CREATE TABLE `soraldo_ele_candidati` (
[270]133 `id_cand` int(11) NOT NULL,
[360]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,
[270]137 `cognome` varchar(50) DEFAULT NULL,
138 `nome` varchar(50) DEFAULT NULL,
[360]139 `note` text NOT NULL,
[270]140 `simbolo` varchar(30) NOT NULL DEFAULT '',
[360]141 `num_cand` int(7) NOT NULL DEFAULT 0
142) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]143
[270]144-- --------------------------------------------------------
[2]145
146--
[270]147-- Struttura della tabella `soraldo_ele_circoscrizione`
[2]148--
149
150CREATE TABLE `soraldo_ele_circoscrizione` (
[360]151 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]152 `id_circ` int(11) NOT NULL,
[360]153 `num_circ` int(7) NOT NULL DEFAULT 0,
154 `descrizione` mediumtext DEFAULT NULL
155) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]156
[270]157-- --------------------------------------------------------
[2]158
159--
[270]160-- Struttura della tabella `soraldo_ele_collegi`
[2]161--
162
163CREATE TABLE `soraldo_ele_collegi` (
[270]164 `id_collegio` int(11) NOT NULL,
[360]165 `id_cons_gen` int(11) NOT NULL DEFAULT 0,
166 `descrizione` mediumtext DEFAULT NULL
167) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]168
[270]169-- --------------------------------------------------------
[2]170
171--
[270]172-- Struttura della tabella `soraldo_ele_come`
[2]173--
174
175CREATE TABLE `soraldo_ele_come` (
[360]176 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]177 `mid` int(7) NOT NULL,
178 `title` varchar(150) NOT NULL DEFAULT '',
[360]179 `preamble` mediumtext NOT NULL,
180 `content` mediumtext NOT NULL,
[270]181 `editimage` varchar(100) NOT NULL DEFAULT ''
[360]182) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]183
[270]184-- --------------------------------------------------------
[2]185
186--
[270]187-- Struttura della tabella `soraldo_ele_comuni`
[2]188--
189
190CREATE TABLE `soraldo_ele_comuni` (
[360]191 `id_comune` int(11) NOT NULL DEFAULT 0,
[270]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,
[360]197 `fascia` tinyint(4) NOT NULL DEFAULT 0,
[270]198 `capoluogo` enum('0','1') NOT NULL DEFAULT '0',
[360]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;
[2]204
[270]205-- --------------------------------------------------------
206
[2]207--
[270]208-- Struttura della tabella `soraldo_ele_comu_collegi`
[2]209--
210
[270]211CREATE TABLE `soraldo_ele_comu_collegi` (
[360]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;
[2]217
[270]218-- --------------------------------------------------------
[2]219
220--
[270]221-- Struttura della tabella `soraldo_ele_conf`
[2]222--
223
224CREATE TABLE `soraldo_ele_conf` (
[270]225 `id_conf` int(11) NOT NULL,
[2]226 `descrizione` varchar(50) NOT NULL,
227 `limite` int(2) NOT NULL,
[189]228 `consin` enum('0','1') NOT NULL DEFAULT '1',
[2]229 `infpremio` int(3) NOT NULL,
230 `supsbarramento` int(3) NOT NULL,
231 `suppremio` int(3) NOT NULL,
[360]232 `listinfsbar` int(3) NOT NULL DEFAULT 1,
[189]233 `listinfconta` enum('0','1') NOT NULL DEFAULT '1',
234 `listsupconta` enum('0','1') NOT NULL DEFAULT '1',
[2]235 `supminpremio` int(3) NOT NULL,
236 `infminpremio` int(3) NOT NULL,
[139]237 `infdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
238 `supdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
[189]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',
[360]242 `fascia_capoluogo` int(2) NOT NULL DEFAULT 0
243) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]244
245--
[270]246-- Dump dei dati per la tabella `soraldo_ele_conf`
[2]247--
248
[189]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),
[201]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),
[199]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);
[2]257
[270]258-- --------------------------------------------------------
259
[2]260--
[270]261-- Struttura della tabella `soraldo_ele_consultazione`
[2]262--
263
[270]264CREATE TABLE `soraldo_ele_consultazione` (
265 `id_cons_gen` int(11) NOT NULL,
[360]266 `descrizione` mediumtext DEFAULT NULL,
[270]267 `data_inizio` date DEFAULT NULL,
268 `data_fine` date DEFAULT NULL,
[360]269 `tipo_cons` int(7) NOT NULL DEFAULT 0
270) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]271
[270]272-- --------------------------------------------------------
273
[2]274--
[270]275-- Struttura della tabella `soraldo_ele_cons_comune`
[2]276--
277
[270]278CREATE TABLE `soraldo_ele_cons_comune` (
279 `id_cons` int(11) NOT NULL,
280 `chiusa` set('0','1','2') NOT NULL DEFAULT '0',
[360]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,
[270]284 `preferita` enum('0','1') NOT NULL DEFAULT '0',
[360]285 `preferenze` tinyint(1) NOT NULL DEFAULT 1,
286 `id_fascia` int(2) NOT NULL DEFAULT 1,
[270]287 `vismf` enum('0','1') NOT NULL DEFAULT '0',
[360]288 `solo_gruppo` enum('0','1') DEFAULT '0',
[270]289 `disgiunto` enum('0','1') NOT NULL DEFAULT '0'
[360]290) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]291
[270]292-- --------------------------------------------------------
[2]293
294--
[270]295-- Struttura della tabella `soraldo_ele_controlli`
[2]296--
297
[270]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
[360]303) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]304
[270]305-- --------------------------------------------------------
[2]306
307--
[270]308-- Struttura della tabella `soraldo_ele_documenti`
[2]309--
310
311CREATE TABLE `soraldo_ele_documenti` (
[270]312 `id_doc` int(11) NOT NULL,
[360]313 `descrizione` varchar(50) NOT NULL DEFAULT '',
314 `nomedoc` varchar(25) NOT NULL DEFAULT '',
[270]315 `filedoc` blob NOT NULL
[360]316) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]317
[270]318-- --------------------------------------------------------
[2]319
320--
[270]321-- Struttura della tabella `soraldo_ele_fasce`
[2]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,
[360]328 `id_conf` int(11) DEFAULT 1
329) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]330
331--
[270]332-- Dump dei dati per la tabella `soraldo_ele_fasce`
[2]333--
334
[270]335INSERT INTO `soraldo_ele_fasce` (`id_fascia`, `abitanti`, `seggi`, `id_conf`) VALUES
[189]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),
[199]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);
[2]403
[270]404-- --------------------------------------------------------
405
[2]406--
[270]407-- Struttura della tabella `soraldo_ele_gruppo`
[2]408--
409
410CREATE TABLE `soraldo_ele_gruppo` (
[360]411 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]412 `id_gruppo` int(11) NOT NULL,
[360]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;
[2]422
[270]423-- --------------------------------------------------------
424
[2]425--
[270]426-- Struttura della tabella `soraldo_ele_link`
[2]427--
428
[270]429CREATE TABLE `soraldo_ele_link` (
[360]430 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]431 `mid` int(7) NOT NULL,
432 `title` varchar(150) NOT NULL DEFAULT '',
[360]433 `preamble` mediumtext NOT NULL,
434 `content` mediumtext NOT NULL,
[270]435 `editimage` varchar(100) NOT NULL DEFAULT ''
[360]436) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]437
[270]438-- --------------------------------------------------------
[2]439
440--
[270]441-- Struttura della tabella `soraldo_ele_lista`
[2]442--
443
[270]444CREATE TABLE `soraldo_ele_lista` (
[360]445 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]446 `id_lista` int(11) NOT NULL,
[360]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;
[2]456
[270]457-- --------------------------------------------------------
458
[2]459--
[270]460-- Struttura della tabella `soraldo_ele_log`
[2]461--
462
[270]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,
[360]469 `log_da` mediumtext DEFAULT NULL,
470 `log_a` mediumtext DEFAULT NULL,
[270]471 `tabella` varchar(30) DEFAULT NULL
[360]472) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]473
[270]474-- --------------------------------------------------------
[2]475
476--
[270]477-- Struttura della tabella `soraldo_ele_modelli`
[2]478--
479
[270]480CREATE TABLE `soraldo_ele_modelli` (
[360]481 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]482 `categoria` varchar(20) NOT NULL DEFAULT '',
483 `modello` blob NOT NULL
[360]484) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]485
[270]486-- --------------------------------------------------------
487
[2]488--
[270]489-- Struttura della tabella `soraldo_ele_numeri`
[2]490--
491
[270]492CREATE TABLE `soraldo_ele_numeri` (
[360]493 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]494 `mid` int(7) NOT NULL,
495 `title` varchar(150) NOT NULL DEFAULT '',
[360]496 `preamble` mediumtext NOT NULL,
497 `content` mediumtext NOT NULL,
[270]498 `editimage` varchar(100) NOT NULL DEFAULT ''
[360]499) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]500
[270]501-- --------------------------------------------------------
[2]502
503--
[270]504-- Struttura della tabella `soraldo_ele_operatori`
[2]505--
506
[270]507CREATE TABLE `soraldo_ele_operatori` (
[360]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,
[270]511 `permessi` int(3) DEFAULT NULL,
[360]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;
[2]516
[270]517-- --------------------------------------------------------
518
[2]519--
[270]520-- Struttura della tabella `soraldo_ele_province`
[2]521--
522
[270]523CREATE TABLE `soraldo_ele_province` (
[360]524 `id` tinyint(11) NOT NULL DEFAULT 0,
525 `descrizione` varchar(30) NOT NULL DEFAULT ''
526) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]527
[270]528-- --------------------------------------------------------
[2]529
530--
[270]531-- Struttura della tabella `soraldo_ele_regioni`
[2]532--
533
[270]534CREATE TABLE `soraldo_ele_regioni` (
[360]535 `id` int(11) NOT NULL DEFAULT 0,
536 `descrizione` varchar(25) NOT NULL DEFAULT ''
537) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]538
[270]539-- --------------------------------------------------------
540
[2]541--
[270]542-- Struttura della tabella `soraldo_ele_rilaff`
[2]543--
544
[270]545CREATE TABLE `soraldo_ele_rilaff` (
[360]546 `id_cons_gen` int(11) NOT NULL DEFAULT 0,
[270]547 `orario` time NOT NULL DEFAULT '00:00:00',
[360]548 `data` date NOT NULL DEFAULT '0000-00-00'
549) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]550
[270]551-- --------------------------------------------------------
[2]552
553--
[270]554-- Struttura della tabella `soraldo_ele_sede`
[2]555--
556
[270]557CREATE TABLE `soraldo_ele_sede` (
[360]558 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]559 `id_sede` int(11) NOT NULL,
[360]560 `id_circ` int(11) NOT NULL DEFAULT 0,
[270]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 ''
[360]568) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[270]569
570-- --------------------------------------------------------
571
572--
573-- Struttura della tabella `soraldo_ele_servizi`
574--
575
576CREATE TABLE `soraldo_ele_servizi` (
[360]577 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]578 `mid` int(7) NOT NULL,
579 `title` varchar(150) NOT NULL DEFAULT '',
[360]580 `preamble` mediumtext NOT NULL,
581 `content` mediumtext NOT NULL,
[270]582 `editimage` varchar(100) NOT NULL DEFAULT ''
[360]583) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]584
[270]585-- --------------------------------------------------------
586
[2]587--
[270]588-- Struttura della tabella `soraldo_ele_sezioni`
[2]589--
590
[270]591CREATE TABLE `soraldo_ele_sezioni` (
[360]592 `id_cons` int(11) NOT NULL DEFAULT 0,
[270]593 `id_sez` int(11) NOT NULL,
[360]594 `id_sede` int(11) NOT NULL DEFAULT 0,
595 `num_sez` int(7) NOT NULL DEFAULT 0,
[270]596 `maschi` int(4) DEFAULT NULL,
597 `femmine` int(4) DEFAULT NULL,
[360]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,
[270]610 `colore` varchar(50) DEFAULT NULL
[360]611) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]612
[270]613-- --------------------------------------------------------
[2]614
615--
[270]616-- Struttura della tabella `soraldo_ele_temi`
[2]617--
618
[270]619CREATE TABLE `soraldo_ele_temi` (
620 `id` int(11) NOT NULL,
621 `tema` varchar(20) NOT NULL DEFAULT ''
[360]622) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]623
[270]624-- --------------------------------------------------------
625
[2]626--
[270]627-- Struttura della tabella `soraldo_ele_tipo`
[2]628--
629
[270]630CREATE TABLE `soraldo_ele_tipo` (
[360]631 `tipo_cons` int(11) NOT NULL DEFAULT 0,
[270]632 `descrizione` varchar(30) DEFAULT NULL,
633 `lingua` varchar(2) NOT NULL DEFAULT '0',
[360]634 `genere` tinyint(4) NOT NULL DEFAULT 0,
[270]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'
[360]639) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]640
[270]641--
642-- Dump dei dati per la tabella `soraldo_ele_tipo`
643--
[2]644
[270]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'),
[354]653(8, 'EUROPEE', 'it', 4, '0', '0', '0', '0'),
[270]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
[2]668--
[270]669-- Struttura della tabella `soraldo_ele_voti_candidati`
[2]670--
671
[270]672CREATE TABLE `soraldo_ele_voti_candidati` (
[360]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,
[270]676 `num_cand` int(2) UNSIGNED NOT NULL,
[360]677 `voti` int(7) NOT NULL DEFAULT 0
678) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]679
[270]680-- --------------------------------------------------------
681
[2]682--
[270]683-- Struttura della tabella `soraldo_ele_voti_gruppo`
[2]684--
685
[270]686CREATE TABLE `soraldo_ele_voti_gruppo` (
[360]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,
[270]690 `num_gruppo` int(2) UNSIGNED NOT NULL,
[360]691 `voti` int(7) NOT NULL DEFAULT 0,
692 `solo_gruppo` int(7) NOT NULL DEFAULT 0
693) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[2]694
[270]695-- --------------------------------------------------------
[2]696
697--
[270]698-- Struttura della tabella `soraldo_ele_voti_lista`
[2]699--
700
[270]701CREATE TABLE `soraldo_ele_voti_lista` (
[360]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;
[2]710
[270]711-- --------------------------------------------------------
712
[2]713--
[270]714-- Struttura della tabella `soraldo_ele_voti_parziale`
[2]715--
716
[270]717CREATE TABLE `soraldo_ele_voti_parziale` (
[360]718 `id_cons` int(11) NOT NULL DEFAULT 0,
719 `id_sez` int(11) NOT NULL DEFAULT 0,
[270]720 `id_parz` int(11) NOT NULL,
721 `orario` time NOT NULL DEFAULT '00:00:00',
[360]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;
[2]728
[270]729-- --------------------------------------------------------
[2]730
731--
[270]732-- Struttura della tabella `soraldo_ele_voti_ref`
[2]733--
734
[270]735CREATE TABLE `soraldo_ele_voti_ref` (
[360]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,
[270]739 `num_gruppo` int(2) UNSIGNED NOT NULL,
[360]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;
[2]747
[270]748-- --------------------------------------------------------
749
[2]750--
[270]751-- Struttura della tabella `soraldo_ele_widget`
[2]752--
753
[270]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 '',
[360]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;
[2]762
[270]763--
764-- Dump dei dati per la tabella `soraldo_ele_widget`
765--
[2]766
[270]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
[2]781--
[270]782-- Indici per le tabelle scaricate
[2]783--
784
[270]785--
786-- Indici per le tabelle `soraldo_access`
787--
788ALTER TABLE `soraldo_access`
789 ADD PRIMARY KEY (`access_id`);
[2]790
791--
[270]792-- Indici per le tabelle `soraldo_authors`
[2]793--
[270]794ALTER TABLE `soraldo_authors`
795 ADD PRIMARY KEY (`aid`,`id_comune`),
796 ADD KEY `aid` (`aid`);
[2]797
[270]798--
799-- Indici per le tabelle `soraldo_doc_cons`
800--
801ALTER TABLE `soraldo_doc_cons`
802 ADD KEY `id_cons` (`id_cons`,`id_doc`);
[2]803
[270]804--
805-- Indici per le tabelle `soraldo_ele_candidati`
806--
807ALTER TABLE `soraldo_ele_candidati`
[360]808 ADD PRIMARY KEY (`id_cand`) USING BTREE,
[270]809 ADD KEY `id_lista` (`id_lista`),
[360]810 ADD KEY `id_cons` (`id_cons`,`id_lista`) USING BTREE;
[2]811
812--
[270]813-- Indici per le tabelle `soraldo_ele_circoscrizione`
[2]814--
[270]815ALTER TABLE `soraldo_ele_circoscrizione`
816 ADD UNIQUE KEY `id_circ` (`id_circ`),
817 ADD UNIQUE KEY `id_cons` (`id_cons`,`num_circ`);
[2]818
[270]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`);
[2]825
826--
[270]827-- Indici per le tabelle `soraldo_ele_come`
[2]828--
[270]829ALTER TABLE `soraldo_ele_come`
830 ADD UNIQUE KEY `mid` (`mid`);
[2]831
[270]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`);
[2]838
[270]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`);
[2]846
847--
[270]848-- Indici per le tabelle `soraldo_ele_conf`
[2]849--
[270]850ALTER TABLE `soraldo_ele_conf`
851 ADD PRIMARY KEY (`id_conf`);
[2]852
[270]853--
854-- Indici per le tabelle `soraldo_ele_consultazione`
855--
856ALTER TABLE `soraldo_ele_consultazione`
[360]857 ADD PRIMARY KEY (`id_cons_gen`),
858 ADD UNIQUE KEY `descrizione` (`descrizione`(100));
[2]859
860--
[270]861-- Indici per le tabelle `soraldo_ele_cons_comune`
[2]862--
[270]863ALTER TABLE `soraldo_ele_cons_comune`
864 ADD PRIMARY KEY (`id_cons`),
865 ADD UNIQUE KEY `comune` (`id_comune`,`id_cons_gen`);
[2]866
[270]867--
868-- Indici per le tabelle `soraldo_ele_controlli`
869--
870ALTER TABLE `soraldo_ele_controlli`
871 ADD KEY `sezione` (`id_sez`);
[2]872
[270]873--
874-- Indici per le tabelle `soraldo_ele_documenti`
[2]875--
[270]876ALTER TABLE `soraldo_ele_documenti`
877 ADD PRIMARY KEY (`id_doc`),
878 ADD KEY `descrizione` (`descrizione`);
[2]879
[270]880--
881-- Indici per le tabelle `soraldo_ele_fasce`
882--
883ALTER TABLE `soraldo_ele_fasce`
884 ADD KEY `id_fascia` (`id_fascia`);
[2]885
886--
[270]887-- Indici per le tabelle `soraldo_ele_gruppo`
[2]888--
[270]889ALTER TABLE `soraldo_ele_gruppo`
[360]890 ADD PRIMARY KEY (`id_gruppo`) USING BTREE,
891 ADD KEY `id_cons` (`id_cons`,`id_circ`) USING BTREE;
[2]892
[270]893--
894-- Indici per le tabelle `soraldo_ele_link`
895--
896ALTER TABLE `soraldo_ele_link`
897 ADD PRIMARY KEY (`mid`);
[2]898
[270]899--
900-- Indici per le tabelle `soraldo_ele_lista`
901--
902ALTER TABLE `soraldo_ele_lista`
[360]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;
[2]906
907--
[270]908-- Indici per le tabelle `soraldo_ele_modelli`
909--
910ALTER TABLE `soraldo_ele_modelli`
911 ADD KEY `access_id` (`id_cons`);
[93]912
913--
[270]914-- Indici per le tabelle `soraldo_ele_numeri`
[93]915--
[270]916ALTER TABLE `soraldo_ele_numeri`
917 ADD PRIMARY KEY (`mid`),
918 ADD KEY `id_cons` (`id_cons`);
[93]919
[270]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`);
[93]927
[270]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`);
[2]934
935--
[270]936-- Indici per le tabelle `soraldo_ele_rilaff`
[2]937--
[270]938ALTER TABLE `soraldo_ele_rilaff`
939 ADD KEY `id_cons_gen` (`id_cons_gen`);
[2]940
[270]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`);
[2]948
949--
[270]950-- Indici per le tabelle `soraldo_ele_servizi`
[2]951--
[270]952ALTER TABLE `soraldo_ele_servizi`
953 ADD PRIMARY KEY (`mid`),
954 ADD KEY `id_cons` (`id_cons`);
[2]955
[270]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`);
[2]963
[270]964--
965-- Indici per le tabelle `soraldo_ele_temi`
966--
967ALTER TABLE `soraldo_ele_temi`
968 ADD PRIMARY KEY (`id`);
[2]969
970--
[270]971-- Indici per le tabelle `soraldo_ele_tipo`
[2]972--
[270]973ALTER TABLE `soraldo_ele_tipo`
974 ADD PRIMARY KEY (`tipo_cons`);
[2]975
[270]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`),
[360]982 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_cand`) USING BTREE;
[2]983
984--
[270]985-- Indici per le tabelle `soraldo_ele_voti_gruppo`
[2]986--
[270]987ALTER TABLE `soraldo_ele_voti_gruppo`
988 ADD KEY `id_gruppo` (`id_gruppo`),
989 ADD KEY `id_sez` (`id_sez`),
[360]990 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_gruppo`) USING BTREE;
[2]991
[270]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`),
[360]998 ADD KEY `id_cons` (`id_cons`,`id_sez`,`id_lista`) USING BTREE;
[2]999
[270]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`);
[2]1008
1009--
[270]1010-- Indici per le tabelle `soraldo_ele_voti_ref`
[2]1011--
[270]1012ALTER TABLE `soraldo_ele_voti_ref`
1013 ADD KEY `id_gruppo` (`id_gruppo`),
1014 ADD KEY `id_sez` (`id_sez`),
[360]1015 ADD KEY `id_cons` (`id_cons`,`id_gruppo`) USING BTREE;
[2]1016
[270]1017--
1018-- Indici per le tabelle `soraldo_ele_widget`
1019--
1020ALTER TABLE `soraldo_ele_widget`
1021 ADD PRIMARY KEY (`id`);
[2]1022
1023--
[270]1024-- AUTO_INCREMENT per le tabelle scaricate
[2]1025--
1026
[270]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;
[2]1032
[270]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;
[2]1038
1039--
[270]1040-- AUTO_INCREMENT per la tabella `soraldo_ele_collegi`
[2]1041--
[270]1042ALTER TABLE `soraldo_ele_collegi`
1043 MODIFY `id_collegio` int(11) NOT NULL AUTO_INCREMENT;
[2]1044
[270]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;
[2]1050
1051--
[270]1052-- AUTO_INCREMENT per la tabella `soraldo_ele_conf`
[2]1053--
[270]1054ALTER TABLE `soraldo_ele_conf`
1055 MODIFY `id_conf` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
[2]1056
[270]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;
[2]1062
[270]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;
[2]1068
1069--
[270]1070-- AUTO_INCREMENT per la tabella `soraldo_ele_documenti`
[2]1071--
[270]1072ALTER TABLE `soraldo_ele_documenti`
1073 MODIFY `id_doc` int(11) NOT NULL AUTO_INCREMENT;
[2]1074
[270]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;
[2]1080
1081--
[270]1082-- AUTO_INCREMENT per la tabella `soraldo_ele_link`
[2]1083--
[270]1084ALTER TABLE `soraldo_ele_link`
1085 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
[2]1086
[270]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;
[2]1092
[270]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;
[77]1098
1099--
[270]1100-- AUTO_INCREMENT per la tabella `soraldo_ele_sede`
[77]1101--
[270]1102ALTER TABLE `soraldo_ele_sede`
1103 MODIFY `id_sede` int(11) NOT NULL AUTO_INCREMENT;
[77]1104
[270]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;
[77]1110
1111--
[270]1112-- AUTO_INCREMENT per la tabella `soraldo_ele_sezioni`
[77]1113--
[270]1114ALTER TABLE `soraldo_ele_sezioni`
1115 MODIFY `id_sez` int(11) NOT NULL AUTO_INCREMENT;
[77]1116
[270]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;
[77]1122
[270]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;
[77]1128
[270]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;
[77]1135
[270]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.