clean code and fix bugs (to cont.)
This commit is contained in:
parent
afe3896114
commit
e137a24fe5
@ -43,11 +43,6 @@ require_once './modules/ClassUser.php';
|
|||||||
require_once './modules/ClassEmail.php';
|
require_once './modules/ClassEmail.php';
|
||||||
require_once './modules/ClassForm.php';
|
require_once './modules/ClassForm.php';
|
||||||
|
|
||||||
require_once './modules/ripcord.php';
|
|
||||||
require_once './modules/ClassXMLRPC.php';
|
|
||||||
require_once './modules/ClassOdooJSONRPC.php';
|
|
||||||
require_once './modules/ClassERP.php';
|
|
||||||
|
|
||||||
$oConf = new ClassConfig();
|
$oConf = new ClassConfig();
|
||||||
$oContent = new ClassContent();
|
$oContent = new ClassContent();
|
||||||
$oTrans = new ClassTranslation();
|
$oTrans = new ClassTranslation();
|
||||||
@ -58,7 +53,6 @@ $oFeatTrans = new ClassFeatureTranslation();
|
|||||||
$oUser = new ClassUser();
|
$oUser = new ClassUser();
|
||||||
$oCountry = new ClassCountry();
|
$oCountry = new ClassCountry();
|
||||||
$oCurrency = new ClassCurrency();
|
$oCurrency = new ClassCurrency();
|
||||||
$oERP = new ClassERP();
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -858,7 +858,6 @@ CREATE TABLE user_user (
|
|||||||
CREATE TABLE user_detail (
|
CREATE TABLE user_detail (
|
||||||
id SERIAL,
|
id SERIAL,
|
||||||
user_id INTEGER NOT NULL,
|
user_id INTEGER NOT NULL,
|
||||||
ext_id INTEGER DEFAULT NULL,
|
|
||||||
CONSTRAINT coreUserDetail_id_pk PRIMARY KEY(id),
|
CONSTRAINT coreUserDetail_id_pk PRIMARY KEY(id),
|
||||||
CONSTRAINT coreUserDetail_coreUserId_fk FOREIGN KEY(user_id) REFERENCES user_user(id)
|
CONSTRAINT coreUserDetail_coreUserId_fk FOREIGN KEY(user_id) REFERENCES user_user(id)
|
||||||
);
|
);
|
||||||
@ -904,17 +903,18 @@ INSERT INTO user_user(
|
|||||||
core_country_id, core_currency_id,
|
core_country_id, core_currency_id,
|
||||||
core_lang_id,
|
core_lang_id,
|
||||||
core_theme_id,
|
core_theme_id,
|
||||||
is_employee, is_backend_access, is_active, activation_code,
|
is_employee, is_backend_access, is_active, is_validated, activation_code,
|
||||||
comment
|
comment
|
||||||
) VALUES (
|
) VALUES (
|
||||||
'Super', 'Admin', 'admin@localhost', 'b6f5a1d77223794fcdb86a95ea24c20476deb006',
|
'Super', 'Admin', 'admin@localhost', '4b68560ec610244d0a158a02293e5789f22eba99',
|
||||||
(SELECT id FROM core_country WHERE code='ch'),
|
(SELECT id FROM core_country WHERE code='ch'),
|
||||||
(SELECT id FROM core_currency WHERE code='chf'),
|
(SELECT id FROM core_currency WHERE code='chf'),
|
||||||
(SELECT id FROM core_lang WHERE code='en_gb'),
|
(SELECT id FROM core_lang WHERE code='en_gb'),
|
||||||
(SELECT id FROM core_theme WHERE code='materialize'),
|
(SELECT id FROM core_theme WHERE code='materialize'),
|
||||||
TRUE, TRUE, TRUE, 'no activation code needed',
|
TRUE, TRUE, TRUE, TRUE, 'no activation code needed',
|
||||||
'utilisateur administrateur'
|
'utilisateur administrateur'
|
||||||
);
|
);
|
||||||
|
INSERT INTO user_detail(user_id) VALUES((SELECT id FROM user_user WHERE email='admin@localhost'));
|
||||||
|
|
||||||
-- core_feature: home
|
-- core_feature: home
|
||||||
INSERT INTO core_feature_translation (code, source, en_gb, fr_fr) VALUES('menu_home_url', 'home', 'home', 'accueil');
|
INSERT INTO core_feature_translation (code, source, en_gb, fr_fr) VALUES('menu_home_url', 'home', 'home', 'accueil');
|
||||||
|
Loading…
Reference in New Issue
Block a user