Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
739de1a4
Commit
739de1a4
authored
Apr 07, 2009
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mysql upgrade for files changes
parent
cfec3b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+6
-3
No files found.
htdocs/lib/db/upgrade.php
View file @
739de1a4
...
...
@@ -923,13 +923,16 @@ function xmldb_core_upgrade($oldversion=0) {
"
);
}
else
if
(
is_mysql
())
{
// NOT TESTED YET...
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP
FOREIGN KEY
arteblogblogfile_blo_
fk
"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP FOREIGN KEY
{
arteblogblogfile_blo_fk
}
"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP
INDEX
{
arteblogblogfile_blo_
ix
}
"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
CHANGE blogpost artefact BIGINT(10) DEFAULT NULL"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
ADD INDEX
{
artefact_attchment_art_ix
}
(artefact)"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
ADD FOREIGN KEY(artefact) REFERENCES
{
artefact
}
(id)"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP FOREIGN KEY arteblogblogfile_fil_fk"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP FOREIGN KEY
{
arteblogblogfile_fil_fk
}
"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
DROP INDEX
{
arteblogblogfile_fil_ix
}
"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
CHANGE file attachment BIGINT(10) DEFAULT NULL"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
ADD INDEX
{
artefact_attchment_att_ix
}
(attachment)"
);
execute_sql
(
"ALTER TABLE
{
artefact_attachment
}
ADD FOREIGN KEY(attachment) REFERENCES
{
artefact
}
(id)"
);
}
...
...
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