execute_sql(" ALTER TABLE {$CFG->prefix}quiz ADD timelimit INT(2) UNSIGNED DEFAULT '0' NOT NULL ");
}
+ if ($oldversion < 2004070700) {
+ table_column("quiz", "", "password", "varchar", "255", "", "", "not null", "");
+ table_column("quiz", "", "subnet", "varchar", "255", "", "", "not null", "");
+ }
+
return true;
}
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`timelimit` int(2) unsigned NOT NULL default '0',
+ `password` varchar(255) NOT NULL default '',
+ `subnet` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Main information about each quiz';
# --------------------------------------------------------
execute_sql(" ALTER TABLE {$CFG->prefix}quiz ADD timelimit integer DEFAULT '0' NOT NULL ");
}
+ if ($oldversion < 2004070700) {
+ table_column("quiz", "", "password", "varchar", "255", "", "", "not null", "");
+ table_column("quiz", "", "subnet", "varchar", "255", "", "", "not null", "");
+ }
+
return true;
}
grade integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
- timelimit integer NOT NULL default '0'
+ timelimit integer NOT NULL default '0',
+ password varchar(255) NOT NULL default '',
+ subnet varchar(255) NOT NULL default ''
);
# --------------------------------------------------------
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2004060400; // The (date) version of this module
+$module->version = 2004070700; // The (date) version of this module
$module->requires = 2004060200; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?