35 Commits

Author SHA1 Message Date
stronk7
388e9ab212 One more FK in blocks system. 2006-08-09 11:56:02 +00:00
stronk7
158c1b3035 Initial commit of blocks XMLDB schema 2006-08-07 18:30:46 +00:00
toyomoyo
e3cfd5d717 merged fix for 5748 2006-06-08 04:08:04 +00:00
toyomoyo
98ae4e63da block unicode migration bugs 2006-04-18 06:17:30 +00:00
vyshane
ab6d44896a Added default value for not null. 2006-04-13 02:55:27 +00:00
vyshane
4b10570aef Added default value for enum that has been defined as not null. 2006-04-12 09:01:07 +00:00
mjollnir_
fa10cafe61 Fixing blocks upgrade in postgres (my fault) 2006-03-27 04:03:19 +00:00
patrickslee
cb8229d0a8 UTF8 migration - now supporting PostgreSQL 2006-03-10 03:43:33 +00:00
skodak
38b7336ed1 short php tags 2006-03-07 21:35:13 +00:00
toyomoyo
f841494c62 see changes for admin/utfdbmigrate.php 2006-02-24 08:20:13 +00:00
toyomoyo
a9149e77e4 bug fix for 4742 2006-02-14 02:35:11 +00:00
toyomoyo
1c8510355f adding index pagetype to block_pinned to make it consistent 2006-02-14 02:34:37 +00:00
moodler
136b6ab33f changed to use utfconvert function 2006-01-31 02:15:21 +00:00
moodler
052dec9a2c adding more cases for serialized blocks 2006-01-25 06:10:18 +00:00
moodler
0046e5a0d9 adding code to migrate serialized html blocks 2006-01-20 03:43:38 +00:00
toyomoyo
153185152a adding new field and bug fix 2006-01-11 03:05:34 +00:00
toyomoyo
fb7b685530 adding utf8 support scripts 2006-01-09 06:12:18 +00:00
mjollnir_
c69dbe691e Merged from MOODLE_15_STABLE: (ish, version numbers different): Add an index where we really need it - block_instance.pagetype 2005-09-02 05:00:59 +00:00
martinlanghoff
af08f72b3d Merged from MOODLE_15_STABLE - Blocks upgrade - reduce memory consumption by a few GB and (postgres only) halve database traffic. 2005-08-18 00:04:02 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
patrickslee
4e980e5a92 Mass cleanup of bad postgres upgrade scripts(merged from 15_stable) 2005-08-15 23:17:58 +00:00
patrickslee
dbbbb588a3 Fixed a bug in postgres block upgrade script messing up with block ids (Merged from 15_STABLE) 2005-08-10 05:31:46 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
defacer
1654796815 The final touch for block robustness: when upgrading from 1.4, intercept
and disable any incompatible blocks. Print a notice too.

These blocks won't ever be displayed because they are hidden, and the admin
cannot even unhide them until they are fixed because the blocks admin page
won't list them (it will emit a notice instead). Case closed.
2005-04-30 03:25:28 +00:00
defacer
658f6a9ce3 Fix for bug 2711:
Blocks upgrade no longer breaks in Postgres. Also, a "hell why not"
robustness addition to the MySQL upgrade.
2005-03-10 22:48:29 +00:00
mjollnir_
1e62c63b3f Fix for bug 2660 - postgres upgrade breaking mdl_block sequence 2005-03-01 23:39:56 +00:00
defacer
c903f9b076 Fix for bug 2627 (which was real and not a duplicate). 2005-02-24 04:26:33 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
defacer
c8e0b57900 Pages/blocks code updates:
NEW: The code now supports dynamically plugging your own Pages and block position
identifiers into Moodle without messing with the main libraries at all.

UPDATE: Many functions in blocklib now use pass-by-reference for speed.

UPDATE: Class MoodlePage has been made more presentable and robust.
2004-11-12 18:39:25 +00:00
defacer
681ad23b3d Bugfix: The table prefix_block in blocks/db/postgres7.sql was incorrectly constructed as prefix_block.
Thanks to Penny Leach for pointing it out.
2004-11-08 19:18:19 +00:00
paca70
1b2a38043b Theres no enums in postgresql 7.x. Fix for this. 2004-10-31 14:36:35 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
moodler
e02c35b2ae Merged block upgrade fix from stable 2004-08-30 16:26:00 +00:00
paca70
ce24161b7e First versions for postgressql 2004-04-19 04:15:24 +00:00
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00