IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2008, 4:10:52 PM (18 years ago)
Author:
jhoblitt
Message:

fix mountedvol fkey issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r16265 r16282  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.47 2008-01-31 02:26:33 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.48 2008-02-02 02:10:52 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    414414CREATE TABLE mountedvol(
    415415    mountpoint VARCHAR(255) NOT NULL,
    416     FOREIGN KEY(mountpoint) REFERENCES mount(mountpoint),
     416    FOREIGN KEY(mountpoint) REFERENCES mount(mountpoint) ON DELETE CASCADE,
    417417    total BIGINT NOT NULL,
    418418    used BIGINT NOT NULL,
    419419    vol_id INT NOT NULL,
    420     FOREIGN KEY(vol_id) REFERENCES volume(vol_id),
     420    FOREIGN KEY(vol_id) REFERENCES volume(vol_id) ON DELETE CASCADE,
    421421    name VARCHAR(255) NOT NULL,
    422422    path VARCHAR(255) NOT NULL,
    423     FOREIGN KEY(path) REFERENCES volume(path),
     423    FOREIGN KEY(path) REFERENCES volume(path) ON DELETE CASCADE,
    424424    allocate BOOLEAN DEFAULT FALSE,
    425425    available BOOLEAN DEFAULT FALSE,
Note: See TracChangeset for help on using the changeset viewer.