0f3fe4b6ad
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 :-)
16 lines
456 B
SQL
16 lines
456 B
SQL
# $Id$
|
|
#
|
|
# Table structure for table `blocks`
|
|
#
|
|
|
|
CREATE TABLE `prefix_blocks` (
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
`name` varchar(40) NOT NULL default '',
|
|
`version` int(10) NOT NULL default '0',
|
|
`cron` int(10) unsigned NOT NULL default '0',
|
|
`lastcron` int(10) unsigned NOT NULL default '0',
|
|
`visible` tinyint(1) NOT NULL default '1',
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=MyISAM;
|
|
# --------------------------------------------------------
|