Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
72555e56
Commit
72555e56
authored
May 12, 2017
by
Mathieu Loiseau
Browse files
improve compatibility with old MySQLs
parent
e3eb8024
Changes
1
Hide whitespace changes
Inline
Side-by-side
GoW.sql
View file @
72555e56
...
...
@@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS `arbitrage` (
`arbitrageID`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`enregistrementID`
int
(
11
)
NOT
NULL
,
`idDruide`
int
(
11
)
NOT
NULL
,
`tpsArbitrage`
date
time
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`tpsArbitrage`
time
stamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`validation`
enum
(
'valid'
,
'invalid'
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
,
PRIMARY
KEY
(
`arbitrageID`
),
KEY
`validation`
(
`validation`
),
...
...
@@ -74,7 +74,7 @@ CREATE TABLE IF NOT EXISTS `enregistrement` (
`carteID`
int
(
11
)
NOT
NULL
,
`nivcarte`
enum
(
'A1'
,
'A1.1'
,
'A1.2'
,
'A2'
,
'B1'
,
'B2'
,
'C1'
,
'C2'
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
'B1'
,
`nivpartie`
enum
(
'easy'
,
'medium'
,
'hard'
)
NOT
NULL
DEFAULT
'easy'
COMMENT
'niveau de la partie oracle'
,
`tpsEnregistrement`
date
time
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`tpsEnregistrement`
time
stamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`validation`
enum
(
'valid'
,
'invalid'
,
'limbo'
,
'given up'
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
'limbo'
,
`nbSucces`
smallint
(
5
)
UNSIGNED
NOT
NULL
DEFAULT
'0'
COMMENT
'Combien de fois l
''
enregistrement a permis de trouver le mot'
,
`nbTentatives`
smallint
(
5
)
UNSIGNED
NOT
NULL
DEFAULT
'0'
COMMENT
'Combien de fois l
''
enregistrement a été passé à un devin'
,
...
...
@@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS `notif` (
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`state`
int
(
11
)
NOT
NULL
,
`game`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
,
`time`
date
time
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`time`
time
stamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
`id`
),
KEY
`type`
(
`type`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
...
...
@@ -131,7 +131,7 @@ CREATE TABLE IF NOT EXISTS `parties` (
`idDevin`
int
(
11
)
NOT
NULL
,
`nivPartie`
enum
(
'easy'
,
'medium'
,
'hard'
)
NOT
NULL
DEFAULT
'medium'
,
`nivCarte`
enum
(
'A1'
,
'A1.1'
,
'A1.2'
,
'A2'
,
'B1'
,
'B2'
,
'C1'
,
'C2'
)
NOT
NULL
DEFAULT
'B1'
,
`tpsDevin`
date
time
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'heure de début de la partie'
,
`tpsDevin`
time
stamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'heure de début de la partie'
,
`duree_Partie`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'Au bout de combien de temps le joueur a trouvé (ou abandonné)'
,
`reussite`
enum
(
'en cours'
,
'non'
,
'oui'
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
'en cours'
,
`mise`
tinyint
(
3
)
UNSIGNED
NOT
NULL
COMMENT
'la mise de la partie (pas de miseV/miseD)'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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