forked from Wavyzz/dolibarr
Add more fields to llx_oauth_token
This commit is contained in:
@@ -3496,7 +3496,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_clock', 'object_dolly', 'object_dollyrevert',
|
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_clock', 'object_dolly', 'object_dollyrevert',
|
||||||
'object_folder', 'object_folder-open','object_generic',
|
'object_folder', 'object_folder-open','object_generic',
|
||||||
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
||||||
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_donation', 'object_dynamicprice',
|
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_cron', 'object_donation', 'object_dynamicprice',
|
||||||
'object_globe', 'object_holiday', 'object_hrm', 'object_invoice', 'object_intervention', 'object_inventory', 'object_label',
|
'object_globe', 'object_holiday', 'object_hrm', 'object_invoice', 'object_intervention', 'object_inventory', 'object_label',
|
||||||
'object_margin', 'object_members', 'object_money-bill-alt', 'object_multicurrency', 'object_order', 'object_payment',
|
'object_margin', 'object_members', 'object_money-bill-alt', 'object_multicurrency', 'object_order', 'object_payment',
|
||||||
'object_lot', 'object_mrp', 'object_other',
|
'object_lot', 'object_mrp', 'object_other',
|
||||||
@@ -3537,7 +3537,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'account'=>'university', 'accountline'=>'receipt', 'accountancy'=>'search-dollar', 'action'=>'calendar-alt', 'add'=>'plus-circle', 'address'=> 'address-book', 'asset'=>'money-check-alt',
|
'account'=>'university', 'accountline'=>'receipt', 'accountancy'=>'search-dollar', 'action'=>'calendar-alt', 'add'=>'plus-circle', 'address'=> 'address-book', 'asset'=>'money-check-alt',
|
||||||
'bank_account'=>'university', 'bill'=>'file-invoice-dollar', 'billa'=>'file-excel', 'billr'=>'file-invoice-dollar', 'supplier_invoicea'=>'file-excel', 'billd'=>'file-medical', 'supplier_invoiced'=>'file-medical',
|
'bank_account'=>'university', 'bill'=>'file-invoice-dollar', 'billa'=>'file-excel', 'billr'=>'file-invoice-dollar', 'supplier_invoicea'=>'file-excel', 'billd'=>'file-medical', 'supplier_invoiced'=>'file-medical',
|
||||||
'bom'=>'shapes',
|
'bom'=>'shapes',
|
||||||
'chart'=>'chart-line', 'company'=>'building', 'contact'=>'address-book', 'contract'=>'suitcase', 'collab'=>'people-arrows', 'conversation'=>'comments',
|
'chart'=>'chart-line', 'company'=>'building', 'contact'=>'address-book', 'contract'=>'suitcase', 'collab'=>'people-arrows', 'conversation'=>'comments', 'cron'=>'business-time',
|
||||||
'donation'=>'file-alt', 'dynamicprice'=>'hand-holding-usd',
|
'donation'=>'file-alt', 'dynamicprice'=>'hand-holding-usd',
|
||||||
'setup'=>'cog', 'companies'=>'building', 'products'=>'cube', 'commercial'=>'suitcase', 'invoicing'=>'coins',
|
'setup'=>'cog', 'companies'=>'building', 'products'=>'cube', 'commercial'=>'suitcase', 'invoicing'=>'coins',
|
||||||
'accounting'=>'chart-line', 'category'=>'tag', 'dollyrevert'=>'dolly',
|
'accounting'=>'chart-line', 'category'=>'tag', 'dollyrevert'=>'dolly',
|
||||||
@@ -3646,7 +3646,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
// Define $color
|
// Define $color
|
||||||
$arrayconvpictotocolor = array(
|
$arrayconvpictotocolor = array(
|
||||||
'address'=>'#6c6aa8', 'building'=>'#6c6aa8', 'bom'=>'#a69944',
|
'address'=>'#6c6aa8', 'building'=>'#6c6aa8', 'bom'=>'#a69944',
|
||||||
'cog'=>'#999', 'companies'=>'#6c6aa8', 'company'=>'#6c6aa8', 'contact'=>'#6c6aa8', 'dynamicprice'=>'#a69944',
|
'cog'=>'#999', 'companies'=>'#6c6aa8', 'company'=>'#6c6aa8', 'contact'=>'#6c6aa8', 'cron'=>'#555',
|
||||||
|
'dynamicprice'=>'#a69944',
|
||||||
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'help'=>'#bbb', 'listlight'=>'#999', 'language'=>'#555',
|
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'help'=>'#bbb', 'listlight'=>'#999', 'language'=>'#555',
|
||||||
'dolly'=>'#a69944', 'dollyrevert'=>'#a69944', 'lot'=>'#a69944',
|
'dolly'=>'#a69944', 'dollyrevert'=>'#a69944', 'lot'=>'#a69944',
|
||||||
'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'inventory'=>'#a69944', 'stock'=>'#a69944', 'movement'=>'#a69944',
|
'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'inventory'=>'#a69944', 'stock'=>'#a69944', 'movement'=>'#a69944',
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class modCron extends DolibarrModules
|
|||||||
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
// Name of image file used for this module.
|
// Name of image file used for this module.
|
||||||
$this->picto = 'technic';
|
$this->picto = 'cron';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ UPDATE llx_c_country SET eec = 1 WHERE code IN ('AT','BE','BG','CY','CZ','DE','D
|
|||||||
|
|
||||||
-- For v14
|
-- For v14
|
||||||
|
|
||||||
|
ALTER TABLE llx_oauth_token ADD COLUMN restricted_ips varchar(200);
|
||||||
|
ALTER TABLE llx_oauth_token ADD COLUMN datec datetime DEFAULT NULL;
|
||||||
|
ALTER TABLE llx_oauth_token ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_mailing_cibles MODIFY COLUMN tag varchar(64) NULL;
|
ALTER TABLE llx_mailing_cibles MODIFY COLUMN tag varchar(64) NULL;
|
||||||
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_tag (tag);
|
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_tag (tag);
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,3 @@ create table llx_events
|
|||||||
fk_object integer -- id of related object
|
fk_object integer -- id of related object
|
||||||
) ENGINE=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
--
|
|
||||||
-- List of codes for the field entity
|
|
||||||
--
|
|
||||||
-- 1 : first company events
|
|
||||||
-- 2 : second company events
|
|
||||||
-- 3 : etc...
|
|
||||||
--
|
|
||||||
|
|||||||
@@ -17,11 +17,14 @@
|
|||||||
|
|
||||||
CREATE TABLE llx_oauth_token (
|
CREATE TABLE llx_oauth_token (
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
service varchar(36),
|
service varchar(36), -- 'Google', 'Stripe', 'auth-public-key', ...
|
||||||
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
||||||
tokenstring text, -- token in json format '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
tokenstring text, -- token in text or json format. Value depends on 'service. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
||||||
fk_soc integer,
|
fk_soc integer,
|
||||||
fk_user integer,
|
fk_user integer, -- Id of user in llx_user
|
||||||
fk_adherent integer,
|
fk_adherent integer,
|
||||||
|
restricted_ips varchar(200), -- Restrict the authentication mode/token to some IPs
|
||||||
|
datec datetime DEFAULT NULL, -- date creation project
|
||||||
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
entity integer DEFAULT 1
|
entity integer DEFAULT 1
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ create table llx_user_alert
|
|||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
type integer,
|
type integer,
|
||||||
fk_contact integer, -- pointe sur llx_socpeople
|
fk_contact integer, -- id of llx_socpeople
|
||||||
fk_user integer
|
fk_user integer -- id of llx_user
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@@ -17,14 +17,12 @@
|
|||||||
-- ===========================================================================
|
-- ===========================================================================
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Stockage des informations relatives au click to dial
|
-- Table to store each different IP / devices / puclib key used for login
|
||||||
--
|
--
|
||||||
create table llx_user_clicktodial
|
create table llx_user_ipdevices
|
||||||
(
|
(
|
||||||
fk_user integer PRIMARY KEY,
|
rowid integer PRIMARY KEY,
|
||||||
url varchar(255),
|
fk_user integer NOT NULL, -- ID llx_user
|
||||||
login varchar(32),
|
ip varchar(64),
|
||||||
pass varchar(64),
|
user_agent varchar(255) NULL, -- user agent
|
||||||
poste varchar(20)
|
|
||||||
|
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Reference in New Issue
Block a user