diff --git a/htdocs/multicompany/sql/init/llx_const.sql b/htdocs/multicompany/sql/init/llx_const.sql new file mode 100644 index 00000000000..4250625422e --- /dev/null +++ b/htdocs/multicompany/sql/init/llx_const.sql @@ -0,0 +1,21 @@ +-- Copyright (C) 2009 Regis Houssin +-- +-- 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. +-- +-- $Id$ +-- + +UPDATE llx_const SET entity=0 WHERE name='MAIN_MODULE_USER' AND entity=1; +UPDATE llx_const SET entity=0 WHERE name='MAIN_MODULE_MULTICOMPANY' AND entity=1; \ No newline at end of file diff --git a/htdocs/multicompany/sql/remove/llx_const.sql b/htdocs/multicompany/sql/remove/llx_const.sql new file mode 100644 index 00000000000..05f3fe28a1c --- /dev/null +++ b/htdocs/multicompany/sql/remove/llx_const.sql @@ -0,0 +1,21 @@ +-- Copyright (C) 2009 Regis Houssin +-- +-- 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. +-- +-- $Id$ +-- + +UPDATE llx_const SET entity=1 WHERE name='MAIN_MODULE_USER' AND entity=0; +DELETE FROM llx_const WHERE name='MAIN_MODULE_MULTICOMPANY'; \ No newline at end of file