Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
bcc6a959
Commit
bcc6a959
authored
Jun 30, 2014
by
Lukas Fleischer
Browse files
aur-schema.sql: Use tabs for indentation everywhere
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
181c07ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema/aur-schema.sql
View file @
bcc6a959
...
...
@@ -322,28 +322,28 @@ CREATE TABLE PackageRequests (
-- Vote information
--
CREATE
TABLE
IF
NOT
EXISTS
TU_VoteInfo
(
ID
int
(
10
)
unsigned
NOT
NULL
auto_increment
,
Agenda
text
NOT
NULL
,
User
VARCHAR
(
32
)
NOT
NULL
,
Submitted
bigint
(
20
)
unsigned
NOT
NULL
,
End
bigint
(
20
)
unsigned
NOT
NULL
,
Quorum
decimal
(
2
,
2
)
unsigned
NOT
NULL
,
SubmitterID
int
(
10
)
unsigned
NOT
NULL
,
Yes
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
No
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
Abstain
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
ActiveTUs
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
ID
),
FOREIGN
KEY
(
SubmitterID
)
REFERENCES
Users
(
ID
)
ON
DELETE
CASCADE
ID
int
(
10
)
unsigned
NOT
NULL
auto_increment
,
Agenda
text
NOT
NULL
,
User
VARCHAR
(
32
)
NOT
NULL
,
Submitted
bigint
(
20
)
unsigned
NOT
NULL
,
End
bigint
(
20
)
unsigned
NOT
NULL
,
Quorum
decimal
(
2
,
2
)
unsigned
NOT
NULL
,
SubmitterID
int
(
10
)
unsigned
NOT
NULL
,
Yes
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
No
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
Abstain
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
ActiveTUs
tinyint
(
3
)
unsigned
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
ID
),
FOREIGN
KEY
(
SubmitterID
)
REFERENCES
Users
(
ID
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
;
-- Individual vote records
--
CREATE
TABLE
IF
NOT
EXISTS
TU_Votes
(
VoteID
int
(
10
)
unsigned
NOT
NULL
,
UserID
int
(
10
)
unsigned
NOT
NULL
,
FOREIGN
KEY
(
VoteID
)
REFERENCES
TU_VoteInfo
(
ID
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
UserID
)
REFERENCES
Users
(
ID
)
ON
DELETE
CASCADE
VoteID
int
(
10
)
unsigned
NOT
NULL
,
UserID
int
(
10
)
unsigned
NOT
NULL
,
FOREIGN
KEY
(
VoteID
)
REFERENCES
TU_VoteInfo
(
ID
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
UserID
)
REFERENCES
Users
(
ID
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
;
-- Malicious user banning
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment