summaryrefslogtreecommitdiffstats
path: root/UPGRADING
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-03-20 01:17:58 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-03-24 22:12:08 +0100
commitde2392fed016f80d4c0e10328c204f1e94ef54dd (patch)
treec5d82bdddbe480aa6b2e1c43aa20c6b8f40dee3b /UPGRADING
parent4fc1b9a0ca2cb19d3e6f1fbdaa9470bf2a95a499 (diff)
downloadaur-de2392fed016f80d4c0e10328c204f1e94ef54dd.tar.gz
aur-de2392fed016f80d4c0e10328c204f1e94ef54dd.tar.xz
Add "Bans" table to database schema
The "Bans" table creates a DB structure for the ability to ban IP addresses. It takes an IP address converted by ip2long(). The table will eventually be able to be populated directly through the web interface by Trusted Users and Developers. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING10
1 files changed, 10 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 9c054672..a04471fb 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -11,6 +11,16 @@ ALTER TABLE Users
ADD COLUMN LastLoginIPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0;
----
+2. Add a new "Bans" table:
+
+----
+CREATE TABLE Bans (
+ IPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0,
+ BanTS TIMESTAMP NOT NULL,
+ PRIMARY KEY (IPAddress)
+) ENGINE = InnoDB;
+----
+
From 2.0.0 to 2.1.0
-------------------