当前位置: 首页>>代码示例>>PHP>>正文


PHP AddColumn函数代码示例

本文整理汇总了PHP中AddColumn函数的典型用法代码示例。如果您正苦于以下问题:PHP AddColumn函数的具体用法?PHP AddColumn怎么用?PHP AddColumn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了AddColumn函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AddColumn

<?php

/* Include the new script for printing quotations in Portrait
 */
AddColumn('pagewidth', 'labels', 'float', 'NOT NULL', '0', 'description', $db);
AddColumn('pageheight', 'labels', 'float', 'NOT NULL', '0', 'pagewidth', $db);
DropColumn('papersize', 'labels', $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:8,代码来源:131.php

示例2: AddColumn

<?php

/* Add input date to transaction tables so that transactions can be
 * reported on by their input date
 */
AddColumn('inputdate', 'supptrans', 'datetime', 'NOT NULL', '0000-00-00', 'duedate', $db);
AddColumn('inputdate', 'debtortrans', 'datetime', 'NOT NULL', '0000-00-00', 'trandate', $db);
UpdateDBNo(16, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:8,代码来源:16.php

示例3: AddColumn

<?php

AddColumn('userid', 'banktrans', 'varchar(20)', 'NOT NULL', '', 'currcode', $db);
UpdateDBNo(106, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:4,代码来源:106.php

示例4: AddColumn

<?php

AddColumn('parentarea', 'areas', 'CHAR( 3 )', 'NOT NULL', '', 'areacode', $db);
AddColumn('salesarea', 'salesman', 'CHAR( 3 )', 'NOT NULL', '', 'salesmanname', $db);
AddColumn('manager', 'salesman', 'INT( 1 )', 'NOT NULL', '0', 'salesarea', $db);
AddConstraint('salesman', 'fk_salesman_1', 'salesarea', 'areas', 'areacode', $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:rrsc,项目名称:KwaMoja,代码行数:7,代码来源:61.php

示例5: AddColumn

<?php

AddColumn('itemdue', 'salesorderdetails', 'DATE', 'NOT NULL', "0000-00-00", 'narrative', $db);
AddColumn('poline', 'salesorderdetails', 'VARCHAR(10)', 'NOT NULL', '', 'itemdue', $db);
AddColumn('customerpoline', 'debtorsmaster', 'TinyInt(1)', 'NOT NULL', "0", 'taxref', $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:rrsc,项目名称:KwaMoja,代码行数:6,代码来源:8.php

示例6: AddColumn

<?php

/* Mods to select fixed asset for disposal
 */
AddColumn('disposaldate', 'fixedassets', 'date', 'NOT NULL', '0000-00-00', 'barcode', $db);
ChangeColumnName('disposalvalue', 'fixedassets', 'double', 'NOT NULL', 0.0, 'disposalproceeds', $db);
UpdateDBNo(48, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:7,代码来源:48.php

示例7: AddColumn

<?php

AddColumn('chequeno', 'banktrans', 'int( 11 )', 'NOT NULL', '0', 'ref', $db);
UpdateDBNo(88, $db);
开发者ID:patmark,项目名称:weberp-elct,代码行数:4,代码来源:88.php

示例8: ChangeColumnType

<?php

ChangeColumnType('area', 'custbranch', 'CHAR(3)', 'NOT NULL', '', $db);
AddColumn('specialinstructions', 'custbranch', 'TEXT', 'NOT NULL', '', 'brpostaddr6', $db);
AddColumn('parentgroupname', 'accountgroups', 'VARCHAR(30)', 'NOT NULL', '', 'sequenceintb', $db);
DropTable('worksorders', 'accumvalueissued', $db);
CreateTable('workorders', "CREATE TABLE `workorders` (\n  wo int(11) NOT NULL,\n  loccode char(5) NOT NULL default '',\n  requiredby date NOT NULL default '0000-00-00',\n  startdate date NOT NULL default '0000-00-00',\n  costissued double NOT NULL default '0',\n  closed tinyint(4) NOT NULL default '0',\n  PRIMARY KEY  (`wo`),\n  KEY LocCode (`loccode`),\n  KEY StartDate (`startdate`),\n  KEY RequiredBy (`requiredby`)\n)", $db);
AddConstraint('workorders', 'workorders_ibfk_1', 'loccode', 'locations', 'loccode', $db);
CreateTable('woitems', "CREATE TABLE `woitems` (\n  wo int(11) NOT NULL,\n  stockid char(20) NOT NULL default '',\n  qtyreqd double NOT NULL DEFAULT 1,\n  qtyrecd double NOT NULL DEFAULT 0,\n  stdcost double NOT NULL,\n  nextlotsnref varchar(20) DEFAULT '',\n  PRIMARY KEY  (`wo`, `stockid`),\n  KEY `stockid` (`stockid`)\n)", $db);
AddConstraint('woitems', 'woitems_ibfk_1', 'stockid', 'stockmaster', 'stockid', $db);
AddConstraint('woitems', 'woitems_ibfk_2', 'wo', 'workorders', 'wo', $db);
CreateTable('worequirements', "CREATE TABLE `worequirements` (\n  wo int(11) NOT NULL,\n  parentstockid varchar(20) NOT NULL,\n  stockid varchar(20) NOT NULL,\n  qtypu double NOT NULL DEFAULT 1,\n  stdcost double NOT NULL DEFAULT 0,\n  autoissue tinyint NOT NULL DEFAULT 0,\n   PRIMARY KEY  (`wo`, `parentstockid`,`stockid`)\n)", $db);
AddConstraint('worequirements', 'worequirements_ibfk_1', 'wo', 'workorders', 'wo', $db);
AddConstraint('worequirements', 'worequirements_ibfk_2', 'stockid', 'stockmaster', 'stockid', $db);
AddConstraint('worequirements', 'worequirements_ibfk_3', 'parentstockid', 'woitems', 'stockid', $db);
AddColumn('autoissue', 'bom', 'TINYINT', 'NOT NULL', '0', 'quantity', $db);
NewConfigValue('AutoIssue', '1', $db);
DropIndex('stockmoves', 'StockID', $db);
AddIndex(array('reference'), 'stockmoves', 'stockmoves', $db);
DropPrimaryKey('recurrsalesorderdetails', array('recurrorderno', 'stkcode'), $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:rrsc,项目名称:KwaMoja,代码行数:21,代码来源:6.php

示例9: AddColumn

    AddColumn($db, "menu", "NoFollow", "TINYINT( 1 )");
    AddColumn($db, "departments", "header", "TEXT");
    AddColumn($db, "departments", "footer", "TEXT");
    AddColumn($db, "departments", "logo_file", "VARCHAR( 50 )");
    AddColumn($db, "departments", "photo_file", "VARCHAR( 50 )");
    AddColumn($db, "departments", "subdomena", "VARCHAR( 30 )");
    AddColumn($db, "departments", "organization_id", "INT NULL");
    AddColumn($db, "departments", "name2", "VARCHAR( 255 )");
    AddColumn($db, "agents", "comunicators", "VARCHAR( 500 )");
    AddColumn($db, "agents", "photo_file", "VARCHAR( 50 )");
    AddColumn($db, "agents", "agents_code", "INT");
    AddColumn($db, "agents", "section", "VARCHAR( 50 )");
    AddColumn($db, "artykuly", "galerie_GID", "INT NULL");
    AddIndex($db, "artykuly", "galerie_GID", '`galerie_GID`');
    AddColumn($db, "galerie", "Rozmiar1", "VARCHAR( 9 )");
    AddColumn($db, "galerie", "Rozmiar2", "VARCHAR( 9 )");
    AddColumn($db, "galerie", "Rozmiar3", "VARCHAR( 9 )");
    AddColumn($db, "artykuly", "Tagi", "VARCHAR( 500 )");
    AddColumn($db, "artykuly", "DataRozpoczeciaPublikacji", "VARCHAR( 500 )");
    AddColumn($db, "galeriepozycje", "Tagi", "VARCHAR( 500 )");
    $sql = "CREATE TABLE IF NOT EXISTS `osoby` (\r\n            `id` INT NOT NULL ,\r\n            `name` VARCHAR(50) NULL  ,\r\n            `last_name` VARCHAR(50) NULL  ,\r\n            `email` VARCHAR(50) NULL  ,\r\n            `phone` VARCHAR(20) NULL  ,\r\n            `login` VARCHAR(100) NULL  ,\r\n            `pwd` VARCHAR(100) NULL  ,\r\n            `registration_date` DATE NULL ,\r\n            `user_id` INT NULL ,\r\n            PRIMARY KEY ( `id`)\r\n            ) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci";
    $result = $db->ExecuteQuery($sql);
    echo "Creating table osoby: OK<br />";
    if ($db->LastError() != '') {
        throw new Exception("table osoby:" . $db->LastError());
    }
    echo "<h4>Updating web_api database complete.</h4>";
} catch (Exception $ex) {
    echo "Execution error:<br />" . $ex->getMessage();
    echo "<h4>Installing database failed. Check configuration (config.php file) and try again. If the problem persists, please contact with us.</h4>";
}
开发者ID:uirapuru,项目名称:virgoapi,代码行数:31,代码来源:update_db.php

示例10: AddColumn

<?php

AddColumn('chequeno', 'banktrans', 'INT(11)', 'NOT NULL', 0, 'ref', $db);
ChangeColumnType('chequeno', 'banktrans', 'VARCHAR(20)', 'NOT NULL', '', $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:rrsc,项目名称:KwaMoja,代码行数:5,代码来源:29.php

示例11: AddColumn

<?php

AddColumn('closed', 'tenders', 'int(2)', 'NOT NULL', '0', 'telephone', $db);
AddColumn('requiredbydate', 'tenders', 'datetime', 'NOT NULL', '0000-00-00', 'closed', $db);
UpdateDBNo(71, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:5,代码来源:71.php

示例12: AddColumn

<?php

/* Add extra columns for supplier head office details
 */
AddColumn('email', 'suppliers', 'varchar(55)', 'NOT NULL', '', 'port', $db);
AddColumn('fax', 'suppliers', 'varchar(25)', 'NOT NULL', '', 'email', $db);
AddColumn('telephone', 'suppliers', 'varchar(25)', 'NOT NULL', '', 'fax', $db);
UpdateDBNo(22, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:8,代码来源:22.php

示例13: AddColumn

<?php

/* Include the new script for printing quotations in Portrait
 */
AddColumn('issueglact', 'stockcategory', 'INT( 11 )', 'not null', 0, 'adjglact', $db);
$sql = "UPDATE stockcategory\n\t\t\tSET issueglact=adjglact";
$result = DB_query($sql, $db);
UpdateDBNo(111, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:8,代码来源:111.php

示例14: AddColumn

<?php

/* Add extra columns to reports
 */
for ($i = 9; $i <= 20; $i++) {
    AddColumn('col' . $i . 'width', 'reports', 'int(3)', 'NOT NULL', '25', 'col' . ($i - 1) . 'width', $db);
}
UpdateDBNo(39, $db);
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:8,代码来源:39.php

示例15: AddColumn

<?php

AddColumn('userid', 'stockrequest', 'VARCHAR( 20 )', 'NOT NULL', '', 'dispatchid', $db);
NewMenuItem('stock', 'Transactions', _('Amend an internal stock request'), '/InternalStockRequest.php?Edit=Yes', 11, $db);
UpdateDBNo(basename(__FILE__, '.php'), $db);
开发者ID:rrsc,项目名称:KwaMoja,代码行数:5,代码来源:73.php


注:本文中的AddColumn函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。