mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
c8e0b57900
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.
28 lines
734 B
SQL
28 lines
734 B
SQL
# $Id$
|
|
#
|
|
# Table structure for table blocks
|
|
#
|
|
|
|
CREATE TABLE prefix_block (
|
|
id SERIAL8 PRIMARY KEY,
|
|
name varchar(40) NOT NULL default '',
|
|
version INT8 NOT NULL default '0',
|
|
cron INT8 NOT NULL default '0',
|
|
lastcron INT8 NOT NULL default '0',
|
|
visible int NOT NULL default '1',
|
|
multiple int NOT NULL default '1'
|
|
) ;
|
|
|
|
CREATE TABLE prefix_block_instance (
|
|
id SERIAL8 PRIMARY KEY,
|
|
blockid INT8 not null default '0',
|
|
pageid INT8 not null default '0',
|
|
pagetype varchar(20) not null default '',
|
|
position varchar(10) not null default '',
|
|
weight int not null default '0',
|
|
visible int not null default '0',
|
|
configdata text not null default ''
|
|
) ;
|
|
|
|
# --------------------------------------------------------
|