Revision 131
Added by ryan about 19 years ago
save.php | ||
---|---|---|
493 | 493 |
. ' '; |
494 | 494 |
$database->query($search); |
495 | 495 |
|
496 |
// Modules table |
|
497 |
$modules = 'CREATE TABLE `'.TABLE_PREFIX.'modules` ( ' |
|
498 |
.'`id` INT NOT NULL auto_increment ,' |
|
496 |
// Addons table |
|
497 |
$modules = 'CREATE TABLE `'.TABLE_PREFIX.'addons` ( ' |
|
498 |
.'`addon_id` INT NOT NULL auto_increment ,' |
|
499 |
.'`directory` VARCHAR( 255 ) NOT NULL ,' |
|
499 | 500 |
.'`name` VARCHAR( 255 ) NOT NULL ,' |
501 |
.'`description` TEXT NOT NULL ,' |
|
500 | 502 |
.'`type` VARCHAR( 255 ) NOT NULL ,' |
501 |
.'`directory` VARCHAR( 255 ) NOT NULL ,' |
|
502 |
.' PRIMARY KEY ( `id` ) ); '; |
|
503 |
|
|
503 |
.'`function` VARCHAR( 255 ) NOT NULL ,' |
|
504 |
.'`version` VARCHAR( 255 ) NOT NULL ,' |
|
505 |
.'`designed_for` VARCHAR( 255 ) NOT NULL ,' |
|
506 |
.'`author` VARCHAR( 255 ) NOT NULL ,' |
|
507 |
.'`license` VARCHAR( 255 ) NOT NULL ,' |
|
508 |
.' PRIMARY KEY ( `addon_id` ) ); '; |
|
504 | 509 |
$database->query($modules); |
505 | 510 |
|
506 | 511 |
$search = 'CREATE TABLE `'.TABLE_PREFIX.'modules` ( ' |
Also available in: Unified diff
Added addons table