Loading src/UnicaenImport/Controller/ImportController.php +0 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,6 @@ class ImportController extends AbstractActionController { $sc = $this->getServiceSchema(); //$tables = ['CHEMIN_PEDAGOGIQUE', 'STRUCTURE', 'GROUPE_TYPE_FORMATION','INTERVENANT'];//$sc->getImportTables(); $tables = $sc->getImportTables(); $mviews = $sc->getImportMviews(); Loading src/UnicaenImport/Service/SchemaService.php +1 −6 Original line number Diff line number Diff line Loading @@ -77,12 +77,7 @@ class SchemaService extends AbstractService */ public function getImportTables() { $sql = "SELECT SUBSTR(name,5) as TABLE_NAME FROM ( SELECT mview_name AS name FROM USER_MVIEWS UNION SELECT view_name AS name FROM USER_VIEWS UNION SELECT TABLE_NAME AS name FROM USER_TABLES ) t JOIN user_tables ut ON (ut.table_name = SUBSTR(name,5)) WHERE name LIKE 'SRC_%'"; $sql = "SELECT table_name FROM import_tables WHERE sync_enabled = 1 ORDER BY ordre"; return $this->query($sql, [], 'TABLE_NAME'); } Loading Loading
src/UnicaenImport/Controller/ImportController.php +0 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,6 @@ class ImportController extends AbstractActionController { $sc = $this->getServiceSchema(); //$tables = ['CHEMIN_PEDAGOGIQUE', 'STRUCTURE', 'GROUPE_TYPE_FORMATION','INTERVENANT'];//$sc->getImportTables(); $tables = $sc->getImportTables(); $mviews = $sc->getImportMviews(); Loading
src/UnicaenImport/Service/SchemaService.php +1 −6 Original line number Diff line number Diff line Loading @@ -77,12 +77,7 @@ class SchemaService extends AbstractService */ public function getImportTables() { $sql = "SELECT SUBSTR(name,5) as TABLE_NAME FROM ( SELECT mview_name AS name FROM USER_MVIEWS UNION SELECT view_name AS name FROM USER_VIEWS UNION SELECT TABLE_NAME AS name FROM USER_TABLES ) t JOIN user_tables ut ON (ut.table_name = SUBSTR(name,5)) WHERE name LIKE 'SRC_%'"; $sql = "SELECT table_name FROM import_tables WHERE sync_enabled = 1 ORDER BY ordre"; return $this->query($sql, [], 'TABLE_NAME'); } Loading