Changeset 9529

Show
Ignore:
Timestamp:
05/08/08 08:26:54 (3 months ago)
Author:
miker
Message:

reordering some commands for update success

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

    r9485 r9529  
    8383 
    8484 
    85 DROP SCHEMA search CASCADE; 
     85DROP VIEW reporter.overdue_reports; 
     86DROP VIEW reporter.pending_reports; 
     87DROP VIEW reporter.currently_running; 
    8688 
    8789BEGIN; 
     
    9193------------------------------------------------------------------- 
    9294 
    93 DROP VIEW reporter.overdue_reports; 
    9495CREATE OR REPLACE VIEW reporter.overdue_reports AS 
    9596 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     
    100101  WHERE s.start_time IS NULL AND s.run_time < now(); 
    101102 
    102 DROP VIEW reporter.pending_reports; 
    103103CREATE OR REPLACE VIEW reporter.pending_reports AS 
    104104 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     
    109109  WHERE s.start_time IS NULL; 
    110110 
    111 DROP VIEW reporter.currently_running; 
    112111CREATE OR REPLACE VIEW reporter.currently_running AS 
    113112 SELECT s.id, c.barcode AS runner_barcode, r.name, s.run_time, s.run_time - now() AS scheduled_wait_time 
     
    149148        my $txt = shift; 
    150149        $txt =~ s/^\s+//o; 
    151         $txt =~ s/[\[\]\{\}\(\)`'"#<>\*\?\-\+\$\\]+//o; 
     150        $txt =~ s/[\[\]\{\}\(\)`'"#<>\*\?\-\+\$\\]+//o; #' To help vim in SQL mode 
    152151        $txt =~ s/\s+$//o; 
    153152        if ($txt =~ /(\d{3}(?:\.\d+)?)/o) { 
     
    158157$$ LANGUAGE 'plperlu' STRICT IMMUTABLE; 
    159158 
     159COMMIT; 
     160 
     161DROP SCHEMA search CASCADE; 
     162BEGIN; 
    160163 
    161164-------------------------------------------------------------------