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

Last change on this file since 354 was 354, checked in by roby, 3 years ago

Client : correzioni varie

File size: 31.7 KB
RevLine 
[270]1-- phpMyAdmin SQL Dump
2-- version 4.7.7
3-- https://www.phpmyadmin.net/
[2]4--
[270]5-- Host: 127.0.0.1
6-- Creato il: Apr 16, 2019 alle 21:10
7-- Versione del server: 10.1.30-MariaDB
8-- Versione PHP: 7.2.2
[2]9
[270]10SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11SET AUTOCOMMIT = 0;
12START TRANSACTION;
13SET time_zone = "+00:00";
[2]14
[270]15
16/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19/*!40101 SET NAMES utf8mb4 */;
20
[2]21--
[270]22-- Database: `ele3`
[2]23--
24
[270]25-- --------------------------------------------------------
26
27--
28-- Struttura della tabella `soraldo_access`
29--
30
[2]31CREATE TABLE `soraldo_access` (
32 `access_id` int(10) NOT NULL,
[270]33 `access_title` varchar(20) DEFAULT NULL
[2]34) ENGINE=MyISAM DEFAULT CHARSET=latin1;
35
36--
[270]37-- Dump dei dati per la tabella `soraldo_access`
[2]38--
39
[270]40INSERT INTO `soraldo_access` (`access_id`, `access_title`) VALUES
41(1, 'Sospeso'),
42(16, 'Operatore'),
43(32, 'Amministratore'),
44(64, 'Amministratore Unico'),
45(256, 'Superuser');
[2]46
[270]47-- --------------------------------------------------------
[2]48
49--
[270]50-- Struttura della tabella `soraldo_authors`
[2]51--
52
53CREATE TABLE `soraldo_authors` (
[270]54 `aid` varchar(25) NOT NULL DEFAULT '',
55 `name` varchar(50) DEFAULT NULL,
56 `id_comune` int(11) NOT NULL DEFAULT '0',
57 `email` varchar(255) DEFAULT NULL,
58 `pwd` varchar(40) DEFAULT NULL,
59 `counter` int(11) NOT NULL DEFAULT '0',
60 `adminop` tinyint(2) NOT NULL DEFAULT '0',
61 `admincomune` tinyint(2) NOT NULL DEFAULT '0',
62 `adminsuper` tinyint(2) NOT NULL DEFAULT '1',
63 `admlanguage` varchar(30) NOT NULL DEFAULT ''
[2]64) ENGINE=MyISAM DEFAULT CHARSET=latin1;
65
66--
[270]67-- Dump dei dati per la tabella `soraldo_authors`
[2]68--
69
[270]70INSERT INTO `soraldo_authors` (`aid`, `name`, `id_comune`, `email`, `pwd`, `counter`, `adminop`, `admincomune`, `adminsuper`, `admlanguage`) VALUES
71('suser', 'suser', 0, 'test@', '098f6bcd4621d373cade4e832627b4f6', 1, 0, 0, 1, 'it');
[2]72
[270]73-- --------------------------------------------------------
[2]74
75--
[270]76-- Struttura della tabella `soraldo_config`
[2]77--
78
79CREATE TABLE `soraldo_config` (
[270]80 `sitename` varchar(255) NOT NULL DEFAULT '',
81 `siteurl` varchar(255) NOT NULL DEFAULT '',
82 `site_logo` varchar(255) NOT NULL DEFAULT '',
83 `slogan` varchar(255) NOT NULL DEFAULT '',
84 `startdate` varchar(50) NOT NULL DEFAULT '',
85 `adminmail` varchar(255) NOT NULL DEFAULT '',
[2]86 `tema` varchar(25) NOT NULL,
87 `foot` text NOT NULL,
88 `language` varchar(3) NOT NULL,
89 `blocco` enum('0','1') NOT NULL,
90 `testata` blob,
91 `nome_testata` varchar(50) NOT NULL,
92 `fileout` varchar(255) NOT NULL,
93 `copyright` text NOT NULL,
[277]94 `versione` int(3) NOT NULL,
[2]95 `patch` int(3) NOT NULL,
96 `siteistat` int(11) NOT NULL,
97 `multicomune` enum('0','1') NOT NULL,
98 `flash` enum('0','1') NOT NULL,
99 `displayerrors` enum('0','1') NOT NULL,
100 `gkey` varchar(100) NOT NULL,
101 `googlemaps` enum('0','1') NOT NULL,
[270]102 `editor` enum('0','1') NOT NULL DEFAULT '1',
103 `tema_on` enum('0','1') NOT NULL DEFAULT '1',
[2]104 `ed_user` varchar(25) NOT NULL
105) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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
112('', 'http://www.fonte-nuova.it', '', 'Sito istituzionale', 'Maggio 2009', 'admin@localhost', 'facebook', '<b>Comune di Menfi</b><br>\r\nvia - 84023 Menfi (Ag)\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` (
121 `id_cons` int(11) NOT NULL,
122 `id_doc` int(11) NOT NULL,
[270]123 `tabella` varchar(25) NOT NULL
[2]124) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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,
134 `id_cons` int(11) NOT NULL DEFAULT '0',
135 `id_lista` int(11) NOT NULL DEFAULT '0',
[307]136 `num_lista` int(2) UNSIGNED NOT NULL DEFAULT '0',
[270]137 `cognome` varchar(50) DEFAULT NULL,
138 `nome` varchar(50) DEFAULT NULL,
[2]139 `note` tinytext NOT NULL,
[270]140 `simbolo` varchar(30) NOT NULL DEFAULT '',
141 `num_cand` int(7) NOT NULL DEFAULT '0'
[2]142) ENGINE=MyISAM DEFAULT CHARSET=latin1;
143
[270]144-- --------------------------------------------------------
[2]145
146--
[270]147-- Struttura della tabella `soraldo_ele_circoscrizione`
[2]148--
149
150CREATE TABLE `soraldo_ele_circoscrizione` (
[270]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` text
[2]155) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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,
165 `id_cons_gen` int(11) NOT NULL DEFAULT '0',
166 `descrizione` text
[2]167) ENGINE=MyISAM DEFAULT CHARSET=latin1;
168
[270]169-- --------------------------------------------------------
[2]170
171--
[270]172-- Struttura della tabella `soraldo_ele_come`
[2]173--
174
175CREATE TABLE `soraldo_ele_come` (
[270]176 `id_cons` int(11) NOT NULL DEFAULT '0',
177 `mid` int(7) NOT NULL,
178 `title` varchar(150) NOT NULL DEFAULT '',
[2]179 `preamble` text NOT NULL,
180 `content` text NOT NULL,
[270]181 `editimage` varchar(100) NOT NULL DEFAULT ''
[2]182) ENGINE=MyISAM DEFAULT CHARSET=latin1;
183
[270]184-- --------------------------------------------------------
[2]185
186--
[270]187-- Struttura della tabella `soraldo_ele_comuni`
[2]188--
189
190CREATE TABLE `soraldo_ele_comuni` (
[270]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',
[2]199 `simbolo` text,
200 `stemma` blob,
[270]201 `id_cons` int(11) DEFAULT '0',
202 `cap` text
[2]203) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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` (
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=latin1;
[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,
[189]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',
[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',
[270]242 `fascia_capoluogo` int(2) NOT NULL DEFAULT '0'
243) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[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,
266 `descrizione` text,
267 `data_inizio` date DEFAULT NULL,
268 `data_fine` date DEFAULT NULL,
269 `tipo_cons` int(7) NOT NULL DEFAULT '0'
[2]270) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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',
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') NOT NULL DEFAULT '0',
289 `disgiunto` enum('0','1') NOT NULL DEFAULT '0'
290) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[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
[2]303) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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,
[2]313 `descrizione` varchar(50) NOT NULL,
314 `nomedoc` varchar(25) NOT NULL,
[270]315 `filedoc` blob NOT NULL
[2]316) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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,
[270]328 `id_conf` int(11) DEFAULT '1'
[2]329) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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` (
[270]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',
[2]414 `descrizione` text,
415 `simbolo` text,
416 `stemma` blob,
[270]417 `id_circ` int(11) NOT NULL DEFAULT '0',
[354]418 `num_circ` int(2) UNSIGNED NOT NULL DEFAULT '1',
[93]419 `prognome` text,
[270]420 `programma` mediumblob
[2]421) ENGINE=MyISAM DEFAULT CHARSET=latin1;
422
[270]423-- --------------------------------------------------------
424
[2]425--
[270]426-- Struttura della tabella `soraldo_ele_link`
[2]427--
428
[270]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` text NOT NULL,
434 `content` text NOT NULL,
435 `editimage` varchar(100) NOT NULL DEFAULT ''
436) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]437
[270]438-- --------------------------------------------------------
[2]439
440--
[270]441-- Struttura della tabella `soraldo_ele_lista`
[2]442--
443
[270]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',
[307]449 `num_gruppo` int(2) UNSIGNED NOT NULL DEFAULT '0',
[270]450 `id_circ` int(11) NOT NULL DEFAULT '0',
[354]451 `num_circ` int(2) UNSIGNED NOT NULL DEFAULT '1',
[270]452 `descrizione` text,
453 `simbolo` text,
454 `stemma` blob
[2]455) ENGINE=MyISAM DEFAULT CHARSET=latin1;
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,
469 `log_da` text,
470 `log_a` text,
471 `tabella` varchar(30) DEFAULT NULL
472) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]473
[270]474-- --------------------------------------------------------
[2]475
476--
[270]477-- Struttura della tabella `soraldo_ele_modelli`
[2]478--
479
[270]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
[2]484) ENGINE=MyISAM DEFAULT CHARSET=latin1;
485
[270]486-- --------------------------------------------------------
487
[2]488--
[270]489-- Struttura della tabella `soraldo_ele_numeri`
[2]490--
491
[270]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` text NOT NULL,
497 `content` text NOT NULL,
498 `editimage` varchar(100) NOT NULL DEFAULT ''
499) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]500
[270]501-- --------------------------------------------------------
[2]502
503--
[270]504-- Struttura della tabella `soraldo_ele_operatori`
[2]505--
506
[270]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 ''
[2]513) ENGINE=MyISAM DEFAULT CHARSET=latin1;
514
[270]515-- --------------------------------------------------------
516
[2]517--
[270]518-- Struttura della tabella `soraldo_ele_province`
[2]519--
520
[270]521CREATE TABLE `soraldo_ele_province` (
522 `id` tinyint(11) NOT NULL,
523 `descrizione` varchar(30) NOT NULL
524) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]525
[270]526-- --------------------------------------------------------
[2]527
528--
[270]529-- Struttura della tabella `soraldo_ele_regioni`
[2]530--
531
[270]532CREATE TABLE `soraldo_ele_regioni` (
533 `id` int(11) NOT NULL,
534 `descrizione` varchar(25) NOT NULL
[2]535) ENGINE=MyISAM DEFAULT CHARSET=latin1;
536
[270]537-- --------------------------------------------------------
538
[2]539--
[270]540-- Struttura della tabella `soraldo_ele_rilaff`
[2]541--
542
[270]543CREATE TABLE `soraldo_ele_rilaff` (
544 `id_cons_gen` int(11) NOT NULL DEFAULT '0',
545 `orario` time NOT NULL DEFAULT '00:00:00',
[318]546 `data` date NOT NULL DEFAULT '1970-01-01'
[270]547) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]548
[270]549-- --------------------------------------------------------
[2]550
551--
[270]552-- Struttura della tabella `soraldo_ele_sede`
[2]553--
554
[270]555CREATE TABLE `soraldo_ele_sede` (
556 `id_cons` int(11) NOT NULL DEFAULT '0',
557 `id_sede` int(11) NOT NULL,
558 `id_circ` int(11) NOT NULL DEFAULT '0',
559 `indirizzo` varchar(60) DEFAULT NULL,
560 `telefono1` varchar(12) DEFAULT NULL,
561 `telefono2` varchar(12) DEFAULT NULL,
562 `fax` varchar(12) DEFAULT NULL,
563 `responsabile` varchar(60) DEFAULT NULL,
564 `mappa` mediumblob NOT NULL,
565 `filemappa` varchar(100) NOT NULL DEFAULT ''
566) ENGINE=MyISAM DEFAULT CHARSET=latin1;
567
568-- --------------------------------------------------------
569
570--
571-- Struttura della tabella `soraldo_ele_servizi`
572--
573
574CREATE TABLE `soraldo_ele_servizi` (
575 `id_cons` int(11) NOT NULL DEFAULT '0',
576 `mid` int(7) NOT NULL,
577 `title` varchar(150) NOT NULL DEFAULT '',
[2]578 `preamble` text NOT NULL,
579 `content` text NOT NULL,
[270]580 `editimage` varchar(100) NOT NULL DEFAULT ''
[2]581) ENGINE=MyISAM DEFAULT CHARSET=latin1;
582
[270]583-- --------------------------------------------------------
584
[2]585--
[270]586-- Struttura della tabella `soraldo_ele_sezioni`
[2]587--
588
[270]589CREATE TABLE `soraldo_ele_sezioni` (
590 `id_cons` int(11) NOT NULL DEFAULT '0',
591 `id_sez` int(11) NOT NULL,
592 `id_sede` int(11) NOT NULL DEFAULT '0',
593 `num_sez` int(7) NOT NULL DEFAULT '0',
594 `maschi` int(4) DEFAULT NULL,
595 `femmine` int(4) DEFAULT NULL,
596 `validi` int(7) NOT NULL DEFAULT '0',
597 `nulli` int(7) NOT NULL DEFAULT '0',
598 `bianchi` int(7) NOT NULL DEFAULT '0',
599 `contestati` int(7) NOT NULL DEFAULT '0',
600 `solo_gruppo` int(7) NOT NULL DEFAULT '0',
601 `autorizzati_m` int(4) NOT NULL DEFAULT '0',
602 `autorizzati_f` int(4) NOT NULL DEFAULT '0',
603 `voti_nulli` int(7) NOT NULL DEFAULT '0',
604 `validi_lista` int(7) NOT NULL DEFAULT '0',
605 `contestati_lista` int(7) NOT NULL DEFAULT '0',
606 `voti_nulli_lista` int(7) NOT NULL DEFAULT '0',
607 `solo_lista` int(7) NOT NULL DEFAULT '0',
608 `colore` varchar(50) DEFAULT NULL
609) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]610
[270]611-- --------------------------------------------------------
[2]612
613--
[270]614-- Struttura della tabella `soraldo_ele_temi`
[2]615--
616
[270]617CREATE TABLE `soraldo_ele_temi` (
618 `id` int(11) NOT NULL,
619 `tema` varchar(20) NOT NULL DEFAULT ''
[2]620) ENGINE=MyISAM DEFAULT CHARSET=latin1;
621
[270]622-- --------------------------------------------------------
623
[2]624--
[270]625-- Struttura della tabella `soraldo_ele_tipo`
[2]626--
627
[270]628CREATE TABLE `soraldo_ele_tipo` (
629 `tipo_cons` int(11) NOT NULL DEFAULT '0',
630 `descrizione` varchar(30) DEFAULT NULL,
631 `lingua` varchar(2) NOT NULL DEFAULT '0',
632 `genere` tinyint(4) NOT NULL DEFAULT '0',
633 `voto_g` enum('0','1') NOT NULL DEFAULT '0',
634 `voto_l` enum('0','1') NOT NULL DEFAULT '0',
635 `voto_c` enum('0','1') NOT NULL DEFAULT '0',
636 `circo` enum('0','1') NOT NULL DEFAULT '0'
637) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]638
[270]639--
640-- Dump dei dati per la tabella `soraldo_ele_tipo`
641--
[2]642
[270]643INSERT INTO `soraldo_ele_tipo` (`tipo_cons`, `descrizione`, `lingua`, `genere`, `voto_g`, `voto_l`, `voto_c`, `circo`) VALUES
644(1, 'PROVINCIALI', 'it', 3, '0', '0', '0', '0'),
645(2, 'REFERENDUM', 'it', 0, '0', '0', '0', '0'),
646(3, 'COMUNALI', 'it', 5, '0', '0', '0', '0'),
647(4, 'CIRCOSCRIZIONALI', 'it', 5, '0', '0', '0', '1'),
648(5, 'BALLOTTAGGIO COMUNALI', 'it', 1, '0', '0', '0', '0'),
649(6, 'CAMERA', 'it', 2, '0', '0', '0', '0'),
650(7, 'SENATO', 'it', 2, '0', '0', '0', '0'),
[354]651(8, 'EUROPEE', 'it', 4, '0', '0', '0', '0'),
[270]652(9, 'REGIONALI', 'it', 5, '0', '0', '0', '0'),
653(10, 'SENATO CON GRUPPI', 'it', 5, '1', '0', '1', '0'),
654(11, 'CAMERA CON GRUPPI', 'it', 5, '1', '0', '1', '0'),
655(12, 'PROVINCIALI CON COLLEGI', 'it', 3, '0', '0', '0', '1'),
656(13, 'BALLOTTAGGIO PROVINCIALI', 'it', 1, '0', '0', '0', '0'),
657(14, 'EUROPEE CON COLLEGI', 'it', 4, '0', '0', '0', '1'),
658(15, 'CAMERA CON GRUPPI E COLLEGI', 'it', 5, '1', '0', '1', '1'),
659(16, 'SENATO CON GRUPPI E COLLEGI', 'it', 5, '1', '0', '1', '1'),
660(17, 'REGIONALI CON COLLEGI', 'it', 5, '0', '0', '0', '1'),
661(18, 'CAMERA - Rosatellum 2.0', 'it', 5, '0', '0', '1', '0'),
662(19, 'SENATO - Rosatellum 2.0', 'it', 5, '0', '0', '1', '0');
663
664-- --------------------------------------------------------
665
[2]666--
[270]667-- Struttura della tabella `soraldo_ele_voti_candidati`
[2]668--
669
[270]670CREATE TABLE `soraldo_ele_voti_candidati` (
671 `id_cons` int(11) NOT NULL DEFAULT '0',
672 `id_cand` int(11) NOT NULL DEFAULT '0',
673 `id_sez` int(11) NOT NULL DEFAULT '0',
674 `num_cand` int(2) UNSIGNED NOT NULL,
675 `voti` int(7) NOT NULL DEFAULT '0'
[2]676) ENGINE=MyISAM DEFAULT CHARSET=latin1;
677
[270]678-- --------------------------------------------------------
679
[2]680--
[270]681-- Struttura della tabella `soraldo_ele_voti_gruppo`
[2]682--
683
[270]684CREATE TABLE `soraldo_ele_voti_gruppo` (
685 `id_cons` int(11) NOT NULL DEFAULT '0',
686 `id_gruppo` int(11) NOT NULL DEFAULT '0',
687 `id_sez` int(11) NOT NULL DEFAULT '0',
688 `num_gruppo` int(2) UNSIGNED NOT NULL,
689 `voti` int(7) NOT NULL DEFAULT '0',
690 `solo_gruppo` int(7) NOT NULL DEFAULT '0'
691) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]692
[270]693-- --------------------------------------------------------
[2]694
695--
[270]696-- Struttura della tabella `soraldo_ele_voti_lista`
[2]697--
698
[270]699CREATE TABLE `soraldo_ele_voti_lista` (
700 `id_cons` int(11) NOT NULL DEFAULT '0',
701 `id_lista` int(11) NOT NULL DEFAULT '0',
702 `id_sez` int(11) NOT NULL DEFAULT '0',
703 `num_lista` int(2) UNSIGNED NOT NULL,
704 `voti` int(7) NOT NULL DEFAULT '0',
705 `nulli_lista` int(7) NOT NULL DEFAULT '0',
706 `solo_lista` int(7) NOT NULL DEFAULT '0'
[2]707) ENGINE=MyISAM DEFAULT CHARSET=latin1;
708
[270]709-- --------------------------------------------------------
710
[2]711--
[270]712-- Struttura della tabella `soraldo_ele_voti_parziale`
[2]713--
714
[270]715CREATE TABLE `soraldo_ele_voti_parziale` (
716 `id_cons` int(11) NOT NULL DEFAULT '0',
717 `id_sez` int(11) NOT NULL DEFAULT '0',
718 `id_parz` int(11) NOT NULL,
719 `orario` time NOT NULL DEFAULT '00:00:00',
[318]720 `data` date NOT NULL DEFAULT '1970-01-01',
[270]721 `voti_uomini` int(7) NOT NULL DEFAULT '0',
722 `voti_donne` int(7) NOT NULL DEFAULT '0',
723 `voti_complessivi` int(7) NOT NULL DEFAULT '0',
724 `id_gruppo` int(11) NOT NULL DEFAULT '0'
725) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]726
[270]727-- --------------------------------------------------------
[2]728
729--
[270]730-- Struttura della tabella `soraldo_ele_voti_ref`
[2]731--
732
[270]733CREATE TABLE `soraldo_ele_voti_ref` (
734 `id_cons` int(11) NOT NULL DEFAULT '0',
735 `id_gruppo` int(11) NOT NULL DEFAULT '0',
736 `id_sez` int(11) NOT NULL DEFAULT '0',
737 `num_gruppo` int(2) UNSIGNED NOT NULL,
738 `si` int(7) DEFAULT '0',
739 `no` int(7) DEFAULT '0',
740 `validi` int(7) DEFAULT '0',
741 `nulli` int(7) DEFAULT '0',
742 `bianchi` int(7) DEFAULT '0',
743 `contestati` int(7) DEFAULT '0'
[2]744) ENGINE=MyISAM DEFAULT CHARSET=latin1;
745
[270]746-- --------------------------------------------------------
747
[2]748--
[270]749-- Struttura della tabella `soraldo_ele_widget`
[2]750--
751
[270]752CREATE TABLE `soraldo_ele_widget` (
753 `id` int(10) NOT NULL,
754 `nome_file` varchar(255) NOT NULL DEFAULT '',
755 `titolo` varchar(255) NOT NULL DEFAULT '',
756 `pos_or` int(1) NOT NULL DEFAULT '1',
757 `pos_ver` int(3) NOT NULL DEFAULT '0',
758 `attivo` int(1) NOT NULL DEFAULT '0'
759) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[2]760
[270]761--
762-- Dump dei dati per la tabella `soraldo_ele_widget`
763--
[2]764
[270]765INSERT INTO `soraldo_ele_widget` (`id`, `nome_file`, `titolo`, `pos_or`, `pos_ver`, `attivo`) VALUES
766(1, '00_affluenze.php', '00_affluenze.php', 1, 0, 0),
767(2, '01_votanti.php', '01_votanti.php', 1, 0, 0),
768(3, '02_risultati.php', '02_risultati.php', 1, 0, 0),
769(4, '04_sezioni.php', '04_sezioni.php', 1, 0, 0),
770(5, 'bar_affluenze.php', 'bar_affluenze.php', 1, 0, 0),
771(6, 'bloccocand.php', 'bloccocand.php', 1, 0, 0),
772(7, 'bloccogen.php', 'bloccogen.php', 1, 0, 0),
773(8, 'bloccolink.php', 'bloccolink.php', 1, 0, 0),
774(9, 'bloccoref.php', 'bloccoref.php', 1, 0, 0),
775(10, 'gom_affluenze.php', 'gom_affluenze.php', 1, 0, 0),
776(11, 'off_Votanti.php', 'off_Votanti.php', 1, 0, 0),
777(12, 'pie_affluenze.php', 'pie_affluenze.php', 1, 0, 0);
778
[2]779--
[270]780-- Indici per le tabelle scaricate
[2]781--
782
[270]783--
784-- Indici per le tabelle `soraldo_access`
785--
786ALTER TABLE `soraldo_access`
787 ADD PRIMARY KEY (`access_id`);
[2]788
789--
[270]790-- Indici per le tabelle `soraldo_authors`
[2]791--
[270]792ALTER TABLE `soraldo_authors`
793 ADD PRIMARY KEY (`aid`,`id_comune`),
794 ADD KEY `aid` (`aid`);
[2]795
[270]796--
797-- Indici per le tabelle `soraldo_doc_cons`
798--
799ALTER TABLE `soraldo_doc_cons`
800 ADD KEY `id_cons` (`id_cons`,`id_doc`);
[2]801
[270]802--
803-- Indici per le tabelle `soraldo_ele_candidati`
804--
805ALTER TABLE `soraldo_ele_candidati`
806 ADD UNIQUE KEY `id_cand` (`id_cand`),
807 ADD KEY `id_lista` (`id_lista`),
808 ADD KEY `id_cons` (`id_cons`,`num_lista`) USING BTREE;
[2]809
810--
[270]811-- Indici per le tabelle `soraldo_ele_circoscrizione`
[2]812--
[270]813ALTER TABLE `soraldo_ele_circoscrizione`
814 ADD UNIQUE KEY `id_circ` (`id_circ`),
815 ADD UNIQUE KEY `id_cons` (`id_cons`,`num_circ`);
[2]816
[270]817--
818-- Indici per le tabelle `soraldo_ele_collegi`
819--
820ALTER TABLE `soraldo_ele_collegi`
821 ADD PRIMARY KEY (`id_collegio`),
822 ADD KEY `id_cons_gen` (`id_cons_gen`);
[2]823
824--
[270]825-- Indici per le tabelle `soraldo_ele_come`
[2]826--
[270]827ALTER TABLE `soraldo_ele_come`
828 ADD UNIQUE KEY `mid` (`mid`);
[2]829
[270]830--
831-- Indici per le tabelle `soraldo_ele_comuni`
832--
833ALTER TABLE `soraldo_ele_comuni`
834 ADD PRIMARY KEY (`id_comune`),
835 ADD KEY `access_id` (`descrizione`);
[2]836
[270]837--
838-- Indici per le tabelle `soraldo_ele_comu_collegi`
839--
840ALTER TABLE `soraldo_ele_comu_collegi`
841 ADD PRIMARY KEY (`id_cons_gen`,`id_comune`),
842 ADD KEY `id_cons` (`id_cons`),
843 ADD KEY `id_collegio` (`id_collegio`);
[2]844
845--
[270]846-- Indici per le tabelle `soraldo_ele_conf`
[2]847--
[270]848ALTER TABLE `soraldo_ele_conf`
849 ADD PRIMARY KEY (`id_conf`);
[2]850
[270]851--
852-- Indici per le tabelle `soraldo_ele_consultazione`
853--
854ALTER TABLE `soraldo_ele_consultazione`
855 ADD PRIMARY KEY (`id_cons_gen`);
[2]856
857--
[270]858-- Indici per le tabelle `soraldo_ele_cons_comune`
[2]859--
[270]860ALTER TABLE `soraldo_ele_cons_comune`
861 ADD PRIMARY KEY (`id_cons`),
862 ADD UNIQUE KEY `comune` (`id_comune`,`id_cons_gen`);
[2]863
[270]864--
865-- Indici per le tabelle `soraldo_ele_controlli`
866--
867ALTER TABLE `soraldo_ele_controlli`
868 ADD KEY `sezione` (`id_sez`);
[2]869
[270]870--
871-- Indici per le tabelle `soraldo_ele_documenti`
[2]872--
[270]873ALTER TABLE `soraldo_ele_documenti`
874 ADD PRIMARY KEY (`id_doc`),
875 ADD KEY `descrizione` (`descrizione`);
[2]876
[270]877--
878-- Indici per le tabelle `soraldo_ele_fasce`
879--
880ALTER TABLE `soraldo_ele_fasce`
881 ADD KEY `id_fascia` (`id_fascia`);
[2]882
883--
[270]884-- Indici per le tabelle `soraldo_ele_gruppo`
[2]885--
[270]886ALTER TABLE `soraldo_ele_gruppo`
887 ADD UNIQUE KEY `id_gruppo` (`id_gruppo`),
888 ADD UNIQUE KEY `id_cons` (`id_cons`,`num_gruppo`,`num_circ`) USING BTREE;
[2]889
[270]890--
891-- Indici per le tabelle `soraldo_ele_link`
892--
893ALTER TABLE `soraldo_ele_link`
894 ADD PRIMARY KEY (`mid`);
[2]895
[270]896--
897-- Indici per le tabelle `soraldo_ele_lista`
898--
899ALTER TABLE `soraldo_ele_lista`
900 ADD PRIMARY KEY (`id_cons`,`num_lista`,`num_circ`) USING BTREE,
901 ADD UNIQUE KEY `id_lista` (`id_lista`),
902 ADD KEY `id_gruppo` (`id_gruppo`);
[2]903
904--
[270]905-- Indici per le tabelle `soraldo_ele_log`
[2]906--
[270]907ALTER TABLE `soraldo_ele_log`
908 ADD KEY `id_cons` (`id_cons`);
[2]909
[270]910--
911-- Indici per le tabelle `soraldo_ele_modelli`
912--
913ALTER TABLE `soraldo_ele_modelli`
914 ADD KEY `access_id` (`id_cons`);
[93]915
916--
[270]917-- Indici per le tabelle `soraldo_ele_numeri`
[93]918--
[270]919ALTER TABLE `soraldo_ele_numeri`
920 ADD PRIMARY KEY (`mid`),
921 ADD KEY `id_cons` (`id_cons`);
[93]922
[270]923--
924-- Indici per le tabelle `soraldo_ele_operatori`
925--
926ALTER TABLE `soraldo_ele_operatori`
927 ADD UNIQUE KEY `id_cons_aid` (`id_cons`,`aid`,`id_comune`),
928 ADD KEY `id_circ` (`id_comune`),
929 ADD KEY `id_sede` (`id_sede`);
[93]930
[270]931--
932-- Indici per le tabelle `soraldo_ele_regioni`
933--
934ALTER TABLE `soraldo_ele_regioni`
935 ADD PRIMARY KEY (`id`),
936 ADD KEY `descrizione` (`descrizione`);
[2]937
938--
[270]939-- Indici per le tabelle `soraldo_ele_rilaff`
[2]940--
[270]941ALTER TABLE `soraldo_ele_rilaff`
942 ADD KEY `id_cons_gen` (`id_cons_gen`);
[2]943
[270]944--
945-- Indici per le tabelle `soraldo_ele_sede`
946--
947ALTER TABLE `soraldo_ele_sede`
948 ADD PRIMARY KEY (`id_sede`),
949 ADD KEY `id_cons` (`id_cons`),
950 ADD KEY `id_circ` (`id_circ`);
[2]951
952--
[270]953-- Indici per le tabelle `soraldo_ele_servizi`
[2]954--
[270]955ALTER TABLE `soraldo_ele_servizi`
956 ADD PRIMARY KEY (`mid`),
957 ADD KEY `id_cons` (`id_cons`);
[2]958
[270]959--
960-- Indici per le tabelle `soraldo_ele_sezioni`
961--
962ALTER TABLE `soraldo_ele_sezioni`
963 ADD UNIQUE KEY `id_sezi` (`id_sez`),
964 ADD KEY `id_cons` (`id_cons`),
965 ADD KEY `id_sede` (`id_sede`);
[2]966
[270]967--
968-- Indici per le tabelle `soraldo_ele_temi`
969--
970ALTER TABLE `soraldo_ele_temi`
971 ADD PRIMARY KEY (`id`);
[2]972
973--
[270]974-- Indici per le tabelle `soraldo_ele_tipo`
[2]975--
[270]976ALTER TABLE `soraldo_ele_tipo`
977 ADD PRIMARY KEY (`tipo_cons`);
[2]978
[270]979--
980-- Indici per le tabelle `soraldo_ele_voti_candidati`
981--
982ALTER TABLE `soraldo_ele_voti_candidati`
983 ADD KEY `id_sez` (`id_sez`),
984 ADD KEY `id_cand` (`id_cand`),
985 ADD KEY `id_cons` (`id_cons`,`num_cand`) USING BTREE;
[2]986
987--
[270]988-- Indici per le tabelle `soraldo_ele_voti_gruppo`
[2]989--
[270]990ALTER TABLE `soraldo_ele_voti_gruppo`
991 ADD KEY `id_gruppo` (`id_gruppo`),
992 ADD KEY `id_sez` (`id_sez`),
993 ADD KEY `id_cons` (`id_cons`,`num_gruppo`) USING BTREE;
[2]994
[270]995--
996-- Indici per le tabelle `soraldo_ele_voti_lista`
997--
998ALTER TABLE `soraldo_ele_voti_lista`
999 ADD KEY `id_lista` (`id_lista`),
1000 ADD KEY `id_sez` (`id_sez`),
1001 ADD KEY `cons` (`id_cons`,`num_lista`) USING BTREE;
[2]1002
[270]1003--
1004-- Indici per le tabelle `soraldo_ele_voti_parziale`
1005--
1006ALTER TABLE `soraldo_ele_voti_parziale`
1007 ADD PRIMARY KEY (`id_parz`),
1008 ADD KEY `id_cons` (`id_cons`),
1009 ADD KEY `id_sez` (`id_sez`),
1010 ADD KEY `id_gruppo` (`id_gruppo`);
[2]1011
1012--
[270]1013-- Indici per le tabelle `soraldo_ele_voti_ref`
[2]1014--
[270]1015ALTER TABLE `soraldo_ele_voti_ref`
1016 ADD KEY `id_gruppo` (`id_gruppo`),
1017 ADD KEY `id_sez` (`id_sez`),
1018 ADD KEY `id_cons` (`id_cons`,`num_gruppo`) USING BTREE;
[2]1019
[270]1020--
1021-- Indici per le tabelle `soraldo_ele_widget`
1022--
1023ALTER TABLE `soraldo_ele_widget`
1024 ADD PRIMARY KEY (`id`);
[2]1025
1026--
[270]1027-- AUTO_INCREMENT per le tabelle scaricate
[2]1028--
1029
[270]1030--
1031-- AUTO_INCREMENT per la tabella `soraldo_ele_candidati`
1032--
1033ALTER TABLE `soraldo_ele_candidati`
1034 MODIFY `id_cand` int(11) NOT NULL AUTO_INCREMENT;
[2]1035
[270]1036--
1037-- AUTO_INCREMENT per la tabella `soraldo_ele_circoscrizione`
1038--
1039ALTER TABLE `soraldo_ele_circoscrizione`
1040 MODIFY `id_circ` int(11) NOT NULL AUTO_INCREMENT;
[2]1041
1042--
[270]1043-- AUTO_INCREMENT per la tabella `soraldo_ele_collegi`
[2]1044--
[270]1045ALTER TABLE `soraldo_ele_collegi`
1046 MODIFY `id_collegio` int(11) NOT NULL AUTO_INCREMENT;
[2]1047
[270]1048--
1049-- AUTO_INCREMENT per la tabella `soraldo_ele_come`
1050--
1051ALTER TABLE `soraldo_ele_come`
1052 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
[2]1053
1054--
[270]1055-- AUTO_INCREMENT per la tabella `soraldo_ele_conf`
[2]1056--
[270]1057ALTER TABLE `soraldo_ele_conf`
1058 MODIFY `id_conf` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
[2]1059
[270]1060--
1061-- AUTO_INCREMENT per la tabella `soraldo_ele_consultazione`
1062--
1063ALTER TABLE `soraldo_ele_consultazione`
1064 MODIFY `id_cons_gen` int(11) NOT NULL AUTO_INCREMENT;
[2]1065
[270]1066--
1067-- AUTO_INCREMENT per la tabella `soraldo_ele_cons_comune`
1068--
1069ALTER TABLE `soraldo_ele_cons_comune`
1070 MODIFY `id_cons` int(11) NOT NULL AUTO_INCREMENT;
[2]1071
1072--
[270]1073-- AUTO_INCREMENT per la tabella `soraldo_ele_documenti`
[2]1074--
[270]1075ALTER TABLE `soraldo_ele_documenti`
1076 MODIFY `id_doc` int(11) NOT NULL AUTO_INCREMENT;
[2]1077
[270]1078--
1079-- AUTO_INCREMENT per la tabella `soraldo_ele_gruppo`
1080--
1081ALTER TABLE `soraldo_ele_gruppo`
1082 MODIFY `id_gruppo` int(11) NOT NULL AUTO_INCREMENT;
[2]1083
1084--
[270]1085-- AUTO_INCREMENT per la tabella `soraldo_ele_link`
[2]1086--
[270]1087ALTER TABLE `soraldo_ele_link`
1088 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
[2]1089
[270]1090--
1091-- AUTO_INCREMENT per la tabella `soraldo_ele_lista`
1092--
1093ALTER TABLE `soraldo_ele_lista`
1094 MODIFY `id_lista` int(11) NOT NULL AUTO_INCREMENT;
[2]1095
[270]1096--
1097-- AUTO_INCREMENT per la tabella `soraldo_ele_numeri`
1098--
1099ALTER TABLE `soraldo_ele_numeri`
1100 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
[77]1101
1102--
[270]1103-- AUTO_INCREMENT per la tabella `soraldo_ele_sede`
[77]1104--
[270]1105ALTER TABLE `soraldo_ele_sede`
1106 MODIFY `id_sede` int(11) NOT NULL AUTO_INCREMENT;
[77]1107
[270]1108--
1109-- AUTO_INCREMENT per la tabella `soraldo_ele_servizi`
1110--
1111ALTER TABLE `soraldo_ele_servizi`
1112 MODIFY `mid` int(7) NOT NULL AUTO_INCREMENT;
[77]1113
1114--
[270]1115-- AUTO_INCREMENT per la tabella `soraldo_ele_sezioni`
[77]1116--
[270]1117ALTER TABLE `soraldo_ele_sezioni`
1118 MODIFY `id_sez` int(11) NOT NULL AUTO_INCREMENT;
[77]1119
[270]1120--
1121-- AUTO_INCREMENT per la tabella `soraldo_ele_temi`
1122--
1123ALTER TABLE `soraldo_ele_temi`
1124 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
[77]1125
[270]1126--
1127-- AUTO_INCREMENT per la tabella `soraldo_ele_voti_parziale`
1128--
1129ALTER TABLE `soraldo_ele_voti_parziale`
1130 MODIFY `id_parz` int(11) NOT NULL AUTO_INCREMENT;
[77]1131
[270]1132--
1133-- AUTO_INCREMENT per la tabella `soraldo_ele_widget`
1134--
1135ALTER TABLE `soraldo_ele_widget`
1136 MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
1137COMMIT;
[77]1138
[270]1139/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1140/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1141/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
[77]1142
Note: See TracBrowser for help on using the repository browser.