ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is there a way to output INSERT and UPDATE sql statements for CP actions?

April 13, 2011 7:38am

Subscribe [4]
  • #1 / Apr 13, 2011 7:38am

    moonbeetle

    81 posts

    The output profiler if enabled shows all the SQL statements needed to render a page. Except for the session id, almost always SELECT select statements.

    Suppose you create or update a channel, a new field group, custom fields, categories, statuses…would it be possible to output or log the INSERT and UPDATE queries for these actions?

  • #2 / Apr 13, 2011 11:51am

    giusi

    94 posts

    I don’t know if you can output what you need withouth hacking or extending the code.

    Anyway MySQL has a Query Log you can probably access (depends on your environment and hosting). This post could prove helpful.

  • #3 / Apr 13, 2011 2:32pm

    Sue Crocker

    26054 posts

    Can I ask what you’re needing it for?

  • #4 / Apr 13, 2011 4:17pm

    moonbeetle

    81 posts

    Recently I had to setup a section on a few existing websites and the setup (channel, custom fields) was identical. Not a difficult job but quite some time went into configuring all the custom fields. So I was wondering if there is a way to do the same job faster.

  • #5 / Apr 13, 2011 6:05pm

    Mark Bowen

    12637 posts

    If you are doing the exact same fields each time then take a look at MX Tool Box by the fantastic Max. Can definitely save some time when doing this sort of thing.

    Best wishes,

    Mark

  • #6 / Apr 13, 2011 6:38pm

    moonbeetle

    81 posts

    Mark, that module is just fantastic. Just tested it. Will say thanks to Max too.

  • #7 / Apr 14, 2011 11:40am

    Sue Crocker

    26054 posts

    Thanks for the assist, Mark.

    moonbeetle - Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases