mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Specify utf8 in database schema.
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
24c628ad43
commit
c638a89314
1 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
-- is also included such as AccountTypes, etc.
|
-- is also included such as AccountTypes, etc.
|
||||||
--
|
--
|
||||||
DROP DATABASE AUR;
|
DROP DATABASE AUR;
|
||||||
CREATE DATABASE AUR;
|
CREATE DATABASE AUR DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||||
USE AUR;
|
USE AUR;
|
||||||
|
|
||||||
-- Define the Account Types for the AUR.
|
-- Define the Account Types for the AUR.
|
||||||
|
@ -159,7 +159,7 @@ CREATE TABLE PackageComments (
|
||||||
ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
PackageID INTEGER UNSIGNED NOT NULL,
|
PackageID INTEGER UNSIGNED NOT NULL,
|
||||||
UsersID INTEGER UNSIGNED NOT NULL,
|
UsersID INTEGER UNSIGNED NOT NULL,
|
||||||
Comments TEXT NOT NULl DEFAULT '',
|
Comments TEXT NOT NULL DEFAULT '',
|
||||||
CommentTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
CommentTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
DelUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
DelUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
|
@ -193,8 +193,8 @@ CREATE TABLE PackageBlacklist (
|
||||||
--
|
--
|
||||||
CREATE TABLE IF NOT EXISTS TU_VoteInfo (
|
CREATE TABLE IF NOT EXISTS TU_VoteInfo (
|
||||||
ID int(10) unsigned NOT NULL auto_increment,
|
ID int(10) unsigned NOT NULL auto_increment,
|
||||||
Agenda text collate latin1_general_ci NOT NULL,
|
Agenda text COLLATE utf8_general_ci NOT NULL,
|
||||||
User VARCHAR(32) collate latin1_general_ci NOT NULL,
|
User VARCHAR(32) COLLATE utf8_general_ci NOT NULL,
|
||||||
Submitted bigint(20) unsigned NOT NULL,
|
Submitted bigint(20) unsigned NOT NULL,
|
||||||
End bigint(20) unsigned NOT NULL,
|
End bigint(20) unsigned NOT NULL,
|
||||||
SubmitterID int(10) unsigned NOT NULL,
|
SubmitterID int(10) unsigned NOT NULL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue