Project

General

Profile

« Previous | Next » 

Revision 371

Added by Matthias almost 18 years ago

Fixed missing default values for INT fields in all system and modules tables (#329)

View differences:

install.php
28 28
	// Create table
29 29
	$database->query("DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_code`");
30 30
	$mod_code = 'CREATE TABLE `'.TABLE_PREFIX.'mod_code` ('
31
						  . ' `section_id` INT NOT NULL,'
32
						  . ' `page_id` INT NOT NULL,'
33
	                 . ' `content` TEXT NOT NULL DEFAULT \'\' ,'
34
	                 . ' PRIMARY KEY ( `section_id` ) )'
35
	                 . ' ';
31
		. ' `section_id` INT NOT NULL DEFAULT \'0\','
32
		. ' `page_id` INT NOT NULL DEFAULT \'0\','
33
		. ' `content` TEXT NOT NULL,'
34
		. ' PRIMARY KEY ( `section_id` )'
35
		. ' )';
36 36
	$database->query($mod_code);
37 37
	
38 38
	// Insert info into the search table

Also available in: Unified diff