From a8d4f3c3004a63c96538c9ac760f02b9c551580e Mon Sep 17 00:00:00 2001 From: lidl Date: Fri, 27 Jun 2014 18:40:05 -0400 Subject: [PATCH] Make table creation comment a one-liner. --- lib/document_stores/postgres.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/document_stores/postgres.js b/lib/document_stores/postgres.js index 67b1cb8..c712e1f 100644 --- a/lib/document_stores/postgres.js +++ b/lib/document_stores/postgres.js @@ -3,8 +3,7 @@ var postgres = require('pg'); var winston = require('winston'); -// create table entries (id SERIAL primary key, key varchar(255) not null, value text not null, expiration int); -// CREATE UNIQUE INDEX unique_key ON entries (key); +// create table entries (id serial primary key, key varchar(255) not null, value text not null, expiration int, unique(key)); // A postgres document store var PostgresDocumentStore = function (options) {