Re: how to switch a view easily?

[prev] [thread] [next] [Date index for 2005/04/20]

From: Dana Hudes
Subject: Re: how to switch a view easily?
Date: 12:07 on 20 Apr 2005
How about moving deleted bookings to a separate deleted_bookings table?
you will make an extra query against the database if they want to see 
deleted bookings.


On Wed, 19 Apr 2005, Randal L. Schwartz wrote:

> 
> My $client has an app with "Booking" being a centrally important
> joining table (lots of has-many's on both sides).  One of the fields
> of Booking indicates whether the Booking has been deleted.  Now
> $client wants entire app to have two modes... "include deleted
> bookings" and "exclude deleted bookings".
> 
> Other than changing all my nice nifty working code to include huge
> amounts of new ->search_where's everywhere... is there some easy
> method I can use instead?
> 
> Certainly I can't be the first one to need this. :)
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
> 

(message missing)

how to switch a view easily?
merlyn (Randal L. Schwartz) 04:21 on 20 Apr 2005

Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 05:11 on 20 Apr 2005

Re: how to switch a view easily?
Tony Bowden 08:26 on 20 Apr 2005

Re: how to switch a view easily?
Dana Hudes 12:07 on 20 Apr 2005

Re: how to switch a view easily?
Mark Addison 13:12 on 20 Apr 2005

Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 13:55 on 20 Apr 2005

Solved (thank you postgresql!) was Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 16:30 on 20 Apr 2005

multi-column PK and has_many
Barry Moore 18:21 on 20 Apr 2005

Re: multi-column PK and has_many
Perrin Harkins 18:41 on 20 Apr 2005

Re: Solved (thank you postgresql!) was Re: how to switch a view easily?
merlyn (Randal L. Schwartz) 17:10 on 20 Apr 2005

Generated at 09:29 on 27 Apr 2005 by mariachi v0.52