Aggiunta associazione
This commit is contained in:
30
associazione/sql/20171004.sql
Normal file
30
associazione/sql/20171004.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
ALTER TABLE `wf_iscritto` DROP `id_categoria`, DROP `via`, DROP `cap`, DROP `citta`, DROP `provincia`, DROP `cf`, DROP `stato`, DROP `nascita_luogo`, DROP `nascita_provincia`, DROP `gen_cognome`, DROP `gen_nome`, DROP `gen_cf`, DROP `gen_sesso`, DROP `gen_stato`, DROP `gen_nascita_data`, DROP `gen_nascita_luogo`, DROP `gen_nascita_provincia`, DROP `telefono`, DROP `mail`, DROP `data_richiesta`, DROP `data_delibera`, DROP `c_soc`, DROP `data_fita`, DROP `tessera`;
|
||||
|
||||
ALTER TABLE `wf_iscritto` ADD `tcintura` INT NULL AFTER `nascita_data`, ADD `commento` TEXT NULL AFTER `tcintura`;
|
||||
|
||||
DROP TABLE IF EXISTS `wf_versionedb`;
|
||||
CREATE TABLE `wf_versionedb` (
|
||||
`versione` varchar(32) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `wf_versionedb` (`versione`) VALUES('20171004');
|
||||
|
||||
CREATE TABLE `wf_storico` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`id_iscritto` bigint(20) UNSIGNED NOT NULL,
|
||||
`data` date NOT NULL,
|
||||
`peso` int(11) NOT NULL DEFAULT '0',
|
||||
`altezza` int(11) NOT NULL DEFAULT '0',
|
||||
`cooper` int(11) NOT NULL DEFAULT '0',
|
||||
`sargeant` int(11) NOT NULL DEFAULT '0',
|
||||
`slungo` int(11) NOT NULL DEFAULT '0',
|
||||
`palla` int(11) NOT NULL DEFAULT '0',
|
||||
`mobart` int(11) NOT NULL DEFAULT '0',
|
||||
`flesstro` int(11) NOT NULL DEFAULT '0',
|
||||
`cingolo` int(11) NOT NULL DEFAULT '0',
|
||||
`calcisemicirc` int(11) NOT NULL DEFAULT '0',
|
||||
`commenti` text
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `wf_storico` ADD PRIMARY KEY (`id`);
|
||||
ALTER TABLE `wf_storico` ADD INDEX(`id_iscritto`);
|
||||
Reference in New Issue
Block a user