Skip to content

rationalize bookshelf db table #12

Description

@eshellman

The current bookshelves table looks like this :

CREATE TABLE public.bookshelves (
pk integer NOT NULL,
bookshelf text NOT NULL,
downloads integer DEFAULT 0 NOT NULL,
release_date date DEFAULT '1970-01-01'::date NOT NULL,
tsvec tsvector,
CONSTRAINT bookshelves_bookshelf_check CHECK ((bookshelf <> ''::text))
);

(with a many-to-many relationship to books.)
the bookshelf column is overloaded - text has been use to denote two different types of bookshelves while also serving as bookshelf title.
this has led to kludge upon kludge. to provide the needed presentation flexibility.
there should be a type column and also a descriptions column to allow shorter, more flexible titles and while also providing more useful descriptions.
gutenbergtools/autocat3#226

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions