Ajout contrainte unique sur type adherent

This commit is contained in:
Laurent Destailleur 2007-05-02 09:51:21 +00:00
parent 2eb5ff506d
commit 0fab397495
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@ ALTER TABLE llx_cotisation ADD UNIQUE INDEX uk_cotisation (fk_adherent,dateadh);
update llx_const set name='MAIN_ENABLE_DEVELOPMENT' where name='MAIN_SHOW_DEVELOPMENT_MODULES';
delete from llx_adherent_type where libelle IS NULL;
alter table llx_adherent_type modify libelle varchar(50) NOT NULL;
-- Extention de la gestion des catégories
alter table llx_categorie ADD type int not null default '0';

View File

@ -30,7 +30,7 @@ create table llx_adherent_type
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
statut smallint NOT NULL DEFAULT 0,
libelle varchar(50),
libelle varchar(50) NOT NULL,
cotisation enum('yes','no') NOT NULL DEFAULT 'yes',
vote enum('yes','no') NOT NULL DEFAULT 'yes',
note text,