Suppression scripts migration intermdiaires inutils en release.
This commit is contained in:
parent
b634e53393
commit
a0bc9f612c
@ -1,14 +0,0 @@
|
||||
|
||||
--
|
||||
-- table llx_product
|
||||
--
|
||||
|
||||
alter table llx_product modify price real ;
|
||||
|
||||
alter table llx_product add tva_tx real ;
|
||||
|
||||
update llx_product set tva_tx = 19.6 ;
|
||||
|
||||
alter table llx_propaldet add tva_tx real ;
|
||||
|
||||
alter table llx_propaldet add description text ;
|
||||
@ -1,6 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.1.3 à 0.1.4
|
||||
--
|
||||
|
||||
drop table if exists llx_notify ;
|
||||
@ -1,48 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.1.5 à 0.2.0
|
||||
--
|
||||
|
||||
alter table llx_propal add model_pdf varchar(50);
|
||||
|
||||
create table llx_notify_def
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datec date, -- date de paiement
|
||||
fk_action integer NOT NULL,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_contact integer NOT NULL
|
||||
);
|
||||
|
||||
create table llx_notify
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
daten datetime, -- date de la notification
|
||||
fk_action integer NOT NULL,
|
||||
fk_contact integer NOT NULL,
|
||||
objet_type enum('ficheinter','facture','propale'),
|
||||
objet_id integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
create table llx_action_def
|
||||
(
|
||||
rowid integer NOT NULL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
titre varchar(255) NOT NULL,
|
||||
description text,
|
||||
objet_type enum('ficheinter','facture','propale')
|
||||
);
|
||||
|
||||
|
||||
insert into llx_action_def (rowid,titre,description,objet_type) VALUES (1,'Validation fiche intervention','Déclenché lors de la validation d\'une fiche d\'intervention','ficheinter');
|
||||
insert into llx_action_def (rowid,titre,description,objet_type) VALUES (2,'Validation facture','Déclenché lors de la validation d\'une facture','facture');
|
||||
|
||||
create table llx_propal_model_pdf
|
||||
(
|
||||
nom varchar(50) PRIMARY KEY,
|
||||
libelle varchar(255),
|
||||
description text
|
||||
);
|
||||
@ -1,7 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.2.1 à 0.2.2
|
||||
--
|
||||
|
||||
alter table llx_product add nbvente integer default 0;
|
||||
alter table llx_product add envente tinyint default 1;
|
||||
@ -1,44 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.2.3 à 0.3.0
|
||||
--
|
||||
|
||||
--
|
||||
-- Attention sur un catalogue produit important ce script peut-être long
|
||||
-- à s'éxécuter
|
||||
--
|
||||
|
||||
alter table llx_product modify tva_tx double default 19.6 ;
|
||||
|
||||
create table llx_cond_reglement
|
||||
(
|
||||
rowid integer PRIMARY KEY,
|
||||
sortorder smallint,
|
||||
actif tinyint default 1,
|
||||
libelle varchar(255),
|
||||
libelle_facture text,
|
||||
fdm tinyint, -- reglement fin de mois
|
||||
nbjour smallint
|
||||
);
|
||||
|
||||
alter table llx_facture add fk_cond_reglement integer;
|
||||
|
||||
alter table llx_facture add date_lim_reglement date ;
|
||||
|
||||
insert into llx_cond_reglement values (1,1,1, "A réception","Réception de facture",0,0);
|
||||
insert into llx_cond_reglement values (2,2,1, "30 jours","Réglement à 30 jours",0,30);
|
||||
insert into llx_cond_reglement values (3,3,1, "30 jours fin de mois","Réglement à 30 jours fin de mois",1,30);
|
||||
insert into llx_cond_reglement values (4,4,1, "60 jours","Réglement à 60 jours",0,60);
|
||||
insert into llx_cond_reglement values (5,5,1, "60 jours fin de mois","Réglement à 60 jours fin de mois",1,60);
|
||||
|
||||
update llx_facture set fk_cond_reglement = 1 where fk_cond_reglement IS NULL ;
|
||||
update llx_facture set date_lim_reglement = datef where date_lim_reglement IS NULL ;
|
||||
|
||||
alter table llx_livre add frais_de_port tinyint default 1 ;
|
||||
|
||||
--
|
||||
-- Insertion pour le module rss_externe (syndication de sites externes)
|
||||
-- si soucis, erreurs et autres commentaires, mailto:erics@rycks.com
|
||||
--
|
||||
|
||||
insert into llx_boxes_def values('','Syndication','box_external_rss.php','');
|
||||
@ -1,24 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.3.0 à 0.4.0
|
||||
--
|
||||
|
||||
alter table llx_product add fk_product_type integer default 0 ;
|
||||
alter table llx_product add duration varchar(6) ;
|
||||
|
||||
create table llx_contrat
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
enservice smallint default 0,
|
||||
mise_en_service datetime,
|
||||
fin_validite datetime,
|
||||
date_cloture datetime,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_product integer NOT NULL,
|
||||
fk_facture integer NOT NULL default 0,
|
||||
fk_user_author integer NOT NULL,
|
||||
fk_user_mise_en_service integer NOT NULL,
|
||||
fk_user_cloture integer NOT NULL
|
||||
);
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.4.0 à 0.5.0
|
||||
--
|
||||
|
||||
alter table llx_user add fk_socpeople integer default 0;
|
||||
alter table llx_socpeople add fk_user integer default 0;
|
||||
|
||||
|
||||
|
||||
create table llx_rights_def
|
||||
(
|
||||
id integer PRIMARY KEY,
|
||||
libelle varchar(255),
|
||||
module varchar(12),
|
||||
type enum('r','w','m','d','a'),
|
||||
bydefault tinyint default 0
|
||||
);
|
||||
|
||||
|
||||
create table llx_user_rights
|
||||
(
|
||||
fk_user integer NOT NULL,
|
||||
fk_id integer NOT NULL,
|
||||
UNIQUE(fk_user,fk_id)
|
||||
);
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.5.1 à 0.5.2
|
||||
--
|
||||
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADH_TEXT_NEW_ADH','','texte','Texte d\'entete du formulaire d\'adhesion en ligne',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADH_CARD_HEADER_TEXT','%ANNEE%','string','Texte imprime sur le haut de la carte adherent',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADH_CARD_FOOTER_TEXT','Association FreeLUG http://www.freelug.org/','string','Texte imprime sur le bas de la carte adherent',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADH_CARD_TEXT','%TYPE% n° %ID%\r\n%PRENOM% %NOM%\r\n<%EMAIL%>\r\n%ADRESSE%\r\n%CP% %VILLE%\r\n%PAYS%','texte','Texte imprime sur la carte adherent',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('MAIN_MAILMAN_ADMINPW','','string','Mot de passe Admin des liste mailman',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('MAIN_MAILMAN_SERVER','lists.ipsyn.net','string','Serveur hebergeant les interfaces d\'Admin des listes mailman',0);
|
||||
replace into llx_const(name, value, type, note, visible) values ('MAIN_MAILMAN_UNSUB_URL','http://%SERVER%/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%ADMINPW%&user=%EMAIL%','chaine','Url de desinscription aux listes mailman',0);
|
||||
replace into llx_const(name, value, type, note, visible) values ('MAIN_MAILMAN_URL','http://%SERVER%/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%ADMINPW%&send_welcome_msg_to_this_batch=1&subscribees=%EMAIL%','chaine','url pour les inscriptions mailman',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('MAIN_MAILMAN_LISTS_COTISANT','','string','Liste(s) auxquelles les nouveaux cotisants sont inscris automatiquement',0);
|
||||
UPDATE llx_const SET name='ADHERENT_GLASNOST_PASS' WHERE name='MAIN_GLASNOST_PASS';
|
||||
UPDATE llx_const SET name='ADHERENT_GLASNOST_SERVEUR' WHERE name='MAIN_GLASNOST_SERVEUR';
|
||||
UPDATE llx_const SET name='ADHERENT_GLASNOST_USER' WHERE name='MAIN_GLASNOST_USER';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_ADMINPW' WHERE name='MAIN_MAILMAN_ADMINPW';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_LISTS' WHERE name='MAIN_MAILMAN_LISTS';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_LISTS_COTISANT' WHERE name='MAIN_MAILMAN_LISTS_COTISANT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_SERVER' WHERE name='MAIN_MAILMAN_SERVER';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_UNSUB_URL' WHERE name='MAIN_MAILMAN_UNSUB_URL';
|
||||
UPDATE llx_const SET name='ADHERENT_MAILMAN_URL' WHERE name='MAIN_MAILMAN_URL';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_COTIS' WHERE name='MAIN_MAIL_COTIS';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_COTIS_SUBJECT' WHERE name='MAIN_MAIL_COTIS_SUBJECT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_EDIT' WHERE name='MAIN_MAIL_EDIT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_EDIT_SUBJECT' WHERE name='MAIN_MAIL_EDIT_SUBJECT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_FROM' WHERE name='MAIN_MAIL_FROM';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_NEW' WHERE name='MAIN_MAIL_NEW';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_NEW_SUBJECT' WHERE name='MAIN_MAIL_NEW_SUBJECT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_RESIL' WHERE name='MAIN_MAIL_RESIL';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_RESIL_SUBJECT' WHERE name='MAIN_MAIL_RESIL_SUBJECT';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_VALID' WHERE name='MAIN_MAIL_VALID';
|
||||
UPDATE llx_const SET name='ADHERENT_MAIL_VALID_SUBJECT' WHERE name='MAIN_MAIL_VALID_SUBJECT';
|
||||
UPDATE llx_const SET name='ADHERENT_SPIP_DB' WHERE name='MAIN_SPIP_DB';
|
||||
UPDATE llx_const SET name='ADHERENT_SPIP_PASS' WHERE name='MAIN_SPIP_PASS';
|
||||
UPDATE llx_const SET name='ADHERENT_SPIP_SERVEUR' WHERE name='MAIN_SPIP_SERVEUR';
|
||||
UPDATE llx_const SET name='ADHERENT_SPIP_USER' WHERE name='MAIN_SPIP_USER';
|
||||
UPDATE llx_const SET name='ADHERENT_USE_GLASNOST' WHERE name='MAIN_USE_GLASNOST';
|
||||
UPDATE llx_const SET name='ADHERENT_USE_GLASNOST_AUTO' WHERE name='MAIN_USE_GLASNOST_AUTO';
|
||||
UPDATE llx_const SET name='ADHERENT_USE_MAILMAN' WHERE name='MAIN_USE_MAILMAN';
|
||||
UPDATE llx_const SET name='ADHERENT_USE_SPIP' WHERE name='MAIN_USE_SPIP';
|
||||
UPDATE llx_const SET name='ADHERENT_USE_SPIP_AUTO' WHERE name='MAIN_USE_SPIP_AUTO';
|
||||
UPDATE llx_const SET name='ADHERENT_CARD_FOOTER_TEXT' WHERE name='ADH_CARD_FOOTER_TEXT';
|
||||
UPDATE llx_const SET name='ADHERENT_CARD_HEADER_TEXT' WHERE name='ADH_CARD_HEADER_TEXT';
|
||||
UPDATE llx_const SET name='ADHERENT_CARD_TEXT' WHERE name='ADH_CARD_TEXT';
|
||||
UPDATE llx_const SET name='ADHERENT_TEXT_NEW_ADH' WHERE name='ADH_TEXT_NEW_ADH';
|
||||
insert into llx_const(name, value, type, note, visible) values ('MAIN_MAIL_FROM','mail@domain.com','string','Adresse expediteur des mails',0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.5.2 à 0.6.0
|
||||
--
|
||||
|
||||
create table llx_deplacement
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
datec datetime NOT NULL,
|
||||
tms timestamp,
|
||||
dated datetime,
|
||||
fk_user integer NOT NULL,
|
||||
fk_user_author integer,
|
||||
type smallint NOT NULL,
|
||||
km smallint,
|
||||
fk_soc integer,
|
||||
note text
|
||||
);
|
||||
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADHERENT_BANK_USE','0','yesno','Utilisation de la gestion banquaire',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADHERENT_BANK_USE_AUTO','0','yesno','Insertion automatique des cotisation dans le compte banquaire',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADHERENT_BANK_ACCOUNT','','string','ID du Compte banquaire utilise',0);
|
||||
insert into llx_const(name, value, type, note, visible) values ('ADHERENT_BANK_CATEGORIE','','string','ID de la categorie banquaire des cotisations',0);
|
||||
|
||||
alter table llx_cotisation ADD fk_bank int(11);
|
||||
@ -1,21 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 0.6.0 à 0.7.0
|
||||
--
|
||||
|
||||
alter table llx_propal add remise_percent real default 0;
|
||||
alter table llx_facture add remise_percent real default 0;
|
||||
|
||||
create table llx_product_price
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
tms timestamp,
|
||||
fk_product integer NOT NULL,
|
||||
date_price datetime NOT NULL,
|
||||
price double,
|
||||
tva_tx double default 19.6,
|
||||
fk_user_author integer,
|
||||
envente tinyint default 1
|
||||
);
|
||||
|
||||
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_NEED_UPDATE', '1','chaine',1);
|
||||
@ -1,13 +0,0 @@
|
||||
|
||||
--
|
||||
-- Mise à jour de la version 1.0.0-RC1 à 1.0.0-RC2
|
||||
--
|
||||
|
||||
create table llx_facture_tva_sum
|
||||
(
|
||||
fk_facture integer NOT NULL,
|
||||
amount real NOT NULL,
|
||||
tva_tx real NOT NULL,
|
||||
|
||||
KEY(fk_facture)
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user