Skip to content

Commit

Permalink
In documentation, suggest using Postgres type inet for storing IPs
Browse files Browse the repository at this point in the history
It is the core Postgres type to store IP addresses.
  • Loading branch information
pstef committed Sep 22, 2019
1 parent 529b5ad commit dd8a920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ For PostgreSQL::

CREATE TABLE "ci_sessions" (
"id" varchar(128) NOT NULL,
"ip_address" varchar(45) NOT NULL,
"ip_address" inet NOT NULL,
"timestamp" timestamptz DEFAULT CURRENT_TIMESTAMP NOT NULL,
"data" bytea DEFAULT '' NOT NULL
);
Expand Down

0 comments on commit dd8a920

Please sign in to comment.