Qual: Suppression table utilise nulle part
This commit is contained in:
parent
9a9ecf5c2f
commit
ee67e3c79b
@ -112,14 +112,6 @@ if ($_POST["action"] == 'setassujtva')
|
||||
if (! $result) dolibarr_print_error($result);
|
||||
}
|
||||
|
||||
if ($action == 'recontact')
|
||||
{
|
||||
$dr = mktime(0, 0, 0, $remonth, $reday, $reyear);
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."soc_recontact (fk_soc, datere, author) VALUES ($socidp, $dr,'". $user->login ."')";
|
||||
$result = $db->query($sql);
|
||||
if (! $result) dolibarr_print_error($result);
|
||||
}
|
||||
|
||||
if ($action == 'stcomm')
|
||||
{
|
||||
if ($stcommid <> 'null' && $stcommid <> $oldstcomm)
|
||||
|
||||
@ -67,13 +67,6 @@ if ($action == 'attribute_prefix')
|
||||
$societe->attribute_prefix($db, $socid);
|
||||
}
|
||||
|
||||
if ($action == 'recontact')
|
||||
{
|
||||
$dr = mktime(0, 0, 0, $remonth, $reday, $reyear);
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."soc_recontact (fk_soc, datere, author) VALUES ($socid, $dr,'". $user->login ."')";
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
|
||||
if ($action == 'note')
|
||||
{
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='$note' WHERE idp=$socid";
|
||||
|
||||
@ -64,13 +64,6 @@ if (!$user->rights->commercial->client->voir && $socid && !$user->societe_id > 0
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'recontact')
|
||||
{
|
||||
$dr = mktime(0, 0, 0, $remonth, $reday, $reyear);
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."soc_recontact (fk_soc, datere, author) VALUES ($socid, $dr,'". $user->login ."')";
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
|
||||
/* TODO RODO
|
||||
if ($action == 'stcomm')
|
||||
{
|
||||
|
||||
@ -152,8 +152,6 @@ alter table llx_socpeople type=INNODB;
|
||||
|
||||
alter table llx_soc_events type=INNODB;
|
||||
|
||||
alter table llx_soc_recontact type=INNODB;
|
||||
|
||||
alter table llx_socstatutlog type=INNODB;
|
||||
|
||||
alter table llx_sqltables type=INNODB;
|
||||
|
||||
@ -189,8 +189,6 @@ drop table if exists llx_socpeople;
|
||||
|
||||
drop table if exists llx_soc_events;
|
||||
|
||||
drop table if exists llx_soc_recontact;
|
||||
|
||||
drop table if exists llx_socstatutlog ;
|
||||
|
||||
drop table if exists llx_stock;
|
||||
|
||||
@ -189,8 +189,6 @@ alter table llx_socpeople type=INNODB;
|
||||
|
||||
alter table llx_soc_events type=INNODB;
|
||||
|
||||
alter table llx_soc_recontact type=INNODB;
|
||||
|
||||
alter table llx_socstatutlog type=INNODB;
|
||||
|
||||
alter table llx_stock type=INNODB;
|
||||
|
||||
@ -101,3 +101,6 @@ create table llx_avoir_model_pdf
|
||||
libelle varchar(255),
|
||||
description text
|
||||
)type=innodb;
|
||||
|
||||
|
||||
drop table llx_soc_recontact if exists;
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- Societes a recontacter
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_soc_recontact
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
fk_soc integer,
|
||||
datere datetime,
|
||||
author varchar(15)
|
||||
)type=innodb;
|
||||
@ -181,8 +181,6 @@ drop table llx_socpeople;
|
||||
|
||||
drop table llx_soc_events;
|
||||
|
||||
drop table llx_soc_recontact;
|
||||
|
||||
drop table llx_socstatutlog ;
|
||||
|
||||
drop table llx_stock;
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
-- Generated from dolibarr_mysql2pgsql
|
||||
-- (c) 2004, PostgreSQL Inc.
|
||||
-- (c) 2005, Laurent Destailleur.
|
||||
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
--
|
||||
-- Societes a recontacter
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_soc_recontact
|
||||
(
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
"fk_soc" integer,
|
||||
"datere" timestamp,
|
||||
"author" varchar(15)
|
||||
);
|
||||
Loading…
Reference in New Issue
Block a user