{
    "_comment": "Files and directories to delete when upgrading FROM a version older than the rule's version. Each rule runs only if the installed version is less than the rule version. Paths are relative to the application root.",
    "rules": [
        {
            "version": "5.5",
            "description": "Remove old migration files replaced by consolidated migrations",
            "paths": [
                "database/migrations/2014_10_12_000000_create_users_table.php",
                "database/migrations/2014_10_12_100000_create_password_resets_table.php",
                "database/migrations/2019_08_28_064644_create_sessions_table.php",
                "database/migrations/2019_12_10_124737_create_2_f_a_s_table.php",
                "database/migrations/2020_07_01_082720_create_failed_jobs_table.php",
                "database/migrations/2021_03_02_131638_create_jobs_table.php"
            ]
        },
        {
            "version": "6.3",
            "description": "Remove obsolete controllers, views, and legacy pages",
            "paths": [
                "app/Http/Controllers/BugController.php",
                "app/Http/Controllers/TicketController.php",
                "app/Http/Controllers/WizardController.php",
                "resources/views/setting/update.blade.php",
                "resources/views/setting/update new.blade.php",
                "resources/views/setting/pixel/index.blade.php",
                "resources/views/setting/pixel/index-s.blade.php",
                "resources/views/setting/pixel/debugging.blade.php",
                "resources/views/setting/pixel/create.blade.php",
                "resources/views/setting/pixel/analytics.blade.php",
                "resources/views/conversations/test.blade.php",
                "resources/views/conversations/index.blade.php",
                "resources/views/conversations/index-second.blade.php",
                "resources/views/bug/index.blade.php",
                "resources/views/install/index.blade.php",
                "resources/views/ticket/index.blade.php",
                "resources/views/wizard/index.blade.php"
            ]
        },
        {
            "version": "6.6",
            "description": "Remove old root-level model files moved to app/Models/",
            "paths": [
                "app/ActiveSession.php",
                "app/ActivityLogs.php",
                "app/Addon.php",
                "app/Alter_tables.php",
                "app/APIToken.php",
                "app/AppError.php",
                "app/AppIssue.php",
                "app/applicationSettings.php",
                "app/Autoresponder.php",
                "app/AutoresponderGroups.php",
                "app/Bounce.php",
                "app/BounceReasons.php",
                "app/BroadcastLink.php",
                "app/BugReply.php",
                "app/BugReport.php",
                "app/Campaign.php",
                "app/CampaignScheduleLogs.php",
                "app/CampaignSchedules.php",
                "app/Country.php",
                "app/CronjobLogs.php",
                "app/CustomCss.php",
                "app/CustomFields.php",
                "app/CustomHeader.php",
                "app/Dashboard.php",
                "app/DomainMasking.php",
                "app/DynamicContent.php",
                "app/DynamicContentTag.php",
                "app/EmailBounced.php",
                "app/EmailClicked.php",
                "app/EmailComplaint.php",
                "app/EmailOpened.php",
                "app/EmailTemplate.php",
                "app/EmailUnsubscribed.php",
                "app/EventQueueProcess.php",
                "app/ExportedFiles.php",
                "app/Fbl.php",
                "app/Groups.php",
                "app/Links.php",
                "app/Lists.php",
                "app/LiveEvents.php",
                "app/MainMenu.php",
                "app/MumaraMigrations.php",
                "app/Notification.php",
                "app/Package.php",
                "app/Permission.php",
                "app/Pixel.php",
                "app/Pmta.php",
                "app/ProfileField.php",
                "app/Role.php",
                "app/RolePermission.php",
                "app/Segmentations.php",
                "app/Smtps.php",
                "app/SpinTag.php",
                "app/SplitTests.php",
                "app/Statistics.php",
                "app/StatisticsSummarys.php",
                "app/StatsBroadcast.php",
                "app/StatsDashboard.php",
                "app/StatsDevice.php",
                "app/StatsTopDomain.php",
                "app/StatsTopDomains.php",
                "app/SubscriberAdditionalData.php",
                "app/SubscriberImports.php",
                "app/Subscribers.php",
                "app/SuppressionDomain.php",
                "app/SuppressionEmail.php",
                "app/SuppressionIp.php",
                "app/SuppressionReferences.php",
                "app/Task.php",
                "app/Templates.php",
                "app/Translation.php",
                "app/Trigger.php",
                "app/TriggerAction.php",
                "app/TwoFA.php",
                "app/UpdateContact.php",
                "app/User.php",
                "app/UserCronSetting.php",
                "app/UserEmailLimit.php",
                "app/UserNotifications.php",
                "app/user_settings.php",
                "app/WebForm.php",
                "app/WebFormDesigns.php",
                "app/WebTemplates.php",
                "app/ZapierSubscription.php"
            ]
        },
        {
            "version": "7.0",
            "description": "Laravel 12 upgrade: remove obsolete app files, orphaned vendor configs, old bundled libraries, old frontend assets, old root-level files, and old views moved to themes/default (old views shadow new theme views if not removed)",
            "paths": [
                "migrations.json",
                "app/Providers/Rules/CustomRules.php",
                "app/Classes/RssClass.php",
                "app/Console/Commands/RebuildSideMenu.php",
                "app/Console/Commands/Sending/SendCampaign.php",
                "app/Jobs/UpdateVersion.php",
                "app/SendEmail/PhpMailer.php",
                "app/Libraries/SMTP_Validate_Email.php",
                "config/l5-swagger.php",
                "app/Libraries/phpMailer",
                "js/libs/ckeditor",
                "js/libs/ckfinder",
                "js/MorphSVGPlugin.min.js",
                "resources/assets/css",
                "themes",
                ".htaccess",
                "index.php",
                "gulpfile.js",
                "package.json",
                "favicon.png",
                "pixel.gif",
                "robots.txt",
                "install",
                "resources/views/addons",
                "resources/views/appError",
                "resources/views/auth",
                "resources/views/autoresponder",
                "resources/views/bounce",
                "resources/views/bounce-reason",
                "resources/views/campaign",
                "resources/views/client",
                "resources/views/client-management",
                "resources/views/common",
                "resources/views/custom-css",
                "resources/views/custom-field",
                "resources/views/dashboard",
                "resources/views/dbcheck",
                "resources/views/domain-masking",
                "resources/views/domain-suppression",
                "resources/views/dynamic-content",
                "resources/views/email-suppression",
                "resources/views/email-template",
                "resources/views/emails",
                "resources/views/errors",
                "resources/views/fbl",
                "resources/views/includes",
                "resources/views/integration",
                "resources/views/ip-suppression",
                "resources/views/issues",
                "resources/views/languages",
                "resources/views/layouts",
                "resources/views/library",
                "resources/views/list",
                "resources/views/logs",
                "resources/views/notification",
                "resources/views/profile_field",
                "resources/views/restore",
                "resources/views/running-process",
                "resources/views/segmentation",
                "resources/views/session",
                "resources/views/sessions",
                "resources/views/setting",
                "resources/views/setups",
                "resources/views/smtp",
                "resources/views/spintag",
                "resources/views/split-test",
                "resources/views/staff",
                "resources/views/statistics",
                "resources/views/subscriber",
                "resources/views/templates",
                "resources/views/trigger",
                "resources/views/unsubscribe",
                "resources/views/user",
                "resources/views/web-form",
                "resources/views/web-template",
                "resources/views/phpInfo.blade.php"
            ]
        }
    ]
}
