Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
a613ee58
Commit
a613ee58
authored
Aug 22, 2014
by
Tobias Reich
Browse files
Default ist downloadable
parent
0fa1f648
Changes
1
Show whitespace changes
Inline
Side-by-side
php/database/update_020601.php
View file @
a613ee58
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# Add `downloadable`
# Add `downloadable`
if
(
!
$database
->
query
(
"SELECT `downloadable` FROM `lychee_albums` LIMIT 1;"
))
{
if
(
!
$database
->
query
(
"SELECT `downloadable` FROM `lychee_albums` LIMIT 1;"
))
{
$result
=
$database
->
query
(
"ALTER TABLE `lychee_albums` ADD `downloadable` TINYINT(1) NOT NULL DEFAULT
0
"
);
$result
=
$database
->
query
(
"ALTER TABLE `lychee_albums` ADD `downloadable` TINYINT(1) NOT NULL DEFAULT
1
"
);
if
(
!
$result
)
{
if
(
!
$result
)
{
Log
::
error
(
$database
,
'update_020601'
,
__LINE__
,
'Could not update database ('
.
$database
->
error
.
')'
);
Log
::
error
(
$database
,
'update_020601'
,
__LINE__
,
'Could not update database ('
.
$database
->
error
.
')'
);
return
false
;
return
false
;
...
...
Write
Preview
Markdown
is supported
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