Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
633540ef
Commit
633540ef
authored
May 25, 2007
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#144765
by ChrisKennedy, drewish, bjaspan et al: schema fixes.
parent
1d7037a7
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/database.mysql-common.inc
+1
-6
1 addition, 6 deletions
includes/database.mysql-common.inc
modules/menu/menu.schema
+1
-1
1 addition, 1 deletion
modules/menu/menu.schema
with
2 additions
and
7 deletions
includes/database.mysql-common.inc
+
1
−
6
View file @
633540ef
...
...
@@ -209,7 +209,7 @@ function db_drop_table(&$ret, $table) {
* The field specification array, as taken from a schema definition
*/
function
db_add_field
(
&
$ret
,
$table
,
$field
,
$spec
)
{
$query
=
'ALTER TABLE {'
.
$table
.
'} ADD
'
.
$field
.
'
'
;
$query
=
'ALTER TABLE {'
.
$table
.
'} ADD '
;
$query
.
=
_db_create_field_sql
(
$field
,
_db_process_field
(
$spec
));
$ret
[]
=
update_sql
(
$query
);
}
...
...
@@ -365,11 +365,6 @@ function db_drop_index(&$ret, $table, $name) {
/**
* Change a field definition.
*
* Remember that changing a field definition involves adding a new field
* and dropping an old one. This means that any indices, primary keys and
* sequences from serial-type fields are dropped and might need to be
* recreated.
*
* @param $ret
* Array to which query results will be added.
* @param $table
...
...
This diff is collapsed.
Click to expand it.
modules/menu/menu.schema
+
1
−
1
View file @
633540ef
...
...
@@ -23,7 +23,7 @@ function menu_schema() {
'description'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
TRUE
,
'default'
=>
''
),
'position'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
TRUE
,
'default'
=>
''
),
'weight'
=>
array
(
'type'
=>
'int'
,
'not null'
=>
TRUE
,
'default'
=>
0
),
'file'
=>
array
(
'type'
=>
'text'
,
'not null'
=>
FALSE
,
'default'
=>
''
,
'size'
=>
'medium'
)
'file'
=>
array
(
'type'
=>
'text'
,
'size'
=>
'medium'
)
),
'indexes'
=>
array
(
'fit'
=>
array
(
'fit'
),
...
...
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