Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d95f8cfd
Commit
d95f8cfd
authored
Sep 05, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#898536
by Damien Tournoud: clean-up the upgrade path: dblog.
parent
b0531076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
modules/dblog/dblog.install
modules/dblog/dblog.install
+21
-21
No files found.
modules/dblog/dblog.install
View file @
d95f8cfd
...
...
@@ -98,37 +98,37 @@ function dblog_schema() {
*/
/**
*
Allow NULL values for links
.
*
Update the {watchdog} table
.
*/
function
dblog_update_7001
()
{
db_change_field
(
'watchdog'
,
'link'
,
'link'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
FALSE
,
'default'
=>
''
));
}
// Allow NULL values for links.
db_change_field
(
'watchdog'
,
'link'
,
'link'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
FALSE
,
'default'
=>
''
,
'description'
=>
'Link to view the result of the event.'
,
));
/**
* Add index on uid.
*/
function
dblog_update_7002
()
{
// Add an index on uid.
db_add_index
(
'watchdog'
,
'uid'
,
array
(
'uid'
));
}
/**
* Allow longer type values.
*/
function
dblog_update_7003
()
{
db_change_field
(
'watchdog'
,
'type'
,
'type'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
64
,
'not null'
=>
TRUE
,
'default'
=>
''
));
}
// Allow longer type values.
db_change_field
(
'watchdog'
,
'type'
,
'type'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
64
,
'not null'
=>
TRUE
,
'default'
=>
''
,
'description'
=>
'Type of log message, for example "user" or "page not found."'
,
));
/**
* Converts fields that store serialized variables from text to blob.
*/
function
dblog_update_7004
()
{
$spec
=
array
(
// Convert the variables field (that stores serialized variables) from text to blob.
db_change_field
(
'watchdog'
,
'variables'
,
'variables'
,
array
(
'type'
=>
'blob'
,
'not null'
=>
TRUE
,
'size'
=>
'big'
,
'description'
=>
'Serialized array of variables that match the message string and that is passed into the t() function.'
,
);
db_change_field
(
'watchdog'
,
'variables'
,
'variables'
,
$spec
);
));
}
/**
...
...
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