|
@@ -2790,12 +2790,20 @@ function INSTALL_SES_PROCESY_A() {
|
|
|
exec($exec,$out,$exit); DEBUG_S(-3,$command_id.':out of2/3 CREATE_ZASOBY_DATABASE_DESC',array($exec,$out,$exit),__FILE__,__FUNCTION__,__LINE__);flush();$out="";$exit="";
|
|
exec($exec,$out,$exit); DEBUG_S(-3,$command_id.':out of2/3 CREATE_ZASOBY_DATABASE_DESC',array($exec,$out,$exit),__FILE__,__FUNCTION__,__LINE__);flush();$out="";$exit="";
|
|
|
$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'; //import procesow z tagami PISMO -
|
|
$exec='php -r"include(\''.$INSTALL_ROOT.'/superedit-SQIX_STRUCTURE_DB_SYNC.php\') ; SQIX_STRUCTURE_DB_SYNC(\'default_db\',\'test_db\',0,\'WYSLIJ_DO_BAZY\',\'FROM_ZASOBY_TO_ZASOBY\',\'3\'); " '.$_SERVER['SERVER_NAME'].' %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%'; //import procesow z tagami PISMO -
|
|
|
// this help is in case of my death ;-)
|
|
// this help is in case of my death ;-)
|
|
|
- // to dump important data process mysqldump -uroot -p SES_USERS2 CRM_PROCES CRM_WSKAZNIK CRM_LISTA_ZASOBOW CRM_TESTY_PYTANIA CRM_IMAGE > process_table.sql
|
|
|
|
|
|
|
+ // to dump important data process mysqldump -uroot -p SES_USERS2 CRM_PROCES CRM_WSKAZNIK CRM_LISTA_ZASOBOW CRM_TESTY_PYTANIA CRM_IMAGE CRM_IMPORT_TRANSLATE > process_table.sql
|
|
|
|
|
+ // or locally copy tables:
|
|
|
|
|
+ // create table CRM_PROCES_copy select * from CRM_PROCES;
|
|
|
|
|
+ // create table CRM_WSKAZNIK_copy select * from CRM_WSKAZNIK;
|
|
|
|
|
+ // create table CRM_LISTA_ZASOBOW_copy select * from CRM_LISTA_ZASOBOW;
|
|
|
|
|
+ // create table CRM_IMAGE_copy select * from CRM_IMAGE;
|
|
|
|
|
+ // create table CRM_TESTY_PYTANIA_copy select * from CRM_TESTY_PYTANIA;
|
|
|
|
|
+ // create table CRM_IMPORT_TRANSLATE_copy select * from CRM_IMPORT_TRANSLATE;
|
|
|
// use this unescaped from command to manually rebuild process (before clean it up by using CLEAR_IMPORTED_ZASOBY_REMOTE ) : (rename test.procesy5.pl by correct hostname)
|
|
// use this unescaped from command to manually rebuild process (before clean it up by using CLEAR_IMPORTED_ZASOBY_REMOTE ) : (rename test.procesy5.pl by correct hostname)
|
|
|
// php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('import_db','default_db',0,'WYSLIJ_DO_BAZY','FROM_ZASOBY_TO_ZASOBY','1001'); " test.procesy5.pl %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%
|
|
// php -r"include('superedit-SQIX_STRUCTURE_DB_SYNC.php') ; SQIX_STRUCTURE_DB_SYNC('import_db','default_db',0,'WYSLIJ_DO_BAZY','FROM_ZASOBY_TO_ZASOBY','1001'); " test.procesy5.pl %PISM%,%zasob%,%ADMINISTRACJA%,%wyposazenie%,%global%,%WMS%,%ISP%,%BI%
|
|
|
// or 1) prepare config_base_structure_dump.sql and upload it to target server
|
|
// or 1) prepare config_base_structure_dump.sql and upload it to target server
|
|
|
// 2) load this dump to some new database
|
|
// 2) load this dump to some new database
|
|
|
- // 3) use /garbage (phpMyAdmin) to copy/overwrite this tables: CRM_PROCES, CRM_WSKAZNIK, CRM_LISTA_ZASOBOW, CRM_TESTY_PYTANIA, CRM_IMAGE and CRM_IMPORT_TRANSLATE
|
|
|
|
|
|
|
+ // 3) use /garbage (phpMyAdmin) to copy/overwrite this tables: CRM_PROCES, CRM_WSKAZNIK, CRM_LISTA_ZASOBOW, CRM_TESTY_PYTANIA, CRM_IMAGE and CRM_IMPORT_TRANSLATE
|
|
|
|
|
+ // mysqldump -uXXXX -pXXXX DATABASE CRM_PROCES CRM_WSKAZNIK CRM_LISTA_ZASOBOW CRM_TESTY_PYTANIA CRM_IMAGE CRM_IMPORT_TRANSLATE > p5up5b.remote.SYSTEM.process_table.sql
|
|
|
// 4) try to simulate instalator in following steps (exec this):
|
|
// 4) try to simulate instalator in following steps (exec this):
|
|
|
// insert ignore into CRM_LISTA_ZASOBOW (`ID`, `DESC`, `TYPE`) VALUES(2, 'BAZA_DANYCH', 'BAZA_DANYCH') ;
|
|
// insert ignore into CRM_LISTA_ZASOBOW (`ID`, `DESC`, `TYPE`) VALUES(2, 'BAZA_DANYCH', 'BAZA_DANYCH') ;
|
|
|
// insert ignore into CRM_LISTA_ZASOBOW (`ID`,`PARENT_ID`, `DESC`, `TYPE`,`A_STATUS`) VALUES(3,0, 'test_procesy5_pl', 'PODMIOT','NORMAL') ; //(replace test_procesy5_pl)
|
|
// insert ignore into CRM_LISTA_ZASOBOW (`ID`,`PARENT_ID`, `DESC`, `TYPE`,`A_STATUS`) VALUES(3,0, 'test_procesy5_pl', 'PODMIOT','NORMAL') ; //(replace test_procesy5_pl)
|