Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
be091880
Commit
be091880
authored
Sep 26, 2007
by
Dries Buytaert
Browse files
- Patch
#124979
by chx: remove the auto_increment.
parent
9a0cbf62
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.schema
View file @
be091880
...
...
@@ -28,7 +28,7 @@ function comment_schema() {
$schema
[
'node_comment_statistics'
]
=
array
(
'fields'
=>
array
(
'nid'
=>
array
(
'type'
=>
'
serial
'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
),
'nid'
=>
array
(
'type'
=>
'
int
'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
'default'
=>
0
),
'last_comment_timestamp'
=>
array
(
'type'
=>
'int'
,
'not null'
=>
TRUE
,
'default'
=>
0
),
'last_comment_name'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
60
,
'not null'
=>
FALSE
),
'last_comment_uid'
=>
array
(
'type'
=>
'int'
,
'not null'
=>
TRUE
,
'default'
=>
0
),
...
...
modules/system/system.install
View file @
be091880
...
...
@@ -3194,7 +3194,7 @@ function system_update_6019() {
db_drop_primary_key
(
$ret
,
'term_node'
);
db_add_primary_key
(
$ret
,
'term_node'
,
array
(
'vid'
,
'tid'
,
'nid'
));
}
// Make boxes.bid unsigned.
db_drop_primary_key
(
$ret
,
'boxes'
);
db_change_field
(
$ret
,
'boxes'
,
'bid'
,
'bid'
,
array
(
'type'
=>
'serial'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
),
array
(
'primary key'
=>
array
(
'bid'
)));
...
...
@@ -3765,6 +3765,18 @@ function system_update_6032() {
return
$ret
;
}
/**
* Change node_comment_statistics to be not autoincrement.
*/
function
system_update_6033
()
{
$ret
=
array
();
if
(
db_table_exists
(
'node_comment_statistics'
))
{
db_change_field
(
$ret
,
'node_comment_statistics'
,
'nid'
,
'nid'
,
array
(
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
'default'
=>
0
)
}
return
$ret
;
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
...
...
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