diff --git a/src/UnicaenImport/Service/QueryGeneratorService.php b/src/UnicaenImport/Service/QueryGeneratorService.php
index 0fb41263e2fb9c237a40526e251597620ca030aa..7a79dd6df1a67b03105c12432a744a505951dba5 100644
--- a/src/UnicaenImport/Service/QueryGeneratorService.php
+++ b/src/UnicaenImport/Service/QueryGeneratorService.php
@@ -220,12 +220,14 @@ class QueryGeneratorService extends AbstractService
      */
     public function updateViewsAndPackages()
     {
+        $this->getEntityManager()->getConnection()->executeQuery('UPDATE import_tables SET sync_enabled = 0');
         $this->populateImportTables();
 
         $views = $this->makeDiffViews();
 
         foreach ($views as $vn => $view) {
             $this->exec($view);
+            $this->getEntityManager()->getConnection()->executeQuery('UPDATE import_tables SET sync_enabled = 1 WHERE table_name = :table', ['table' => $vn]);
         }
 
         $declaration = $this->makePackageDeclaration();