Jump to content

cms_database_revisions revision_date

Featured Replies

Posted

Is it possible you can change the revision_date in cms_database_revisions from a varchar(13) to an int? And maybe index it?

We are working on a working on a way of showing Wiki edits and this is a bit of a blocker without us changing it manually.

 

Thanks.

Why specifically do you need it to be an indexed int column?

  • Author

We are putting CMS database edits into the All Activity feed.

Ok, but why does that require changing the column type out of curiousity?

  • Author

Well, the idea of at least making it an int would make it consistent to how dates are stored elsewhere in the framework.

The indexing would be useful for particularly for our use in putting edits in the activity stream so they are searchable by date/time, so probably isn't needed in the core framework (but might be useful if IPS wants to count/filter these by date/time) -- I'm happy to make our database inconsistent with an extra index.

As the change you are suggesting has no practical impact in our case, it's not a change we are likely to make anytime in the immediate future. I'd recommend just adding the index and doing what you need to do.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.