Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/postgresql/upgrade-to-1.16.sql

    r3259 r3413  
    77-- the Free Software Foundation, either version 3 of the License, or 
    88-- (at your option) any later version. 
    9 --  
     9-- 
    1010-- This program is distributed in the hope that it will be useful, 
    1111-- but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1212-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1313-- GNU General Public License for more details. 
    14 --  
     14-- 
    1515-- You should have received a copy of the GNU General Public License 
    1616-- along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    17 --  
     17-- 
    1818-- $Id$ 
    1919-- 
     
    2222-- This script has to be used if you already 
    2323-- have a pre-1.16 version of PyKota to upgrade 
    24 -- your database schema.  
     24-- your database schema. 
    2525-- 
    2626-- YOU DON'T NEED TO USE IT IF YOU'VE JUST INSTALLED PYKOTA 
    2727-- 
    28                          
    29 --                          
     28 
     29-- 
    3030-- WARNING : YOU NEED A RECENT VERSION OF POSTGRESQL FOR THE ALTER COLUMN STATEMENT TO WORK ! 
    3131-- 
    3232 
    33 --                          
     33-- 
    3434-- Modify the old database schema 
    3535-- 
     
    4848ALTER TABLE jobhistory ADD CONSTRAINT checkUserPQuota FOREIGN KEY (userid, printerid) REFERENCES userpquota (userid, printerid); 
    4949 
    50 --  
     50-- 
    5151-- Add new tables 
    5252-- 
    53 --                          
     53-- 
    5454-- Create the printer groups relationship 
    5555-- 
     
    5858                           PRIMARY KEY (groupid, printerid)); 
    5959 
    60 --                          
     60-- 
    6161-- Now add some indexes 
    6262-- 
     
    6666CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 
    6767 
    68 --  
     68-- 
    6969-- And now sets some ACLs 
    70 --  
    71 REVOKE ALL ON printergroupsmembers FROM public;                         
     70-- 
     71REVOKE ALL ON printergroupsmembers FROM public; 
    7272GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES ON printergroupsmembers TO pykotaadmin; 
    7373GRANT SELECT ON printergroupsmembers TO pykotauser;