Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3421017
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3421017
Commits
f36b456c
Commit
f36b456c
authored
19 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#37373
by killes: bugfix: vocabulary_node_types was broken.
parent
08098a34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
database/database.mysql
+1
-1
1 addition, 1 deletion
database/database.mysql
database/database.pgsql
+1
-1
1 addition, 1 deletion
database/database.pgsql
database/updates.inc
+15
-0
15 additions, 0 deletions
database/updates.inc
with
17 additions
and
2 deletions
database/database.mysql
+
1
−
1
View file @
f36b456c
...
...
@@ -822,7 +822,7 @@ CREATE TABLE vocabulary (
CREATE TABLE vocabulary_node_types (
vid int(10) unsigned NOT NULL DEFAULT '0',
type varchar(
16
) NOT NULL DEFAULT '',
type varchar(
32
) NOT NULL DEFAULT '',
PRIMARY KEY (vid, type)
) TYPE=MyISAM;
...
...
This diff is collapsed.
Click to expand it.
database/database.pgsql
+
1
−
1
View file @
f36b456c
...
...
@@ -819,7 +819,7 @@ CREATE TABLE vocabulary (
CREATE TABLE vocabulary_node_types (
vid integer NOT NULL default '0',
type varchar(
16
) NOT NULL default '',
type varchar(
32
) NOT NULL default '',
PRIMARY KEY (vid, type)
);
...
...
This diff is collapsed.
Click to expand it.
database/updates.inc
+
15
−
0
View file @
f36b456c
...
...
@@ -1406,3 +1406,18 @@ function system_update_166() {
return
$ret
;
}
function
system_update_167
()
{
$ret
=
array
();
switch
(
$GLOBALS
[
'db_type'
])
{
case
'mysqli'
:
case
'mysql'
:
$ret
[]
=
update_sql
(
"ALTER TABLE
{
vocabulary_node_types
}
CHANGE type varchar(32) NOT NULL default ''"
);
break
;
case
'pgsql'
:
db_change_column
(
$ret
,
'vocabulary_node_types'
,
'type'
,
'type'
,
'varchar(32)'
,
array
(
'not null'
=>
TRUE
,
'default'
=>
"''"
));
break
;
}
return
$ret
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment