Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
226
Merge Requests
226
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
8a0a50d3
Commit
8a0a50d3
authored
Apr 13, 2006
by
Gerhard Killesreiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#58113
, error on install with postgresql7.3.10, patch by Cvbge
parent
cdbf7b40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
database/database.pgsql
database/database.pgsql
+8
-8
scripts/prefix.sh
scripts/prefix.sh
+1
-0
No files found.
database/database.pgsql
View file @
8a0a50d3
...
...
@@ -390,8 +390,9 @@ CREATE INDEX locales_target_plural_idx ON locales_target(plural);
--
CREATE SEQUENCE menu_mid_seq START 2;
CREATE TABLE menu (
mid
serial
,
mid
integer NOT NULL DEFAULT nextval('menu_mid_seq')
,
pid integer NOT NULL default '0',
path varchar(255) NOT NULL default '',
title varchar(255) NOT NULL default '',
...
...
@@ -868,15 +869,10 @@ INSERT INTO locales_meta (locale, name, enabled, isdefault) VALUES ('en', 'Engli
INSERT INTO variable (name, value) VALUES ('node_options_forum', 'a:1:{i:0;s:6:"status";}');
INSERT INTO menu
VALUES (2,
0, '', 'Primary links', '', 0, 115);
INSERT INTO menu
(pid, path, title, description, weight, type) VALUES (
0, '', 'Primary links', '', 0, 115);
INSERT INTO variable VALUES ('menu_primary_menu', 'i:2;');
INSERT INTO variable VALUES ('menu_secondary_menu', 'i:2;');
---
--- Alter some sequences
---
ALTER SEQUENCE menu_mid_seq RESTART 3;
---
--- Functions
---
...
...
@@ -900,7 +896,11 @@ CREATE OR REPLACE FUNCTION "concat"(text, text) RETURNS text AS '
SELECT $1 || $2;
' LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION "if"(boolean, anyelement, anyelement) RETURNS anyelement AS '
CREATE OR REPLACE FUNCTION "if"(boolean, text, text) RETURNS text AS '
SELECT CASE WHEN $1 THEN $2 ELSE $3 END;
' LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION "if"(boolean, integer, integer) RETURNS integer AS '
SELECT CASE WHEN $1 THEN $2 ELSE $3 END;
' LANGUAGE 'sql';
scripts/prefix.sh
View file @
8a0a50d3
...
...
@@ -25,5 +25,6 @@
s/^CREATE UNIQUE INDEX
\(
.*
\)
ON /CREATE UNIQUE INDEX
$PREFIX
\\
1 ON
$PREFIX
/;
s/^UPDATE
\(
.*
\)
SET /UPDATE
$PREFIX
\\
1 SET /;
s/^DROP TABLE IF EXISTS /DROP TABLE IF EXISTS
$PREFIX
/;
s/ DEFAULT nextval('/ DEFAULT nextval('
$PREFIX
/;
"
$2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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