Show
Ignore:
Timestamp:
04/29/08 13:47:57 (4 months ago)
Author:
miker
Message:

protecting against existing views

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/rel_1_2/Open-ILS/src/sql/Pg/1.2.1-1.2.2-upgrade-db.sql

    r9478 r9485  
    9191------------------------------------------------------------------- 
    9292 
     93DROP VIEW reporter.overdue_reports; 
    9394CREATE OR REPLACE VIEW reporter.overdue_reports AS 
    9495 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     
    99100  WHERE s.start_time IS NULL AND s.run_time < now(); 
    100101 
     102DROP VIEW reporter.pending_reports; 
    101103CREATE OR REPLACE VIEW reporter.pending_reports AS 
    102104 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     
    107109  WHERE s.start_time IS NULL; 
    108110 
     111DROP VIEW reporter.currently_running; 
    109112CREATE OR REPLACE VIEW reporter.currently_running AS 
    110113 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time