Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.98 KB | None | 0 0
  1. INSERT INTO `vtiger_field` (`tabid`, `fieldid`, `columnname`, `tablename`, `generatedtype`, `uitype`, `fieldname`, `fieldlabel`, `readonly`, `presence`, `defaultvalue`, `maximumlength`, `sequence`, `block`, `displaytype`, `typeofdata`, `quickcreate`, `quickcreatesequence`, `info_type`, `masseditable`, `helpinfo`, `summaryfield`, `headerfield`, `isunique`)
  2. VALUES
  3.     (8, 2106, 'document_status', 'vtiger_notescf', 2, '16', 'document_status', 'Document Status', 1, 2, 'New', 100, 16, 17, 1, 'V~O', 1, 0, 'BAS', 1, '', 0, 0, 0);
  4.  
  5. ALTER TABLE vtiger_notescf ADD COLUMN document_status VARCHAR(255)
  6.  
  7. INSERT INTO `vtiger_def_org_field` (`tabid`, `fieldid`, `visible`, `readonly`)
  8. VALUES
  9.     (8, 2106, 0, 0);
  10.  
  11. INSERT INTO `vtiger_profile2field` (`profileid`, `tabid`, `fieldid`, `visible`, `readonly`)
  12. VALUES
  13.     (1, 8, 2106, 0, 0),
  14.     (6, 8, 2106, 0, 0),
  15.     (7, 8, 2106, 0, 0),
  16.     (9, 8, 2106, 0, 0),
  17.     (10, 8, 2106, 0, 0),
  18.     (11, 8, 2106, 0, 0),
  19.     (12, 8, 2106, 0, 0),
  20.     (13, 8, 2106, 0, 0),
  21.     (14, 8, 2106, 0, 0),
  22.     (15, 8, 2106, 0, 0),
  23.     (16, 8, 2106, 0, 0),
  24.     (17, 8, 2106, 0, 0),
  25.     (18, 8, 2106, 0, 0),
  26.     (19, 8, 2106, 0, 0),
  27.     (20, 8, 2106, 0, 0),
  28.     (21, 8, 2106, 0, 0),
  29.     (24, 8, 2106, 0, 0),
  30.     (25, 8, 2106, 0, 0),
  31.     (26, 8, 2106, 0, 0),
  32.     (27, 8, 2106, 0, 0);
  33.  
  34. CREATE TABLE `vtiger_document_status` (
  35.   `document_statusid` int(11) NOT NULL AUTO_INCREMENT,
  36.   `document_status` varchar(200) NOT NULL DEFAULT '',
  37.   `sortorderid` int(11) DEFAULT NULL,
  38.   `presence` int(11) NOT NULL DEFAULT 1,
  39.   `color` varchar(10) DEFAULT NULL,
  40.   PRIMARY KEY (`document_statusid`)
  41. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  42.  
  43. INSERT INTO `vtiger_document_status` (`document_statusid`, `document_status`, `sortorderid`, `presence`, `color`)
  44. VALUES
  45.     (1, 'Approved', 0, 1, NULL),
  46.     (2, 'Rejected', 1, 1, NULL),
  47.     (3, 'New', 2, 1, NULL);
  48.  
  49. CREATE TABLE `vtiger_document_status_seq` (
  50.   `id` int(11) NOT NULL
  51. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  52.  
  53. INSERT INTO `vtiger_document_status_seq` (`id`)
  54. VALUES
  55.     (3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement