Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443488
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-3443488
Commits
e7ca0fe5
Commit
e7ca0fe5
authored
18 years ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
#93506
by sammys. Postgres needs a different column type for source and target.
parent
83f4d886
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/locale/locale.install
+6
-2
6 additions, 2 deletions
modules/locale/locale.install
with
6 additions
and
2 deletions
modules/locale/locale.install
+
6
−
2
View file @
e7ca0fe5
...
...
@@ -5,6 +5,9 @@
* Implementation of hook_install().
*/
function
locale_install
()
{
// locales_source.source and locales_target.target are not used as binary
// fields; non-MySQL database servers need to ensure the field type is text
// and that LIKE produces a case-sensitive comparison.
switch
(
$GLOBALS
[
'db_type'
])
{
case
'mysql'
:
case
'mysqli'
:
...
...
@@ -38,6 +41,7 @@ function locale_install() {
KEY plural (plural)
) /*!40100 DEFAULT CHARACTER SET UTF8 */ "
);
break
;
case
'pgsql'
:
db_query
(
"CREATE TABLE
{
locales_meta
}
(
locale varchar(12) NOT NULL default '',
...
...
@@ -52,13 +56,13 @@ function locale_install() {
db_query
(
"CREATE TABLE
{
locales_source
}
(
lid serial,
location varchar(255) NOT NULL default '',
source
bytea
NOT NULL,
source
text
NOT NULL,
PRIMARY KEY (lid)
)"
);
db_query
(
"CREATE TABLE
{
locales_target
}
(
lid int NOT NULL default '0',
translation
bytea
NOT NULL,
translation
text
NOT NULL,
locale varchar(12) NOT NULL default '',
plid int NOT NULL default '0',
plural int NOT NULL default '0'
...
...
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