source: trunk/sql/aggiornamento-2.0_2014-03-02.sql@ 398

Last change on this file since 398 was 191, checked in by roby, 11 years ago

corretto aggiornamento sql

File size: 3.8 KB
RevLine 
[190]1
2--
3-- Database: `eleonline`
4--
5
6-- --------------------------------------------------------
7
8--
9-- Struttura della tabella `soraldo_ele_fasce`
10--
11DROP TABLE IF EXISTS `soraldo_ele_fasce`;
12CREATE TABLE IF NOT EXISTS `soraldo_ele_fasce` (
13 `id_fascia` int(2) NOT NULL,
14 `abitanti` int(11) NOT NULL,
15 `seggi` int(4) NOT NULL,
16 `id_conf` int(11) DEFAULT '1',
17 KEY `id_fascia` (`id_fascia`)
18) ENGINE=MyISAM DEFAULT CHARSET=latin1;
19
20--
21-- Dump dei dati per la tabella `soraldo_ele_fasce`
22--
23
24INSERT INTO `soraldo_ele_fasce` (`id_fascia`, `abitanti`, `seggi`, `id_conf`) VALUES
25(1, 3000, 12, 1),
26(2, 10000, 16, 1),
27(3, 15000, 20, 1),
28(4, 30000, 20, 1),
29(5, 100000, 30, 1),
30(6, 250000, 40, 1),
31(7, 500000, 46, 1),
32(8, 1000000, 50, 1),
33(9, 100000000, 60, 1),
34(1, 3000, 9, 5),
35(2, 5000, 9, 5),
36(3, 10000, 12, 5),
37(4, 15000, 16, 5),
38(5, 30000, 16, 5),
39(6, 100000, 24, 5),
40(7, 250000, 32, 5),
41(8, 500000, 36, 5),
42(9, 1000000, 40, 5),
43(10, 100000000, 48, 5),
44(1, 3000, 6, 6),
45(2, 5000, 7, 6),
46(3, 10000, 10, 6),
47(4, 15000, 16, 6),
48(5, 30000, 16, 6),
49(6, 100000, 24, 6),
50(7, 250000, 32, 6),
51(8, 500000, 36, 6),
52(9, 1000000, 40, 6),
53(10, 100000000, 48, 6),
54(1, 3000, 12, 2),
55(2, 10000, 16, 2),
56(3, 15000, 20, 2),
57(4, 30000, 20, 2),
58(5, 100000, 30, 2),
59(6, 250000, 40, 2),
60(7, 500000, 46, 2),
61(8, 1000000, 50, 2),
62(9, 100000000, 60, 2),
63(1, 3000, 9, 3),
64(2, 5000, 9, 3),
65(4, 15000, 16, 3),
66(3, 10000, 12, 3),
67(5, 30000, 16, 3),
68(6, 100000, 24, 3),
69(7, 250000, 32, 3),
70(8, 500000, 36, 3),
71(9, 1000000, 40, 3),
72(10, 100000000, 48, 3),
73(1, 3000, 6, 4),
74(2, 5000, 7, 4),
75(3, 10000, 12, 4),
76(4, 15000, 16, 4),
77(5, 30000, 16, 4),
78(6, 100000, 24, 4),
79(7, 250000, 32, 4),
80(8, 500000, 36, 4),
81(9, 1000000, 40, 4),
82(10, 100000000, 48, 4);
83
84--
85-- Struttura della tabella `soraldo_ele_conf`
86--
[191]87DROP TABLE IF EXISTS `soraldo_ele_conf`;
[190]88CREATE TABLE IF NOT EXISTS `soraldo_ele_conf` (
89 `id_conf` int(11) NOT NULL AUTO_INCREMENT,
90 `descrizione` varchar(50) NOT NULL,
91 `limite` int(2) NOT NULL,
92 `consin` enum('0','1') NOT NULL DEFAULT '1',
93 `infpremio` int(3) NOT NULL,
94 `supsbarramento` int(3) NOT NULL,
95 `suppremio` int(3) NOT NULL,
96 `listinfsbar` int(3) NOT NULL DEFAULT '1',
97 `listinfconta` enum('0','1') NOT NULL DEFAULT '1',
98 `listsupconta` enum('0','1') NOT NULL DEFAULT '1',
99 `supminpremio` int(3) NOT NULL,
100 `infminpremio` int(3) NOT NULL,
101 `infdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
102 `supdisgiunto` enum('0','1') NOT NULL DEFAULT '0',
103 `votolista` enum('0','1') NOT NULL DEFAULT '0',
104 `inffisso` enum('0','1') NOT NULL DEFAULT '0',
105 `supfisso` enum('0','1') NOT NULL DEFAULT '0',
106 `fascia_capoluogo` int(2) NOT NULL DEFAULT '0',
107 PRIMARY KEY (`id_conf`)
108) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
109
110--
111-- Dump dei dati per la tabella `soraldo_ele_conf`
112--
113
114INSERT 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
115(1, 'Legge Italiana 267/2000', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 6),
116(2, 'Regione Sicilia precedente al 2008', 2, '0', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 6),
117(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),
118(4, 'Regione Sicilia Legge n.6/2011', 5, '1', 67, 5, 60, 5, '1', '1', 40, 40, '1', '1', '0', '0', '0', 7),
119(5, 'Legge Italiana 267/2000 con riduzione 2011', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 7),
120(6, 'Legge Italiana 267/2000 con riduzione 2012', 3, '1', 67, 3, 60, 3, '1', '1', 40, 40, '0', '0', '0', '0', '0', 7);
121
122
123ALTER TABLE `soraldo_ele_cons_comune` ADD `id_fascia` INT( 2 ) NOT NULL DEFAULT '1',
124ADD `vismf` ENUM( '0', '1' ) NOT NULL DEFAULT '0';
125
126
Note: See TracBrowser for help on using the repository browser.