Skip to content

Commit

Permalink
[model] tweak author links
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 19, 2011
1 parent 47371c5 commit 08c5fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Quelology/Model/Result/AuthorLink.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ __PACKAGE__->add_columns(
qw/
type
url
lang
/,
);

Expand Down
4 changes: 3 additions & 1 deletion schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ CREATE TABLE author_link (
id SERIAL PRIMARY KEY,
author_id INTEGER NOT NULL REFERENCES author (id) ON DELETE CASCADE,
type VARCHAR(64) NOT NULL,
url VARCHAR(255) NOT NULL
url VARCHAR(255) NOT NULL,
lang CHAR(2),
UNIQUE(author_id, url)
);
CREATE INDEX author_link_author_id_idx ON author_link (author_id);

Expand Down

0 comments on commit 08c5fcf

Please sign in to comment.