661 Commits

Author SHA1 Message Date
skodak
365525fc51 Bug #6147 - Upgrade from 1.5.x breaks with Postgres 7.4.x
Even though Postgres 7.4.x is officially supported, several upgrade scripts use syntax that only works in Postgres 8.x. and it's impossible to finish the upgrade.

The attached patch fixes those scripts.

Saludos. I�aki.

Author: I�aki Arenaza
Review: Jun Yamog, Martin Langhoff

merged from MOODLE_16_STABLE
2006-07-31 17:54:32 +00:00
stronk7
3f5adc4af1 Keeping this in sync with 16_STABLE 2006-07-21 07:56:27 +00:00
martinlanghoff
cb6f407365 Course restore - Restrict shortname to <= 15 characters, like the database table.
Author: Donal McMullan <donal@catalyst.net.nz>
2006-07-18 03:35:02 +00:00
skodak
15a6cf334f Bug #6099 - Restore alternatively failing on data module - fixed status codes of module restore process; merged from MOODLE_16_STABLE 2006-07-13 15:38:03 +00:00
tjhunt
a36f058e53 Bug 6101 - Automatically scroll to any errors when upgrading the database. JavaScript thanks to Andrew Walker. PHP changes are my fault. 2006-07-13 09:48:56 +00:00
skodak
4e060ab972 Bug #6067 - The restore process behaves differently depending on which module contains the absolute links; merged from MOODLE_16_STABLE 2006-07-11 10:01:33 +00:00
tjhunt
ff1b2fadbe Fix restore notice. Merged from MOODLE_16_STABLE. 2006-06-12 15:37:05 +00:00
stronk7
5dd95d35e5 Due to one potential bug in PHP under Win32 (http://bugs.php.net/37775)
the [[cntrl]] pcre class was breaking some chars. Changed to a safer
alternative. Bug 5777.
(http://moodle.org/bugs/bug.php?op=show&bugid=5777)

Merged from MOODLE_16_STABLE
2006-06-10 23:33:49 +00:00
stronk7
cb27c4e823 Solve one issue with skipped courses and email to admin
being set every xx minutes. Bug 5621.
(http://moodle.org/bugs/bug.php?op=show&bugid=5621)

Merged from MOODLE_16_STABLE
2006-06-07 22:22:21 +00:00
tjhunt
f801c7e028 Fix notices when you restore a course with no parent or child courses. Merged from MOODLE_16_STABLE. 2006-06-06 17:27:15 +00:00
tjhunt
9aafe70227 Fix notice. Merged from MOODLE_16_STABLE. 2006-06-06 10:10:43 +00:00
stronk7
2efeb14832 course report xxxx actions now are supported on restore. Bug 5714.
(http://moodle.org/bugs/bug.php?op=show&bugid=5714)

Merged from MOODLE_16_STABLE
2006-06-04 00:03:12 +00:00
stronk7
410c459db0 And some more (the last) notices out! Bug 5713.
(http://moodle.org/bugs/bug.php?op=show&bugid=5713)

Merged from MOODLE_16_STABLE
2006-06-03 20:18:02 +00:00
stronk7
5f8556bcd5 And one more collection of innocent notices avoided. Bug 5712.
(http://moodle.org/bugs/bug.php?op=show&bugid=5712)

Merged from MOODLE_16_STABLE
2006-06-03 20:01:24 +00:00
stronk7
8812e31233 And another notice in restore out. Bug 5711.
(http://moodle.org/bugs/bug.php?op=show&bugid=5711)

Merged from MOODLE_16_STABLE
2006-06-03 19:51:28 +00:00
stronk7
0f4de002a2 One less notice. Bug 5710.
(http://moodle.org/bugs/bug.php?op=show&bugid=5710)

Merged from MOODLE_16_STABLE
2006-06-03 19:45:19 +00:00
stronk7
c1543b80e9 Avoid one notice in backup. Bug 5709.
(http://moodle.org/bugs/bug.php?op=show&bugid=5709&)

Merged from MOODLE_16_STABLE
2006-06-03 19:01:07 +00:00
stronk7
ae34cad5fd Users with messages (and messages) are only included in
SITEID backup. Bug 5658.
(http://moodle.org/bugs/bug.php?op=show&bugid=5658)

Merged from MOODLE_16_STABLE
2006-05-30 16:58:50 +00:00
stronk7
aca116d84e Bump equivalent to 1.6 2006-05-29 22:50:44 +00:00
stronk7
e8b8ab9f7b course_modules->deleted and user->guid are now out.
(they disappeared from DB ages ago)

Merged from MOODLE_16_STABLE
2006-05-23 22:06:58 +00:00
skodak
394832e100 fixed warning; merged from MOODLE_16_STABLE 2006-05-23 13:33:44 +00:00
stronk7
76046108e9 Ready to new functionalities...;-) 2006-05-20 00:11:30 +00:00
martinlanghoff
aec6df38ac moodle16cleanup: backup/ set the correct column datatype and default value 2006-05-17 06:36:14 +00:00
stronk7
543cd3e01d Fixing some non-production values I left after testing.
Thanks James!

Merged from MOODLE_16_STABLE
2006-05-03 22:05:59 +00:00
moodler
c4292470ba Add a warning when trying to restore a pre-1.6 backup on a
1.6 Unicode Moodle, with a link to the docs.
2006-05-03 02:00:32 +00:00
stronk7
10d89cf1d1 Now, hidden courses that haven't been modified in the last month
are skipped by the scheduled backup. Credit goes to James. Bug 4694.
(http://moodle.org/bugs/bug.php?op=show&bugid=4694)
2006-05-01 23:26:12 +00:00
stronk7
062a84a62a Columns cannot be null anymore. Bug 5343.
(http://moodle.org/bugs/bug.php?op=show&bugid=5343)

Please document it in coding guidelines!!!
2006-04-28 23:42:12 +00:00
stronk7
2ce22ad858 Bump to beta4! ;-) 2006-04-28 17:57:46 +00:00
toyomoyo
0327c40abb bug fix for 5303. hope i didn't break anything >_< 2006-04-28 03:18:56 +00:00
toyomoyo
cb24115c8e trying to change all the default NULL fields to NOT NULL default '0'/'', hope i didn't mess up. Please report any bugs asap! 2006-04-26 05:48:04 +00:00
stronk7
9fe25ab4f1 Diference between moodle.xml file not found and moodle.xml file
incorrect at restore time. Bug 5334.
(http://moodle.org/bugs/bug.php?op=show&bugid=5334)
2006-04-25 22:55:29 +00:00
mjollnir_
b8a25300b6 Fixing bug #5148: I don't know how this worked for restore and not for import, but it works for both now 2006-04-25 20:47:44 +00:00
toyomoyo
9a7f3cad99 fix for 5205 2006-04-24 02:20:06 +00:00
thepurpleblob
6c554ff60a Spurious database prefixes in front of index names removed. Bug #5282 2006-04-21 13:27:08 +00:00
toyomoyo
7d8b709473 oops 2006-04-21 07:52:30 +00:00
toyomoyo
34d495d1ba fix for bug 5205 2006-04-21 07:47:14 +00:00
stronk7
b0a8b898f9 Difference between copy, the verb and copy, the noun, because they
are different in a lot of languages. Bug 5172.
(http://moodle.org/bugs/bug.php?op=show&bugid=5172)
2006-04-12 21:53:45 +00:00
vyshane
63b816ab56 Added default values for not null columns in table creation sql 2006-04-12 08:44:59 +00:00
stronk7
23407fb76b htmlentities() to s() 2006-04-11 15:34:29 +00:00
stronk7
8d4ba8f0a5 Inform to the restore process that we are arriving from the form page. 2006-04-10 19:03:31 +00:00
stronk7
c3cb69e5f4 Now restore checks that we are coming from the form page to delete any
previously stored $SESSION->restore data.

Also, the "restore to existing" feature is working again. It was broken
because of the pseudo-register-globals hack. Now course_id is retrieved
with the standar param() methods.

Bug 5145 was the original cause for investingating this.
(http://moodle.org/bugs/bug.php?op=show&bugid=5145)
2006-04-10 19:02:39 +00:00
stronk7
6917949483 Deleting $SESSION structures before starting manual restore. 2006-04-10 18:34:37 +00:00
sam_marshall
bb2848749a Changing to use require_param meant that restore session was not cleared, causing a 2nd restore in succession of same backup to fail. One-line tweak fixes it - I think (I think it's ok but filed as bug 5145 so the appropriate person can check if I messed up) 2006-04-10 11:49:48 +00:00
stronk7
447ed99612 Bump! 2006-03-29 17:27:29 +00:00
nfreear
72a877f8c9 Bugtracker 5023, fixes 'Database upgrade issue: 'relation "backup_files_u" already exists in...' Added, {$CFG->prefix} 2006-03-29 11:33:59 +00:00
stronk7
2070370cfa Typo. 2006-03-28 23:31:12 +00:00
gustav_delius
9b908126b9 Bumped the backup version because I need this version in the question restore code. 2006-03-22 10:28:42 +00:00
gustav_delius
fe1106f0d1 Now the question backup code has been separated from the quiz backup code. 2006-03-21 16:50:42 +00:00
anthonyforth
88629fc419 Rename backup_ids_uk constraint to include prefix to allow easy installation of multiple instances from one database. 2006-03-21 10:31:28 +00:00
sam_marshall
f95310d224 Corrected line that would cause restore_create_modules to return True if the first module fails to restore, but the second succeeds. (Whereas it would already be False if the first succeeds, but second fails.) 2006-03-13 16:32:22 +00:00