Ajout des tables dans le chargement et modif constantes par dfaut.

This commit is contained in:
Rodolphe Quiedeville 2003-03-13 18:53:40 +00:00
parent 7ff232b65d
commit 479e8fff08
6 changed files with 40 additions and 17 deletions

View File

@ -43,14 +43,14 @@ function llxHeader($head = "", $urlp = "") {
$menu->add_submenu("sqltables.php", "Tables");
if (DB_NAME_OSC <> "DB_NAME_OSC")
{
$menu->add("osc-languages.php", "OSC Languages $toto");
}
if ($conf->boutique->enabled)
{
$menu->add("boutique.php", "Boutique");
if (defined("DB_NAME_OSC"))
{
$menu->add_submenu("osc-languages.php", "OSC Languages $toto");
}
}
$menu->add("phpinfo.php", "phpinfo");

View File

@ -28,8 +28,7 @@ OPTIONS=
TABLES=$(shell find tables/ -name "*sql")
all:
cd tables \
&& make show
cat README
show:
cd tables \
@ -44,16 +43,15 @@ dev:
&& make dev
fulldev: droptable table load dev
fulldev: drop table load dev
droptable:
cd tables \
&& make drop
drop:
$(MYSQL) $(OPTIONS) $(BASE) < drop.sql
load:
$(MYSQL) $(OPTIONS) $(BASE) < data/data.sql
drop: dropdb droppriv
dropall: dropdb droppriv
droppriv:
$(MYSQL) mysql -e "delete from db where Db='$(BASE)' ; "

View File

@ -45,7 +45,7 @@ insert into llx_const(name, value, type, note) values ('MAIN_SEARCHFORM_CONTACT'
insert into llx_const(name, value, type, note) values ('COMPTA_ONLINE_PAYMENT_BPLC','1','yesno','Système de gestion de la banque populaire de Lorraine');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_THEME','dolibarr','chaine','theme principal');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_TITLE','Adherents test J1B','chaine','Titre des pages');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_TITLE','Dolibarr','chaine','Titre des pages');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL','Votre adhesion sur %SERVEUR% vient d\'etre resilie.\r\nNous esperons vous revoir tres bientot','texte','Mail de Resiliation');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_VALID','MAIN\r\nVotre adhesion vient d\'etre validee. \r\nVoici le rappel de vos coordonnees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante : \r\n%SERVEUR%public/adherents/','texte','Mail de validation');
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_EDIT','Voici le rappel des coordonnees que vous avez modifiees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail d\'edition');

View File

@ -46,6 +46,17 @@ values ('02-11-YHGT',2,now(),'2002-11-01',1,1000,0,196,1196,1,NULL,NULL,'');
insert into llx_facture_fourn (facnumber, fk_soc, datec, datef, paye, amount, remise, tva, total, fk_statut, fk_user_author, fk_user_valid, note)
values ('02-12-YHGT',2,now(),'2002-12-01',1,1000,0,196,1196,1,NULL,NULL,'');
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_THEME', 'yellow','chaine',1);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_BOUTIQUE', '1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_COMMANDE', '1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_COMMERCIAL','1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_DON', '1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_FACTURE', '1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_ADHERENT', '1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('BOUTIQUE_LIVRE','1','yesno',0);
REPLACE INTO llx_const (name, value, type, visible) VALUES ('BOUTIQUE_ALBUM','1','yesno',0);
delete from llx_user;

View File

@ -51,6 +51,10 @@ drop table if exists llx_adherent_options;
drop table if exists llx_adherent_options_label;
drop table if exists llx_album;
drop table if exists llx_auteur;
drop table if exists llx_bank;
drop table if exists llx_bank_account;
@ -79,6 +83,8 @@ drop table if exists llx_don;
drop table if exists llx_don_projet;
drop table if exists llx_editeur;
drop table if exists llx_fa_pr;
drop table if exists llx_facture;
@ -89,6 +95,10 @@ drop table if exists llx_facture_fourn;
drop table if exists llx_fichinter;
drop table if exists llx_groupart;
drop table if exists llx_livre;
drop table if exists llx_paiement;
drop table if exists llx_pointmort;
@ -105,6 +115,8 @@ drop table if exists llx_service;
drop table if exists llx_soc_recontact;
drop table if exists llx_sqltables;
drop table if exists llx_tva;
drop table if exists llx_user;

View File

@ -38,6 +38,8 @@ create:
$(MYSQL) $(OPTIONS) $(BASE) < llx_adherent_type.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_adherent_options.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_adherent_options_label.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_album.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_auteur.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_bank.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_bank_account.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_bank_categ.sql
@ -52,11 +54,14 @@ create:
$(MYSQL) $(OPTIONS) $(BASE) < llx_cotisation.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_don.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_don_projet.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_editeur.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_fa_pr.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_facture.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_facturedet.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_facture_fourn.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_fichinter.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_groupart.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_livre.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_paiement.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_pointmort.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_product.sql
@ -65,6 +70,7 @@ create:
$(MYSQL) $(OPTIONS) $(BASE) < llx_propaldet.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_service.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_soc_recontact.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_sqltables.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_tva.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_user.sql
$(MYSQL) $(OPTIONS) $(BASE) < llx_ventes.sql
@ -74,9 +80,5 @@ create:
$(MYSQL) $(OPTIONS) $(BASE) < socpeople.sql
$(MYSQL) $(OPTIONS) $(BASE) < socstatutlog.sql
drop:
$(MYSQL) $(OPTIONS) $(BASE) < drop.sql
show:
$(MYSQL) $(OPTIONS) $(BASE) -e 'show tables'