Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2015-10-18 18:08:32 +0300
committerChaoyi Zha <summermontreal@gmail.com>2015-10-18 18:08:32 +0300
commitb48ff99a6dcd093b8d10f2dcda9376edc604faaf (patch)
tree3fbbd7742793e6e701843f874fbdbac661cc8f00
parent9d2a333e654ca8d4efd068dc2da29871db5b04b5 (diff)
Use int rather than smallint to stop overflow
smallint overflows at 2^15-1 (32,767) int overflows at 2^31-1 (2,147,483,647)
-rw-r--r--setup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.php b/setup.php
index a97f4e2..811ede4 100644
--- a/setup.php
+++ b/setup.php
@@ -218,7 +218,7 @@ PHP;
sqlrun('
CREATE TABLE `redirinfo` (
`rurl` text NOT NULL,
- `rid` smallint(200) NOT NULL AUTO_INCREMENT,
+ `rid` int(11) NOT NULL AUTO_INCREMENT,
`baseval` varchar(30) NOT NULL,
`ip` varchar(90) NOT NULL,
`iscustom` varchar(4) NOT NULL,
@@ -238,7 +238,7 @@ PHP;
sqlrun('
CREATE TABLE `redirinfo-temp` (
`rurl` text NOT NULL,
- `rid` smallint(200) NOT NULL AUTO_INCREMENT,
+ `rid` int(11) NOT NULL AUTO_INCREMENT,
`baseval` varchar(30) NOT NULL,
`ip` varchar(90) NOT NULL,
`iscustom` varchar(4) NOT NULL,