mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
schema: Remove invalid default values for TEXT columns
When running in strict mode, mysql throws an error upon encountering these definitions since they are not supported. References: https://dev.mysql.com/doc/refman/5.7/en/data-type-defaults.html Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
906a8f12cc
commit
09cb61ab83
1 changed files with 4 additions and 4 deletions
|
@ -80,7 +80,7 @@ CREATE TABLE PackageBases (
|
||||||
NumVotes INTEGER UNSIGNED NOT NULL DEFAULT 0,
|
NumVotes INTEGER UNSIGNED NOT NULL DEFAULT 0,
|
||||||
Popularity DECIMAL(10,6) UNSIGNED NOT NULL DEFAULT 0,
|
Popularity DECIMAL(10,6) UNSIGNED NOT NULL DEFAULT 0,
|
||||||
OutOfDateTS BIGINT UNSIGNED NULL DEFAULT NULL,
|
OutOfDateTS BIGINT UNSIGNED NULL DEFAULT NULL,
|
||||||
FlaggerComment TEXT NOT NULL DEFAULT '',
|
FlaggerComment TEXT NOT NULL,
|
||||||
SubmittedTS BIGINT UNSIGNED NOT NULL,
|
SubmittedTS BIGINT UNSIGNED NOT NULL,
|
||||||
ModifiedTS BIGINT UNSIGNED NOT NULL,
|
ModifiedTS BIGINT UNSIGNED NOT NULL,
|
||||||
FlaggerUID INTEGER UNSIGNED NULL DEFAULT NULL, -- who flagged the package out-of-date?
|
FlaggerUID INTEGER UNSIGNED NULL DEFAULT NULL, -- who flagged the package out-of-date?
|
||||||
|
@ -253,7 +253,7 @@ CREATE TABLE PackageComments (
|
||||||
ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
PackageBaseID INTEGER UNSIGNED NOT NULL,
|
PackageBaseID INTEGER UNSIGNED NOT NULL,
|
||||||
UsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
UsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
||||||
Comments TEXT NOT NULL DEFAULT '',
|
Comments TEXT NOT NULL,
|
||||||
CommentTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
CommentTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
EditedTS BIGINT UNSIGNED NULL DEFAULT NULL,
|
EditedTS BIGINT UNSIGNED NULL DEFAULT NULL,
|
||||||
EditedUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
EditedUsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
||||||
|
@ -331,8 +331,8 @@ CREATE TABLE PackageRequests (
|
||||||
PackageBaseName VARCHAR(255) NOT NULL,
|
PackageBaseName VARCHAR(255) NOT NULL,
|
||||||
MergeBaseName VARCHAR(255) NULL,
|
MergeBaseName VARCHAR(255) NULL,
|
||||||
UsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
UsersID INTEGER UNSIGNED NULL DEFAULT NULL,
|
||||||
Comments TEXT NOT NULL DEFAULT '',
|
Comments TEXT NOT NULL,
|
||||||
ClosureComment TEXT NOT NULL DEFAULT '',
|
ClosureComment TEXT NOT NULL,
|
||||||
RequestTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
RequestTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
Status TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
Status TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
|
|
Loading…
Add table
Reference in a new issue