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
bb2c1d5f
Commit
bb2c1d5f
authored
Jul 28, 2007
by
Nigel McNie
Browse files
Upgrade for email column in usr table moving to be a varchar. Typo fix in comment
parent
558d4d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
bb2c1d5f
...
@@ -260,9 +260,10 @@ function xmldb_core_upgrade($oldversion=0) {
...
@@ -260,9 +260,10 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql
(
"ALTER TABLE
{
$prefix
}
template ALTER COLUMN category TYPE varchar(128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
template ALTER COLUMN category TYPE varchar(128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
view ALTER COLUMN template TYPE varchar(128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
view ALTER COLUMN template TYPE varchar(128)"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
view_access ALTER COLUMN accesstype SET DEFAULT 'public'"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
view_access ALTER COLUMN accesstype SET DEFAULT 'public'"
);
execute_sql
(
"ALTER TABLE
{
$prefix
}
usr ALTER COLUMN email TYPE varchar(255)"
);
}
}
// everything up to here w
e
pre mysql support.
// everything up to here w
as
pre mysql support.
if
(
$oldversion
<
2007062000
)
{
if
(
$oldversion
<
2007062000
)
{
execute_sql
(
"INSERT INTO
{
$prefix
}
config (field, value) VALUES ('lang', (SELECT value FROM
{
$prefix
}
config WHERE field = 'language'))"
);
execute_sql
(
"INSERT INTO
{
$prefix
}
config (field, value) VALUES ('lang', (SELECT value FROM
{
$prefix
}
config WHERE field = 'language'))"
);
...
...
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