Expert

Added methods for replacing authors of pages when Users are deleted and replacing Experts if necessary
So the author should be replaced by the expert before the page is deleted.
The only time the page will be deleted is if there is no other people that
are writing on the topic. Elliott and I thought that if no one else is
writing about it, it probably doesn't matter so we could delete it.

On Thursday, November 27, 2014, Christian Gunderman <
notifications@github.com> wrote:

> In inc/database.php:
>
> > @@ -580,7 +759,7 @@ private function freshInstall() {
> >                   . "created_date DATETIME NOT NULL, "
> >                   . "cached_data MEDIUMTEXT NOT NULL, "
> >                   . "PRIMARY KEY (id), "
> > -                 . "FOREIGN KEY (user) REFERENCES Users(user) ON DELETE SET NULL"
> > +                 . "FOREIGN KEY (user) REFERENCES Users(user) ON DELETE CASCADE"
>
> This will delete the Page if the owner is deleted. Just checking that's
> what you want.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gundermanc/eecs341-cms/pull/44/files#r21010262>.
>


-- 
Karen Zoeller
Case Western Reserve University
College of Arts and Sciences, Class of 2016
B.A. in Cognitive Science and B.A. in Computer Science