Remove "NewPkgNotify" column from "Users" table.

We do not require this column anymore. New package notifications are no
longer supported.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-04-13 11:56:03 +02:00
parent d73f9df39b
commit 2b460a8f2d
2 changed files with 6 additions and 2 deletions

View file

@ -7,6 +7,12 @@ From 1.8.2 to 1.9.0
1. Translation files are now gettext compatible and need to be compiled after 1. Translation files are now gettext compatible and need to be compiled after
each AUR upgrade by running `make install` in the "po/" directory. each AUR upgrade by running `make install` in the "po/" directory.
2. Remove the "NewPkgNotify" column from the "Users" table:
----
ALTER TABLE Users DROP COLUMN NewPkgNotify;
----
From 1.8.1 to 1.8.2 From 1.8.1 to 1.8.2
------------------- -------------------

View file

@ -32,12 +32,10 @@ CREATE TABLE Users (
LangPreference VARCHAR(5) NOT NULL DEFAULT 'en', LangPreference VARCHAR(5) NOT NULL DEFAULT 'en',
IRCNick VARCHAR(32) NOT NULL DEFAULT '', IRCNick VARCHAR(32) NOT NULL DEFAULT '',
LastVoted BIGINT UNSIGNED NOT NULL DEFAULT 0, LastVoted BIGINT UNSIGNED NOT NULL DEFAULT 0,
NewPkgNotify TINYINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (ID), PRIMARY KEY (ID),
UNIQUE (Username), UNIQUE (Username),
UNIQUE (Email), UNIQUE (Email),
INDEX (AccountTypeID), INDEX (AccountTypeID),
INDEX (NewPkgNotify),
FOREIGN KEY (AccountTypeID) REFERENCES AccountTypes(ID) ON DELETE NO ACTION FOREIGN KEY (AccountTypeID) REFERENCES AccountTypes(ID) ON DELETE NO ACTION
) ENGINE = InnoDB; ) ENGINE = InnoDB;
-- A default developer account for testing purposes -- A default developer account for testing purposes