fix: Récupérer l'opération active depuis la table operations

- Corrige l'erreur SQL 'Unknown column fk_operation in users'
- L'opération active est récupérée depuis operations.chk_active = 1
- Jointure avec users pour filtrer par entité de l'admin créateur
- Query: SELECT o.id FROM operations o INNER JOIN users u ON u.fk_entite = o.fk_entite WHERE u.id = ? AND o.chk_active = 1
This commit is contained in:
2026-01-26 16:57:08 +01:00
parent c24a3afe6a
commit 0687900564
3040 changed files with 77204 additions and 1578 deletions

0
api/scripts/CORRECTIONS_MIGRATE.md Normal file → Executable file
View File

0
api/scripts/MIGRATION_PATCH_INSTRUCTIONS.md Normal file → Executable file
View File

0
api/scripts/README-migration.md Normal file → Executable file
View File

0
api/scripts/check_geometry_validity.sql Normal file → Executable file
View File

0
api/scripts/config/update_php_fpm_settings.sh Normal file → Executable file
View File

0
api/scripts/create_addresses_users.sql Normal file → Executable file
View File

0
api/scripts/create_addresses_users_by_env.sql Normal file → Executable file
View File

0
api/scripts/cron/CRON.md Normal file → Executable file
View File

0
api/scripts/cron/cleanup_security_data.php Normal file → Executable file
View File

0
api/scripts/cron/process_email_queue_with_daily_log.sh Normal file → Executable file
View File

0
api/scripts/cron/rotate_event_logs.php Normal file → Executable file
View File

0
api/scripts/fix_geometry_for_spatial_index.sql Normal file → Executable file
View File

0
api/scripts/import_departements_from_file.php Normal file → Executable file
View File

0
api/scripts/import_department_boundaries.php Normal file → Executable file
View File

0
api/scripts/init_departements_contours.php Normal file → Executable file
View File

0
api/scripts/migrate_uploads_structure.php Normal file → Executable file
View File

0
api/scripts/migration2/README.md Normal file → Executable file
View File

0
api/scripts/migration2/geo_app_structure.sql Normal file → Executable file
View File

0
api/scripts/migration2/geosector-structure.sql Normal file → Executable file
View File

0
api/scripts/migration2/logs/.gitignore vendored Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DataMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DatabaseConfig.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DatabaseConnection.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/MigrationLogger.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/OperationMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/PassageMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/SectorMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/UserMigrator.php Normal file → Executable file
View File

0
api/scripts/migrations_entites.json Normal file → Executable file
View File

0
api/scripts/orga/TODO-ISOLATION-OPERATIONS.md Normal file → Executable file
View File

0
api/scripts/orga/fix_fk_constraints.sql Normal file → Executable file
View File

0
api/scripts/orga/fix_fk_constraints_safe.sql Normal file → Executable file
View File

0
api/scripts/orga/truncate_all_tables.sql Normal file → Executable file
View File

0
api/scripts/orga/verify_isolation.sql Normal file → Executable file
View File

0
api/scripts/patch_migration_scripts.sh Normal file → Executable file
View File

0
api/scripts/php/init_security_tables.php Normal file → Executable file
View File

0
api/scripts/php/verify_migration_structure.php Normal file → Executable file
View File

0
api/scripts/setup_addresses_access.sh Normal file → Executable file
View File

0
api/scripts/setup_addresses_access_by_env.sh Normal file → Executable file
View File

0
api/scripts/sql/add_chk_user_delete_pass.sql Normal file → Executable file
View File

0
api/scripts/sql/add_chk_username_manuel.sql Normal file → Executable file
View File

0
api/scripts/sql/add_email_queue_fields.sql Normal file → Executable file
View File

0
api/scripts/sql/add_unique_constraints_SIMPLE.sql Normal file → Executable file
View File

0
api/scripts/sql/add_unique_constraints_ope_tables.sql Normal file → Executable file
View File

View File

View File

0
api/scripts/sql/create_chat_tables.sql Normal file → Executable file
View File

0
api/scripts/sql/create_event_stats_daily.sql Normal file → Executable file
View File

0
api/scripts/sql/create_security_tables.sql Normal file → Executable file
View File

0
api/scripts/sql/drop_stripe_devices_table.sql Normal file → Executable file
View File

0
api/scripts/sql/migration_username_utf8_support.sql Normal file → Executable file
View File

0
api/scripts/sql/truncate_data_tables.sql Normal file → Executable file
View File