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

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

Ritocchi e sistemazioni varie di completamento delle mofifiche precedenti

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