Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created a custom module and exported my views but the views say "Database overriding code" as soon as they are created. In other words, I export the view, and put it in the module, clear the views cache and it immediately says "Database overriding code". I googled this but the only suggestion that I found was that the view had changed which in this case they haven't nor have any modules been added or uninstalled.
Any idea why this might be happening?
Comments
Comment #1
ssalive CreditAttribution: ssalive commented@alforddm, did you progress with this? I just noticed the same behavior.
Comment #2
ssalive CreditAttribution: ssalive commentedI think I found the issue in my case. I had been doing development on this site before exporting the views to a new module. I thought I had deleted all the views in use before enabling my new module, but maybe not. I went back and deleted the view, cleared the views cache, and now it says "in code" as it should. Hope that helps.
Comment #3
alforddm CreditAttribution: alforddm commentedOhhhhhh, No I didn't try that. Thank you for the update. I'll give it a try.
Comment #4
pooja_umale CreditAttribution: pooja_umale commentedYou can also do it by selecting "Revert" option from drop-down list next to your view name by going to Home(admin)->Structure->Views on the UI (website).
Hope it works for you.
Comment #5
rogerpfaffIt helped on my system to revert the view.
Comment #6
DamienMcKennaThis is a known issue. Lets turn it into a documentation / UI task.
Comment #7
mfbIn my testing of a view that's part of a feature, in this case the view reports "database overriding code" and the view can be reverted. But the feature reports "Default" state and it cannot be reverted. This seems a bit confusing.