Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Remove expire date via bric_soap or database

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


chris.schults at pccsea

May 16, 2011, 12:57 PM

Post #1 of 3 (367 views)
Permalink
Remove expire date via bric_soap or database

I need to remove the expire date from hundreds of stories. Any ideas on
how to do this?

I've tried using bric_soap by removing the <expire_date> element
altogether and replacing with <expire_date></expire_date> with no
change.

When updating the story table, I can't seem to insert a blank value as I
get an "invalid input syntax for type timestamp" error.

Thanks,

Chris

--------------------------------

Chris Schults
Web Developer
PCC Natural Markets
206-547-1222 x104
chris.schults [at] pccsea
http://www.pccnaturalmarkets.com


leggn at denison

May 16, 2011, 1:02 PM

Post #2 of 3 (335 views)
Permalink
Re: Remove expire date via bric_soap or database [In reply to]

Hi Chris,

You could write a quick perl script using the Bric API to accomplish
this, or just an update query in the DB directly. The bric_soap issue
sounds like a bug to me.

The timestamp field in the DB won't accept an empty string, but you can
set it to NULL to make it blank.

-Nick

On 5/16/2011 3:57 PM, Schults, Chris wrote:
> I need to remove the expire date from hundreds of stories. Any ideas on
> how to do this?
>
> I've tried using bric_soap by removing the<expire_date> element
> altogether and replacing with<expire_date></expire_date> with no
> change.
>
> When updating the story table, I can't seem to insert a blank value as I
> get an "invalid input syntax for type timestamp" error.
>
> Thanks,
>
> Chris
>
> --------------------------------
>
> Chris Schults
> Web Developer
> PCC Natural Markets
> 206-547-1222 x104
> chris.schults [at] pccsea
> http://www.pccnaturalmarkets.com
>
>


chris.schults at pccsea

May 16, 2011, 1:07 PM

Post #3 of 3 (333 views)
Permalink
RE: Remove expire date via bric_soap or database [In reply to]

> Hi Chris,
>
> You could write a quick perl script using the Bric API to accomplish
> this, or just an update query in the DB directly. The bric_soap issue
> sounds like a bug to me.
>
> The timestamp field in the DB won't accept an empty string, but you
can
> set it to NULL to make it blank.
>
> -Nick

Thanks Nick, going with NULL did the trick.

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.