Skip to content

Commit

Permalink
Add approved column to reviews table.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Sep 15, 2010
1 parent 84d478c commit d1d1509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/reviews/database/mysql/reviews.sql
Expand Up @@ -7,6 +7,7 @@ CREATE TABLE reviews (
rating integer NOT NULL DEFAULT 0,
title varchar(255) NOT NULL DEFAULT '',
public boolean NOT NULL DEFAULT FALSE,
approved boolean DEFAULT NULL,
review text NOT NULL DEFAULT '',
KEY(sku)
);
3 changes: 2 additions & 1 deletion plugins/reviews/database/pgsql/reviews.sql
Expand Up @@ -7,6 +7,7 @@ CREATE TABLE reviews (
rating integer NOT NULL DEFAULT 0,
title varchar(255) NOT NULL DEFAULT '',
public boolean NOT NULL DEFAULT FALSE,
review text NOT NULL DEFAULT ''
approved boolean DEFAULT NULL,
review text NOT NULL DEFAULT '',
);
CREATE INDEX reviews_sku ON reviews(sku);

0 comments on commit d1d1509

Please sign in to comment.