Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6a85cc8f
Commit
6a85cc8f
authored
Aug 07, 2007
by
Nigel McNie
Browse files
Correct the name of an index incorrectly named in an upgrade
parent
ca744398
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
6a85cc8f
...
@@ -251,7 +251,7 @@ function xmldb_core_upgrade($oldversion=0) {
...
@@ -251,7 +251,7 @@ function xmldb_core_upgrade($oldversion=0) {
// migrate everything we had to change to make mysql happy
// migrate everything we had to change to make mysql happy
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron DROP CONSTRAINT
{
$prefix
}
cron_cal_pk"
);
// can't drop primary keys using xmldb...
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron DROP CONSTRAINT
{
$prefix
}
cron_cal_pk"
);
// can't drop primary keys using xmldb...
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron ADD CONSTRAINT
{
$prefix
}
cron_id_pk PRIMARY KEY (id)"
);
// or add them!
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron ADD CONSTRAINT
{
$prefix
}
cron_id_pk PRIMARY KEY (id)"
);
// or add them!
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron ADD CONSTRAINT
{
$prefix
}
cron_cal_u
ix
UNIQUE (callfunction)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
cron ADD CONSTRAINT
{
$prefix
}
cron_cal_u
k
UNIQUE (callfunction)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
community ALTER COLUMN name TYPE varchar (128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
community ALTER COLUMN name TYPE varchar (128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
usr_activity_preference ALTER COLUMN method TYPE varchar(255)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
usr_activity_preference ALTER COLUMN method TYPE varchar(255)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
template_category ALTER COLUMN name TYPE varchar(128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
template_category ALTER COLUMN name TYPE varchar(128)"
);
...
...
Write
Preview
Supports
Markdown
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