Project

General

Profile

« Previous | Next » 

Revision 180

Added by ryan about 19 years ago

Removed modules-table code

View differences:

trunk/wb/install/save.php
342 342
	// Search table
343 343
	$search = "DROP TABLE IF EXISTS `".TABLE_PREFIX."search`";
344 344
	$database->query($search);
345
	// Modules table
346
	$modules = "DROP TABLE IF EXISTS `".TABLE_PREFIX."modules`";
347
	$database->query($modules);
345
	// Addons table
346
	$addons = "DROP TABLE IF EXISTS `".TABLE_PREFIX."addons`";
347
	$database->query($addons);
348 348
				
349 349
	// Try installing tables
350 350
	
......
477 477
	
478 478
	// Addons table
479 479
	$addons = 'CREATE TABLE `'.TABLE_PREFIX.'addons` ( '
480
	.'`addon_id` INT NOT NULL auto_increment ,'
481
	.'`type` VARCHAR( 255 ) NOT NULL ,'
482
	.'`directory` VARCHAR( 255 ) NOT NULL ,'
483
	.'`name` VARCHAR( 255 ) NOT NULL ,'
484
	.'`description` TEXT NOT NULL ,'
485
	.'`function` VARCHAR( 255 ) NOT NULL ,'
486
	.'`version` VARCHAR( 255 ) NOT NULL ,'
487
	.'`platform` VARCHAR( 255 ) NOT NULL ,'
488
	.'`author` VARCHAR( 255 ) NOT NULL ,'
489
	.'`license` VARCHAR( 255 ) NOT NULL ,'
490
	.' PRIMARY KEY ( `addon_id` ) ); ';
480
			.'`addon_id` INT NOT NULL auto_increment ,'
481
			.'`type` VARCHAR( 255 ) NOT NULL ,'
482
			.'`directory` VARCHAR( 255 ) NOT NULL ,'
483
			.'`name` VARCHAR( 255 ) NOT NULL ,'
484
			.'`description` TEXT NOT NULL ,'
485
			.'`function` VARCHAR( 255 ) NOT NULL ,'
486
			.'`version` VARCHAR( 255 ) NOT NULL ,'
487
			.'`platform` VARCHAR( 255 ) NOT NULL ,'
488
			.'`author` VARCHAR( 255 ) NOT NULL ,'
489
			.'`license` VARCHAR( 255 ) NOT NULL ,'
490
			.' PRIMARY KEY ( `addon_id` ) ); ';
491 491
	$database->query($addons);
492 492

  
493
	$search = 'CREATE TABLE `'.TABLE_PREFIX.'modules` ( '
494
	        . ' `name` VARCHAR( 255 ) NOT NULL ,'
495
	        . ' `type` VARCHAR( 255 ) NOT NULL ,'
496
	        . ' PRIMARY KEY ( `name` ) )'
497
	        . ' ';
498
	$database->query($search);
499

  
500

  
501 493
	// Insert default data
502 494
	
503 495
	// Admin group

Also available in: Unified diff