Changeset 93


Ignore:
Timestamp:
May 10, 2011, 11:49:51 AM (14 years ago)
Author:
roby
Message:

adeguamento del db alla gestione del programma elettorale

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eleonline2.sql

    r85 r93  
    55-- Server version       5.0.19-standard
    66
    7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
     7
    108/*!40101 SET NAMES utf8 */;
    11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
    12 /*!40103 SET TIME_ZONE='+00:00' */;
    13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
    15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
    16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    179
    1810--
     
    411403  KEY `id_fascia` (`id_fascia`)
    412404) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    413 SET character_set_client = @saved_cs_client;
    414405
    415406--
     
    436427  `stemma` blob,
    437428  `id_circ` int(11) NOT NULL default '0',
     429  `prognome` text,
     430  `programma` mediumblob,
    438431  UNIQUE KEY `id_gruppo` (`id_gruppo`),
    439432  UNIQUE KEY `id_cons` (`id_cons`,`num_gruppo`,`id_circ`)
     
    988981/*!40000 ALTER TABLE `soraldo_ele_widget` ENABLE KEYS */;
    989982
    990 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
    991 
    992 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
    993 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
    994 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
    995 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    996 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    997 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    998 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
    999 
     983
  • trunk/install/sql/eleonline.sql

    r77 r93  
    55-- Server version       5.0.19-standard
    66
    7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    107/*!40101 SET NAMES utf8 */;
    11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
    12 /*!40103 SET TIME_ZONE='+00:00' */;
    13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
    15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
    16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    178
    189--
     
    3324
    3425/*!40000 ALTER TABLE `soraldo_access` DISABLE KEYS */;
    35 
     26LOCK TABLES `soraldo_access` WRITE;
    3627INSERT INTO `soraldo_access` VALUES (1,'Sospeso'),(16,'Operatore'),(32,'Amministratore'),(64,'Amministratore Unico'),(256,'Superuser');
    37 
     28UNLOCK TABLES;
    3829/*!40000 ALTER TABLE `soraldo_access` ENABLE KEYS */;
    3930
     
    6455
    6556/*!40000 ALTER TABLE `soraldo_authors` DISABLE KEYS */;
    66 
     57LOCK TABLES `soraldo_authors` WRITE;
    6758INSERT INTO `soraldo_authors` VALUES ('suser','suser',0,'test@','098f6bcd4621d373cade4e832627b4f6',1,0,0,1,'it');
    68 
     59UNLOCK TABLES;
    6960/*!40000 ALTER TABLE `soraldo_authors` ENABLE KEYS */;
    7061
     
    10899
    109100/*!40000 ALTER TABLE `soraldo_config` DISABLE KEYS */;
    110 
     101LOCK TABLES `soraldo_config` WRITE;
    111102INSERT INTO `soraldo_config` VALUES ('','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','1','1','Admin');
    112 
     103UNLOCK TABLES;
    113104/*!40000 ALTER TABLE `soraldo_config` ENABLE KEYS */;
    114105
     
    131122
    132123/*!40000 ALTER TABLE `soraldo_doc_cons` DISABLE KEYS */;
    133 
    134 
     124LOCK TABLES `soraldo_doc_cons` WRITE;
     125UNLOCK TABLES;
    135126/*!40000 ALTER TABLE `soraldo_doc_cons` ENABLE KEYS */;
    136127
     
    160151
    161152/*!40000 ALTER TABLE `soraldo_ele_candidati` DISABLE KEYS */;
    162 
    163 
     153LOCK TABLES `soraldo_ele_candidati` WRITE;
     154UNLOCK TABLES;
    164155/*!40000 ALTER TABLE `soraldo_ele_candidati` ENABLE KEYS */;
    165156
     
    184175
    185176/*!40000 ALTER TABLE `soraldo_ele_circoscrizione` DISABLE KEYS */;
    186 
    187 
     177LOCK TABLES `soraldo_ele_circoscrizione` WRITE;
     178UNLOCK TABLES;
    188179/*!40000 ALTER TABLE `soraldo_ele_circoscrizione` ENABLE KEYS */;
    189180
     
    207198
    208199/*!40000 ALTER TABLE `soraldo_ele_collegi` DISABLE KEYS */;
    209 
    210 
     200LOCK TABLES `soraldo_ele_collegi` WRITE;
     201UNLOCK TABLES;
    211202/*!40000 ALTER TABLE `soraldo_ele_collegi` ENABLE KEYS */;
    212203
     
    232223
    233224/*!40000 ALTER TABLE `soraldo_ele_come` DISABLE KEYS */;
    234 
    235 
     225LOCK TABLES `soraldo_ele_come` WRITE;
     226UNLOCK TABLES;
    236227/*!40000 ALTER TABLE `soraldo_ele_come` ENABLE KEYS */;
    237228
     
    257248
    258249/*!40000 ALTER TABLE `soraldo_ele_comu_collegi` DISABLE KEYS */;
    259 
    260 
     250LOCK TABLES `soraldo_ele_comu_collegi` WRITE;
     251UNLOCK TABLES;
    261252/*!40000 ALTER TABLE `soraldo_ele_comu_collegi` ENABLE KEYS */;
    262253
     
    288279
    289280/*!40000 ALTER TABLE `soraldo_ele_comuni` DISABLE KEYS */;
    290 
    291 
     281LOCK TABLES `soraldo_ele_comuni` WRITE;
     282UNLOCK TABLES;
    292283/*!40000 ALTER TABLE `soraldo_ele_comuni` ENABLE KEYS */;
    293284
     
    319310
    320311/*!40000 ALTER TABLE `soraldo_ele_conf` DISABLE KEYS */;
    321 
     312LOCK TABLES `soraldo_ele_conf` WRITE;
    322313INSERT INTO `soraldo_ele_conf` VALUES (1,'Legge Italiana 267/2000',3,'1',67,3,60,3,'1','1',40,40),(2,'Regione Sicilia precedente al 2008',2,'0',67,3,60,3,'1','1',40,40),(3,'Regione Sicilia Legge n. 22 del 16/12/2008',2,'0',67,5,60,3,'1','0',40,40);
    323 
     314UNLOCK TABLES;
    324315/*!40000 ALTER TABLE `soraldo_ele_conf` ENABLE KEYS */;
    325316
     
    346337
    347338/*!40000 ALTER TABLE `soraldo_ele_cons_comune` DISABLE KEYS */;
    348 
    349 
     339LOCK TABLES `soraldo_ele_cons_comune` WRITE;
     340UNLOCK TABLES;
    350341/*!40000 ALTER TABLE `soraldo_ele_cons_comune` ENABLE KEYS */;
    351342
     
    370361
    371362/*!40000 ALTER TABLE `soraldo_ele_consultazione` DISABLE KEYS */;
    372 
    373 
     363LOCK TABLES `soraldo_ele_consultazione` WRITE;
     364UNLOCK TABLES;
    374365/*!40000 ALTER TABLE `soraldo_ele_consultazione` ENABLE KEYS */;
    375366
     
    394385
    395386/*!40000 ALTER TABLE `soraldo_ele_documenti` DISABLE KEYS */;
    396 
    397 
     387LOCK TABLES `soraldo_ele_documenti` WRITE;
     388UNLOCK TABLES;
    398389/*!40000 ALTER TABLE `soraldo_ele_documenti` ENABLE KEYS */;
    399390
     
    409400  `data_fine` date NOT NULL,
    410401  `seggi` int(4) NOT NULL,
    411   PRIMARY KEY (`id_fascia`)
     402  KEY `id_fascia` (`id_fascia`)
    412403) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    413404
     
    416407--
    417408
    418 
     409LOCK TABLES `soraldo_ele_fasce` WRITE;
    419410/*!40000 ALTER TABLE `soraldo_ele_fasce` DISABLE KEYS */;
    420 
    421 INSERT INTO `soraldo_ele_fasce` VALUES (1,3000,'2000-01-01','0000-00-00',12),(2,10000,'2000-01-01','0000-00-00',16),(3,15000,'2000-01-01','0000-00-00',20),(4,30000,'2000-01-01','0000-00-00',20),(5,100000,'2000-01-01','0000-00-00',30),(6,250000,'2000-01-01','0000-00-00',40),(7,500000,'2000-01-01','0000-00-00',46),(8,1000000,'2000-01-01','0000-00-00',50),(9,100000000,'2000-01-01','0000-00-00',60);
    422 
     411INSERT INTO `soraldo_ele_fasce` VALUES (1,3000,'2000-01-01','2010-12-31',12),(2,10000,'2000-01-01','2010-12-31',16),(3,15000,'2000-01-01','2010-12-31',20),(4,30000,'2000-01-01','2010-12-31',20),(5,100000,'2000-01-01','2010-12-31',30),(6,250000,'2000-01-01','2010-12-31',40),(7,500000,'2000-01-01','2010-12-31',46),(8,1000000,'2000-01-01','2010-12-31',50),(9,100000000,'2000-01-01','2010-12-31',60),(4,30000,'2011-01-01','0000-00-00',16),(1,3000,'2011-01-01','0000-00-00',9),(2,10000,'2011-01-01','0000-00-00',12),(3,15000,'2011-01-01','0000-00-00',16),(5,100000,'2011-01-01','0000-00-00',24),(6,250000,'2011-01-01','0000-00-00',32),(7,500000,'2011-01-01','0000-00-00',36),(8,1000000,'2011-01-01','0000-00-00',40),(9,100000000,'2011-01-01','0000-00-00',48);
    423412/*!40000 ALTER TABLE `soraldo_ele_fasce` ENABLE KEYS */;
     413UNLOCK TABLES;
    424414
    425415--
     
    436426  `stemma` blob,
    437427  `id_circ` int(11) NOT NULL default '0',
     428  `prognome` text,
     429  `programma` mediumblob,
    438430  UNIQUE KEY `id_gruppo` (`id_gruppo`),
    439431  UNIQUE KEY `id_cons` (`id_cons`,`num_gruppo`,`id_circ`)
     
    446438
    447439/*!40000 ALTER TABLE `soraldo_ele_gruppo` DISABLE KEYS */;
    448 
    449 
     440LOCK TABLES `soraldo_ele_gruppo` WRITE;
     441UNLOCK TABLES;
    450442/*!40000 ALTER TABLE `soraldo_ele_gruppo` ENABLE KEYS */;
    451443
     
    471463
    472464/*!40000 ALTER TABLE `soraldo_ele_link` DISABLE KEYS */;
    473 
    474 
     465LOCK TABLES `soraldo_ele_link` WRITE;
     466UNLOCK TABLES;
    475467/*!40000 ALTER TABLE `soraldo_ele_link` ENABLE KEYS */;
    476468
     
    500492
    501493/*!40000 ALTER TABLE `soraldo_ele_lista` DISABLE KEYS */;
    502 
    503 
     494LOCK TABLES `soraldo_ele_lista` WRITE;
     495UNLOCK TABLES;
    504496/*!40000 ALTER TABLE `soraldo_ele_lista` ENABLE KEYS */;
    505497
     
    527519
    528520/*!40000 ALTER TABLE `soraldo_ele_log` DISABLE KEYS */;
    529 
    530 
     521LOCK TABLES `soraldo_ele_log` WRITE;
     522UNLOCK TABLES;
    531523/*!40000 ALTER TABLE `soraldo_ele_log` ENABLE KEYS */;
    532524
     
    549541
    550542/*!40000 ALTER TABLE `soraldo_ele_modelli` DISABLE KEYS */;
    551 
    552 
     543LOCK TABLES `soraldo_ele_modelli` WRITE;
     544UNLOCK TABLES;
    553545/*!40000 ALTER TABLE `soraldo_ele_modelli` ENABLE KEYS */;
    554546
     
    575567
    576568/*!40000 ALTER TABLE `soraldo_ele_numeri` DISABLE KEYS */;
    577 
    578 
     569LOCK TABLES `soraldo_ele_numeri` WRITE;
     570UNLOCK TABLES;
    579571/*!40000 ALTER TABLE `soraldo_ele_numeri` ENABLE KEYS */;
    580572
     
    601593
    602594/*!40000 ALTER TABLE `soraldo_ele_operatori` DISABLE KEYS */;
    603 
    604 
     595LOCK TABLES `soraldo_ele_operatori` WRITE;
     596UNLOCK TABLES;
    605597/*!40000 ALTER TABLE `soraldo_ele_operatori` ENABLE KEYS */;
    606598
     
    621613
    622614/*!40000 ALTER TABLE `soraldo_ele_province` DISABLE KEYS */;
    623 
    624 
     615LOCK TABLES `soraldo_ele_province` WRITE;
     616UNLOCK TABLES;
    625617/*!40000 ALTER TABLE `soraldo_ele_province` ENABLE KEYS */;
    626618
     
    643635
    644636/*!40000 ALTER TABLE `soraldo_ele_regioni` DISABLE KEYS */;
    645 
    646 
     637LOCK TABLES `soraldo_ele_regioni` WRITE;
     638UNLOCK TABLES;
    647639/*!40000 ALTER TABLE `soraldo_ele_regioni` ENABLE KEYS */;
    648640
     
    665657
    666658/*!40000 ALTER TABLE `soraldo_ele_rilaff` DISABLE KEYS */;
    667 
    668 
     659LOCK TABLES `soraldo_ele_rilaff` WRITE;
     660UNLOCK TABLES;
    669661/*!40000 ALTER TABLE `soraldo_ele_rilaff` ENABLE KEYS */;
    670662
     
    696688
    697689/*!40000 ALTER TABLE `soraldo_ele_sede` DISABLE KEYS */;
    698 
    699 
     690LOCK TABLES `soraldo_ele_sede` WRITE;
     691UNLOCK TABLES;
    700692/*!40000 ALTER TABLE `soraldo_ele_sede` ENABLE KEYS */;
    701693
     
    722714
    723715/*!40000 ALTER TABLE `soraldo_ele_servizi` DISABLE KEYS */;
    724 
    725 
     716LOCK TABLES `soraldo_ele_servizi` WRITE;
     717UNLOCK TABLES;
    726718/*!40000 ALTER TABLE `soraldo_ele_servizi` ENABLE KEYS */;
    727719
     
    760752
    761753/*!40000 ALTER TABLE `soraldo_ele_sezioni` DISABLE KEYS */;
    762 
    763 
     754LOCK TABLES `soraldo_ele_sezioni` WRITE;
     755UNLOCK TABLES;
    764756/*!40000 ALTER TABLE `soraldo_ele_sezioni` ENABLE KEYS */;
    765757
     
    779771
    780772/*!40000 ALTER TABLE `soraldo_ele_temi` DISABLE KEYS */;
    781 
     773LOCK TABLES `soraldo_ele_temi` WRITE;
    782774INSERT INTO `soraldo_ele_temi` VALUES ('default'),('altro'),('blog'),('stylized'),('tour'),('yellowblu'),('facebook');
    783 
     775UNLOCK TABLES;
    784776/*!40000 ALTER TABLE `soraldo_ele_temi` ENABLE KEYS */;
    785777
     
    807799
    808800/*!40000 ALTER TABLE `soraldo_ele_tipo` DISABLE KEYS */;
    809 
     801LOCK TABLES `soraldo_ele_tipo` WRITE;
    810802INSERT INTO `soraldo_ele_tipo` VALUES (1,'PROVINCIALI','it',3,'0','0','0','0'),(2,'REFERENDUM','it',0,'0','0','0','0'),(3,'COMUNALI','it',5,'0','0','0','0'),(4,'CIRCOSCRIZIONALI','it',5,'0','0','0','1'),(5,'BALLOTTAGGIO COMUNALI','it',1,'0','0','0','0'),(6,'CAMERA','it',2,'0','0','0','0'),(7,'SENATO','it',2,'0','0','0','0'),(8,'EUROPEE','it',4,'0','0','0','0'),(9,'REGIONALI','it',5,'0','0','0','0'),(10,'SENATO CON GRUPPI','it',5,'1','0','1','0'),(11,'CAMERA CON GRUPPI','it',5,'1','0','1','0'),(12,'PROVINCIALI CON COLLEGI','it',3,'0','0','0','1'),(13,'BALLOTTAGGIO PROVINCIALI','it',1,'0','0','0','0'),(14,'EUROPEE CON COLLEGI','it',4,'0','0','0','1'),(15,'CAMERA CON GRUPPI E COLLEGI','it',5,'1','0','1','1'),(16,'SENATO CON GRUPPI E COLLEGI','it',5,'1','0','1','1'),(17,'REGIONALI CON COLLEGI','it',5,'0','0','0','1');
    811 
     803UNLOCK TABLES;
    812804/*!40000 ALTER TABLE `soraldo_ele_tipo` ENABLE KEYS */;
    813805
     
    833825
    834826/*!40000 ALTER TABLE `soraldo_ele_voti_candidati` DISABLE KEYS */;
    835 
    836 
     827LOCK TABLES `soraldo_ele_voti_candidati` WRITE;
     828UNLOCK TABLES;
    837829/*!40000 ALTER TABLE `soraldo_ele_voti_candidati` ENABLE KEYS */;
    838830
     
    858850
    859851/*!40000 ALTER TABLE `soraldo_ele_voti_gruppo` DISABLE KEYS */;
    860 
    861 
     852LOCK TABLES `soraldo_ele_voti_gruppo` WRITE;
     853UNLOCK TABLES;
    862854/*!40000 ALTER TABLE `soraldo_ele_voti_gruppo` ENABLE KEYS */;
    863855
     
    883875
    884876/*!40000 ALTER TABLE `soraldo_ele_voti_lista` DISABLE KEYS */;
    885 
    886 
     877LOCK TABLES `soraldo_ele_voti_lista` WRITE;
     878UNLOCK TABLES;
    887879/*!40000 ALTER TABLE `soraldo_ele_voti_lista` ENABLE KEYS */;
    888880
     
    914906
    915907/*!40000 ALTER TABLE `soraldo_ele_voti_parziale` DISABLE KEYS */;
    916 
    917 
     908LOCK TABLES `soraldo_ele_voti_parziale` WRITE;
     909UNLOCK TABLES;
    918910/*!40000 ALTER TABLE `soraldo_ele_voti_parziale` ENABLE KEYS */;
    919911
     
    944936
    945937/*!40000 ALTER TABLE `soraldo_ele_voti_ref` DISABLE KEYS */;
    946 
    947 
     938LOCK TABLES `soraldo_ele_voti_ref` WRITE;
     939UNLOCK TABLES;
    948940/*!40000 ALTER TABLE `soraldo_ele_voti_ref` ENABLE KEYS */;
    949941
     
    969961
    970962/*!40000 ALTER TABLE `soraldo_ele_widget` DISABLE KEYS */;
    971 
     963LOCK TABLES `soraldo_ele_widget` WRITE;
    972964
    973965INSERT INTO `soraldo_ele_widget` (`id`, `nome_file`, `titolo`, `pos_or`, `pos_ver`, `attivo`) VALUES
     
    985977(12, 'pie_affluenze.php', 'pie_affluenze.php', 1, 0, 0);
    986978
    987 
     979UNLOCK TABLES;
    988980/*!40000 ALTER TABLE `soraldo_ele_widget` ENABLE KEYS */;
    989981
    990 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
    991 
    992 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
    993 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
    994 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
    995 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    996 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    997 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    998 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
     982
Note: See TracChangeset for help on using the changeset viewer.