Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
b92f0d08
Verified
Commit
b92f0d08
authored
Oct 14, 2019
by
Guinness
Browse files
Mise à jour du schéma de DB pour avoir des valeurs par défaut
parent
53445ca8
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
db/migrations/20181025132655_add_commentaire.php
View file @
b92f0d08
...
...
@@ -28,7 +28,7 @@ class AddCommentaire extends AbstractMigration
public
function
change
()
{
$table
=
$this
->
table
(
'contreparties'
);
$table
->
addColumn
(
'commentaire'
,
'string'
)
$table
->
addColumn
(
'commentaire'
,
'string'
,
array
(
'default'
=>
''
)
)
->
update
();
}
}
db/schema.sql
View file @
b92f0d08
...
...
@@ -83,7 +83,7 @@ DROP TABLE IF EXISTS `contreparties`;
/*!40101 SET character_set_client = utf8 */
;
CREATE
TABLE
`contreparties`
(
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`datec`
datetime
NOT
NULL
,
`datec`
datetime
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`user_id`
int
(
10
)
unsigned
NOT
NULL
,
`quoi`
varchar
(
255
)
NOT
NULL
,
`taille`
int
(
10
)
unsigned
NOT
NULL
,
...
...
@@ -105,22 +105,22 @@ DROP TABLE IF EXISTS `dons`;
CREATE
TABLE
`dons`
(
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`status`
tinyint
(
3
)
unsigned
NOT
NULL
,
`datec`
datetime
NOT
NULL
,
`datec`
datetime
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`somme`
int
(
10
)
unsigned
NOT
NULL
,
`lang`
varchar
(
5
)
CHARACTER
SET
latin1
NOT
NULL
DEFAULT
'en_US'
,
`cadeau`
tinyint
(
3
)
unsigned
NOT
NULL
,
`abo`
tinyint
(
4
)
NOT
NULL
,
`taille`
int
(
10
)
unsigned
NOT
NULL
,
`public`
int
(
10
)
unsigned
NOT
NULL
,
`pdf`
varchar
(
32
)
CHARACTER
SET
latin1
NOT
NULL
,
`decimale`
int
(
10
)
unsigned
NOT
NULL
,
`datee`
datetime
NOT
NULL
,
`cadeau`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
0
,
`abo`
tinyint
(
4
)
NOT
NULL
DEFAULT
0
,
`taille`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`public`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`pdf`
varchar
(
32
)
CHARACTER
SET
latin1
NOT
NULL
DEFAULT
''
,
`decimale`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`datee`
datetime
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`mailsent`
tinyint
(
4
)
DEFAULT
'0'
,
`color`
varchar
(
7
)
CHARACTER
SET
latin1
DEFAULT
NULL
,
`pi_x`
int
(
11
)
DEFAULT
NULL
,
`pi_y`
int
(
11
)
DEFAULT
NULL
,
`hash`
varchar
(
64
)
DEFAULT
NULL
,
`taille_h`
int
(
10
)
unsigned
NOT
NULL
,
`pi_x`
int
(
11
)
DEFAULT
NULL
DEFAULT
0
,
`pi_y`
int
(
11
)
DEFAULT
NULL
DEFAULT
0
,
`hash`
varchar
(
64
)
DEFAULT
NULL
DEFAULT
""
,
`taille_h`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`fdnn_user`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
,
`color_2`
varchar
(
7
)
DEFAULT
''
,
`cumul`
int
(
11
)
DEFAULT
'0'
,
...
...
@@ -193,13 +193,13 @@ CREATE TABLE `users` (
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`email`
varchar
(
255
)
DEFAULT
NULL
,
`hash`
varchar
(
64
)
CHARACTER
SET
latin1
NOT
NULL
,
`total`
int
(
10
)
unsigned
NOT
NULL
,
`cumul`
int
(
10
)
unsigned
NOT
NULL
,
`pseudo`
varchar
(
255
)
NOT
NULL
,
`total`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`cumul`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
0
,
`pseudo`
varchar
(
255
)
NOT
NULL
DEFAULT
""
,
`identifier`
varchar
(
50
)
DEFAULT
NULL
,
`expiration`
datetime
DEFAULT
NULL
,
`status`
int
(
11
)
DEFAULT
NULL
,
`commentaire`
text
,
`commentaire`
text
DEFAULT
''
,
PRIMARY
KEY
(
`id`
),
KEY
`email`
(
`email`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
15494
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Les donateurs'
;
...
...
Bastien Le Querrec
@bastien
mentioned in commit
77ee6c56
·
Nov 09, 2020
mentioned in commit
77ee6c56
mentioned in commit 77ee6c567f73458630621b22dcd2f3c237ac222f
Toggle commit list
Bastien Le Querrec
@bastien
mentioned in commit
70f5f157
·
Nov 09, 2020
mentioned in commit
70f5f157
mentioned in commit 70f5f157675915b1fb2c6957543d836c7810e86d
Toggle commit list
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