Commit 4b0da34d authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Tables ordonnancées aussi dans la partie synchronisation

parent d3c6300b
......@@ -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();
......
......@@ -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');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment