Commit 4b0da34d authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Tables ordonnancées aussi dans la partie synchronisation

parent d3c6300b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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();

+1 −6
Original line number Diff line number Diff line
@@ -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');
    }