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
88723451
Commit
88723451
authored
May 9, 2006
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#62478
by Matt: database schema cleanup.
parent
b28ce3b0
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
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
database/database.4.0.mysql
+6
-5
6 additions, 5 deletions
database/database.4.0.mysql
database/database.4.1.mysql
+6
-5
6 additions, 5 deletions
database/database.4.1.mysql
database/updates.inc
+19
-0
19 additions, 0 deletions
database/updates.inc
with
31 additions
and
10 deletions
database/database.4.0.mysql
+
6
−
5
View file @
88723451
...
@@ -412,17 +412,18 @@ CREATE TABLE node (
...
@@ -412,17 +412,18 @@ CREATE TABLE node (
promote int(2) NOT NULL default '0',
promote int(2) NOT NULL default '0',
moderate int(2) NOT NULL default '0',
moderate int(2) NOT NULL default '0',
sticky int(2) NOT NULL default '0',
sticky int(2) NOT NULL default '0',
PRIMARY KEY (nid),
PRIMARY KEY (nid, vid),
UNIQUE KEY vid (vid),
KEY node_type (type(4)),
KEY node_type (type(4)),
KEY node_title_type (title, type(4)),
KEY node_title_type (title, type(4)),
KEY status (status),
KEY status (status),
KEY uid (uid),
KEY uid (uid),
KEY vid (vid),
KEY node_moderate (moderate),
KEY node_moderate (moderate),
KEY node_promote_status (promote, status),
KEY node_promote_status (promote, status),
KEY node_created (created),
KEY node_created (created),
KEY node_changed (changed),
KEY node_changed (changed),
KEY node_status_type (status, type, nid)
KEY node_status_type (status, type, nid),
KEY nid (nid)
);
);
--
--
...
@@ -634,7 +635,7 @@ CREATE TABLE sequences (
...
@@ -634,7 +635,7 @@ CREATE TABLE sequences (
--
--
CREATE TABLE node_counter (
CREATE TABLE node_counter (
nid int(1
1
) NOT NULL default '0',
nid int(1
0
) NOT NULL default '0',
totalcount bigint(20) unsigned NOT NULL default '0',
totalcount bigint(20) unsigned NOT NULL default '0',
daycount mediumint(8) unsigned NOT NULL default '0',
daycount mediumint(8) unsigned NOT NULL default '0',
timestamp int(11) unsigned NOT NULL default '0',
timestamp int(11) unsigned NOT NULL default '0',
...
...
This diff is collapsed.
Click to expand it.
database/database.4.1.mysql
+
6
−
5
View file @
88723451
...
@@ -440,17 +440,18 @@ CREATE TABLE node (
...
@@ -440,17 +440,18 @@ CREATE TABLE node (
promote int(2) NOT NULL default '0',
promote int(2) NOT NULL default '0',
moderate int(2) NOT NULL default '0',
moderate int(2) NOT NULL default '0',
sticky int(2) NOT NULL default '0',
sticky int(2) NOT NULL default '0',
PRIMARY KEY (nid),
PRIMARY KEY (nid, vid),
UNIQUE KEY vid (vid),
KEY node_type (type(4)),
KEY node_type (type(4)),
KEY node_title_type (title, type(4)),
KEY node_title_type (title, type(4)),
KEY status (status),
KEY status (status),
KEY uid (uid),
KEY uid (uid),
KEY vid (vid),
KEY node_moderate (moderate),
KEY node_moderate (moderate),
KEY node_promote_status (promote, status),
KEY node_promote_status (promote, status),
KEY node_created (created),
KEY node_created (created),
KEY node_changed (changed),
KEY node_changed (changed),
KEY node_status_type (status, type, nid)
KEY node_status_type (status, type, nid),
KEY nid (nid)
)
)
DEFAULT CHARACTER SET utf8;
DEFAULT CHARACTER SET utf8;
...
@@ -678,7 +679,7 @@ DEFAULT CHARACTER SET utf8;
...
@@ -678,7 +679,7 @@ DEFAULT CHARACTER SET utf8;
--
--
CREATE TABLE node_counter (
CREATE TABLE node_counter (
nid int(1
1
) NOT NULL default '0',
nid int(1
0
) NOT NULL default '0',
totalcount bigint(20) unsigned NOT NULL default '0',
totalcount bigint(20) unsigned NOT NULL default '0',
daycount mediumint(8) unsigned NOT NULL default '0',
daycount mediumint(8) unsigned NOT NULL default '0',
timestamp int(11) unsigned NOT NULL default '0',
timestamp int(11) unsigned NOT NULL default '0',
...
...
This diff is collapsed.
Click to expand it.
database/updates.inc
+
19
−
0
View file @
88723451
...
@@ -1954,3 +1954,22 @@ function system_update_179() {
...
@@ -1954,3 +1954,22 @@ function system_update_179() {
return
array
();
return
array
();
}
}
function
system_update_180
()
{
$ret
=
array
();
if
(
$GLOBALS
[
'db_type'
]
==
'mysql'
)
{
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node
}
DROP PRIMARY KEY"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node
}
ADD PRIMARY KEY (nid, vid)"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node
}
DROP INDEX vid"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node
}
ADD UNIQUE (vid)"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node
}
ADD INDEX (nid)"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
node_counter
}
CHANGE nid nid INT(10) NOT NULL DEFAULT '0'"
);
}
else
{
// pgsql
// Insert queries here.
}
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