Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
0847a500
Commit
0847a500
authored
Feb 11, 2016
by
Daniel Ruf
Committed by
Scott
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if table eventlog exists
parent
56179a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
install.php
qa-include/db/install.php
+5
-2
No files found.
qa-include/db/install.php
View file @
0847a500
...
...
@@ -1470,8 +1470,11 @@
case
63
:
// convert IP addresses to new binary format
qa_db_upgrade_query
(
'ALTER TABLE ^eventlog MODIFY ipaddress VARBINARY(16) NULL DEFAULT NULL'
);
qa_db_upgrade_query
(
'UPDATE ^eventlog SET ipaddress = UNHEX(HEX(CAST(ipaddress AS UNSIGNED)))'
);
$eventlog_exists
=
(
bool
)
qa_db_read_one_value
(
qa_db_query_sub
(
"SELECT 1 FROM ^eventlog LIMIT 1"
));
if
(
$eventlog_exists
){
qa_db_upgrade_query
(
'ALTER TABLE ^eventlog MODIFY ipaddress VARBINARY(16) NULL DEFAULT NULL'
);
qa_db_upgrade_query
(
'UPDATE ^eventlog SET ipaddress = UNHEX(HEX(CAST(ipaddress AS UNSIGNED)))'
);
}
qa_db_upgrade_query
(
'ALTER TABLE ^cookies MODIFY writeip VARBINARY(16) NULL DEFAULT NULL, MODIFY createip VARBINARY(16) NULL DEFAULT NULL'
);
qa_db_upgrade_query
(
'UPDATE ^cookies SET writeip = UNHEX(HEX(CAST(writeip AS UNSIGNED))), createip = UNHEX(HEX(CAST(createip AS UNSIGNED)))'
);
...
...
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