-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9abd3c
commit 9bd9b5a
Showing
6 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
//Silence is golden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-- Copyright (C) 2022-2023 EVARISK <technique@evarisk.com> | ||
-- | ||
-- 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 3 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, see https://www.gnu.org/licenses/. | ||
|
||
CREATE TABLE llx_c_address_type( | ||
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL, | ||
entity integer default 1, | ||
ref varchar(128), | ||
label varchar(255), | ||
description text, | ||
active tinyint(4) DEFAULT 1, | ||
position integer DEFAULT 0 | ||
) ENGINE=innodb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- Copyright (C) 2023 EVARISK <technique@evarisk.com> | ||
-- | ||
-- 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 3 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, see https://www.gnu.org/licenses/. | ||
|
||
ALTER TABLE llx_easycrm_address ADD INDEX idx_easycrm_address_rowid (rowid); | ||
ALTER TABLE llx_easycrm_address ADD INDEX idx_easycrm_address_status (status); | ||
ALTER TABLE llx_easycrm_address ADD INDEX idx_easycrm_address_element_id (element_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-- Copyright (C) 2023 EVARISK <technique@evarisk.com> | ||
-- | ||
-- 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 3 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, see https://www.gnu.org/licenses/. | ||
|
||
CREATE TABLE llx_easycrm_address( | ||
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL, | ||
entity integer DEFAULT 1 NOT NULL, | ||
date_creation datetime NOT NULL, | ||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
import_key varchar(14), | ||
status integer NOT NULL, | ||
element_type varchar(255), | ||
element_id integer NOT NULL, | ||
name varchar(255), | ||
type varchar(255), | ||
fk_country integer, | ||
fk_region integer, | ||
fk_department integer, | ||
town varchar(255), | ||
zip integer(5), | ||
address varchar(255), | ||
latitude double(24,8) DEFAULT 0 NOT NULL, | ||
longitude double(24,8) DEFAULT 0 NOT NULL, | ||
osm_id bigint(20), | ||
osm_category varchar(255), | ||
osm_type varchar(255), | ||
fk_user_creat integer NOT NULL, | ||
fk_user_modif integer | ||
) ENGINE=innodb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- Copyright (C) 2023 EVARISK <technique@evarisk.com> | ||
-- | ||
-- 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 3 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, see https://www.gnu.org/licenses/. | ||
|
||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Workplace', 'Workplace', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Home', 'Home', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'PrincipalResidence', 'PrincipalResidence', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'SecondaryResidence', 'SecondaryResidence', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Office', 'Office', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'BranchOffice', 'BranchOffice', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'WorkSite', 'WorkSite', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Factory', 'Factory', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Warehouse', 'Warehouse', '', '1', '0'); | ||
INSERT INTO llx_c_address_type (entity, ref, label, description, active, position) VALUES ('0', 'Headquarters', 'Headquarters', '', '1', '0'); |