Skip to content

Commit

Permalink
Merge pull request #13 from Mindless999/patch-1
Browse files Browse the repository at this point in the history
Update Postgresql
  • Loading branch information
dsoares authored Aug 1, 2016
2 parents e1ab82e + 5039c4e commit b48844d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions SQL/postgres.initial.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
-- PostgreSQL table for rcguard
-- edit table and indexes so the prefix is added to it if you have done so in Roundcube

CREATE TABLE rcguard (
ip varchar(40) NOT NULL PRIMARY KEY,
first timestamp with time zone NOT NULL,
last timestamp with time zone NOT NULL,
hits integer NOT NULL
ip character varying(40) NOT NULL,
first timestamp with time zone NOT NULL,
last timestamp with time zone NOT NULL,
hits integer NOT NULL
);

ALTER TABLE ONLY rcguard
ADD CONSTRAINT rcguard_pkey PRIMARY KEY (ip);

CREATE INDEX rcguard_last_idx ON rcguard(last);
CREATE INDEX rcguard_hits_idx ON rcguard(hits);

0 comments on commit b48844d

Please sign in to comment.