Changeset 508


Ignore:
Timestamp:
02/22/06 00:25:04 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2005-01-19 06:14:12 by anarcat]
add a default entry and comment for 'hosting_tld' so that it can be
configured through adm_variables.php

Original author: anarcat
Date: 2005-01-19 06:14:16

Location:
install/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • install/scripts/mysql.sql

    r498 r508  
    11# 
    2 # $Id: mysql.sql,v 1.30 2005/01/18 22:18:57 anarcat Exp $ 
     2# $Id: mysql.sql,v 1.31 2005/01/19 06:14:16 anarcat Exp $ 
    33# ---------------------------------------------------------------------- 
    44# AlternC - Web Hosting System 
     
    378378-- Taken from http://cvs.drupal.org/viewcvs/drupal/drupal/database/database.mysql?rev=1.164&view=auto 
    379379-- 
    380  
     380-- if comment is null, then the variable is internal and will not show 
     381-- up in the generic configuration panel 
    381382CREATE TABLE variable ( 
    382383  name varchar(48) NOT NULL default '', 
    383384  value longtext NOT NULL, 
    384   PRIMARY KEY  (name) 
    385 ) TYPE=MyISAM; 
     385  comment mediumtext NULL, 
     386  PRIMARY KEY  (name), 
     387  KEY name (name) 
     388) TYPE=MyISAM; 
     389 
     390-- hosting_tld: only used, for now, in bureau/admin/adm_*add.php 
     391INSERT INTO `variable` (name, value, comment) VALUES ('hosting_tld', 0, 
     392'This is a FQDN that designates the main hostname of the service. 
     393 
     394For example, hosting_tld determines in what TLD the "free" user domain 
     395is created. If this is set to "example.com", a checkbox will appear in 
     396the user creation dialog requesting the creator if he wants to create 
     397the domain "username.example.com". 
     398 
     399If this is set to 0 or a "false" string, it will be ignored.'); 
  • install/scripts/upgrades/0.9.3.sql

    r500 r508  
    88 
    99-- add the new variable table 
     10-- 
     11-- if comment is null, then the variable is internal and will not show 
     12-- up in the generic configuration panel 
    1013CREATE TABLE variable ( 
    1114  name varchar(48) NOT NULL default '', 
    1215  value longtext NOT NULL, 
    13   PRIMARY KEY  (name) 
     16  comment mediumtext NULL, 
     17  PRIMARY KEY  (name), 
     18  KEY name (name) 
    1419) TYPE=MyISAM; 
     20 
     21-- hosting_tld: only used, for now, in bureau/admin/adm_*add.php 
     22INSERT INTO `variable` (name, value, comment) VALUES ('hosting_tld', 0, 
     23'This is a FQDN that designates the main hostname of the service. 
     24 
     25For example, hosting_tld determines in what TLD the "free" user domain 
     26is created. If this is set to "example.com", a checkbox will appear in 
     27the user creation dialog requesting the creator if he wants to create 
     28the domain "username.example.com". 
     29 
     30If this is set to 0 or a "false" string, it will be ignored.'); 
    1531 
    1632USE mysql; 
Note: See TracChangeset for help on using the changeset viewer.