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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
46fee741
Commit
46fee741
authored
19 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#37589
by Cvgbe: make prefix.sh work with PostgreSQL: prefix indices properly.
parent
ad74b700
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
database/database.pgsql
+1
-1
1 addition, 1 deletion
database/database.pgsql
database/updates.inc
+1
-1
1 addition, 1 deletion
database/updates.inc
scripts/prefix.sh
+8
-8
8 additions, 8 deletions
scripts/prefix.sh
with
10 additions
and
10 deletions
database/database.pgsql
+
1
−
1
View file @
46fee741
...
...
@@ -580,7 +580,7 @@ CREATE TABLE search_dataset (
type varchar(16) default NULL,
data text NOT NULL default ''
);
CREATE INDEX search_dataset_sid_type_idx
on
search_dataset(sid, type);
CREATE INDEX search_dataset_sid_type_idx
ON
search_dataset(sid, type);
--
-- Table structure for search_index
...
...
This diff is collapsed.
Click to expand it.
database/updates.inc
+
1
−
1
View file @
46fee741
...
...
@@ -1005,7 +1005,7 @@ function update_150() {
sid integer NOT NULL default '0',
type varchar(16) default NULL,
data text NOT NULL default '')"
);
$ret
[]
=
update_sql
(
"CREATE INDEX
{
search_dataset
}
_sid_type_idx
on
{
search_dataset
}
(sid, type)"
);
$ret
[]
=
update_sql
(
"CREATE INDEX
{
search_dataset
}
_sid_type_idx
ON
{
search_dataset
}
(sid, type)"
);
$ret
[]
=
update_sql
(
"CREATE TABLE
{
search_index
}
(
word varchar(50) NOT NULL default '',
...
...
This diff is collapsed.
Click to expand it.
scripts/prefix.sh
+
8
−
8
View file @
46fee741
...
...
@@ -14,13 +14,13 @@
exit
1
;
fi
PR
F
X
=
$1
;
sed
"s/^CREATE TABLE /CREATE TABLE
$PR
F
X
/;
s/^INSERT INTO /INSERT INTO
$PR
F
X
/;
s/^REPLACE /REPLACE
$PR
F
X
/;
s/^ALTER TABLE /ALTER TABLE
$PR
F
X
/;
s/^CREATE SEQUENCE /CREATE SEQUENCE
$PR
F
X
/;
s/^ALTER SEQUENCE /ALTER SEQUENCE
$PR
F
X
/;
s/^CREATE INDEX
\(
.*
\)
ON /CREATE INDEX
\\
1 ON
$PR
F
X
/;
PR
EFI
X
=
$1
;
sed
"s/^CREATE TABLE /CREATE TABLE
$PR
EFI
X
/;
s/^INSERT INTO /INSERT INTO
$PR
EFI
X
/;
s/^REPLACE /REPLACE
$PR
EFI
X
/;
s/^ALTER TABLE /ALTER TABLE
$PR
EFI
X
/;
s/^CREATE SEQUENCE /CREATE SEQUENCE
$PR
EFI
X
/;
s/^ALTER SEQUENCE /ALTER SEQUENCE
$PR
EFI
X
/;
s/^CREATE INDEX
\(
.*
\)
ON /CREATE INDEX
$PREFIX
\\
1 ON
$PR
EFI
X
/;
"
$2
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