Skip to content
Snippets Groups Projects
Commit 4b0da34d authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Tables ordonnancées aussi dans la partie synchronisation

parent d3c6300b
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ class ImportController extends AbstractActionController ...@@ -34,7 +34,6 @@ class ImportController extends AbstractActionController
{ {
$sc = $this->getServiceSchema(); $sc = $this->getServiceSchema();
//$tables = ['CHEMIN_PEDAGOGIQUE', 'STRUCTURE', 'GROUPE_TYPE_FORMATION','INTERVENANT'];//$sc->getImportTables();
$tables = $sc->getImportTables(); $tables = $sc->getImportTables();
$mviews = $sc->getImportMviews(); $mviews = $sc->getImportMviews();
......
...@@ -77,12 +77,7 @@ class SchemaService extends AbstractService ...@@ -77,12 +77,7 @@ class SchemaService extends AbstractService
*/ */
public function getImportTables() public function getImportTables()
{ {
$sql = "SELECT SUBSTR(name,5) as TABLE_NAME FROM ( $sql = "SELECT table_name FROM import_tables WHERE sync_enabled = 1 ORDER BY ordre";
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_%'";
return $this->query($sql, [], 'TABLE_NAME'); return $this->query($sql, [], 'TABLE_NAME');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment