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/sqlite/pykota-sqlite.sql

    r3279 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/>. 
     
    3232CREATE TABLE users(id INTEGER PRIMARY KEY NOT NULL, 
    3333                   username TEXT UNIQUE NOT NULL, 
    34                    email TEXT,  
     34                   email TEXT, 
    3535                   balance FLOAT DEFAULT 0.0, 
    3636                   lifetimepaid FLOAT DEFAULT 0.0, 
     
    3838                   description TEXT, 
    3939                   overcharge FLOAT NOT NULL DEFAULT 1.0); 
    40                     
     40 
    4141-- 
    4242-- Create the groups table 
     
    4646                    description TEXT, 
    4747                    limitby TEXT DEFAULT 'quota'); 
    48                      
     48 
    4949-- 
    5050-- Create the printers table 
     
    5757                      passthrough BOOLEAN DEFAULT FALSE, 
    5858                      maxjobsize INT4); 
    59                      
     59 
    6060-- 
    6161-- Create the print quota table for users 
     
    7070                        datelimit TEXT, 
    7171                        maxjobsize INT4, 
    72                         warncount INT4 DEFAULT 0);  
     72                        warncount INT4 DEFAULT 0); 
    7373CREATE INDEX userpquota_u_id_ix ON userpquota (userid); 
    7474CREATE INDEX userpquota_p_id_ix ON userpquota (printerid); 
    7575CREATE UNIQUE INDEX userpquota_up_id_ix ON userpquota (userid, printerid); 
    76                          
     76 
    7777-- 
    7878-- Create the job history table 
     
    103103CREATE INDEX jobhistory_pd_id_ix ON jobhistory (printerid, jobdate); 
    104104CREATE INDEX jobhistory_hostname_ix ON jobhistory (hostname); 
    105                          
     105 
    106106-- 
    107107-- Create the print quota table for groups 
     
    117117CREATE INDEX grouppquota_p_id_ix ON grouppquota (printerid); 
    118118CREATE UNIQUE INDEX grouppquota_up_id_ix ON grouppquota (groupid, printerid); 
    119                          
    120 --                          
     119 
     120-- 
    121121-- Create the groups/members relationship 
    122122-- 
     
    124124                           userid INT4 REFERENCES users(id), 
    125125                           PRIMARY KEY (groupid, userid)); 
    126                             
    127 --                          
     126 
     127-- 
    128128-- Create the printer groups relationship 
    129129-- 
     
    133133-- 
    134134-- Create the table for payments 
    135 --  
     135-- 
    136136CREATE TABLE payments (id INTEGER PRIMARY KEY NOT NULL, 
    137137                       userid INT4 REFERENCES users(id), 
     
    141141CREATE INDEX payments_date_ix ON payments (date); 
    142142 
    143 --  
     143-- 
    144144-- Create the table for coefficients wrt paper sizes and the like 
    145145-- 
    146 CREATE TABLE coefficients (id INTEGER PRIMARY KEY NOT NULL,  
    147                            printerid INTEGER NOT NULL REFERENCES printers(id),  
    148                            label TEXT NOT NULL,  
    149                            coefficient FLOAT DEFAULT 1.0,  
     146CREATE TABLE coefficients (id INTEGER PRIMARY KEY NOT NULL, 
     147                           printerid INTEGER NOT NULL REFERENCES printers(id), 
     148                           label TEXT NOT NULL, 
     149                           coefficient FLOAT DEFAULT 1.0, 
    150150                           CONSTRAINT coeffconstraint UNIQUE (printerid, label)); 
    151151 
    152 --  
     152-- 
    153153-- Create the table for the billing codes 
    154154--