Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 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. (56, 1821, 'operation_type', 'vtiger_payments', 1, '16', 'operation_type', 'Operation Type', 1, 2, '', 100, 3, 205, 1, 'V~O', 1, 0, 'BAS', 1, '', 0, NULL, 0);
  4.  
  5. ALTER TABLE vtiger_payments ADD COLUMN operation_type VARCHAR(255)
  6.  
  7. INSERT INTO `vtiger_def_org_field` (`tabid`, `fieldid`, `visible`, `readonly`)
  8. VALUES
  9. (8, 1821, 0, 0);
  10.  
  11. INSERT INTO `vtiger_profile2field` (`profileid`, `tabid`, `fieldid`, `visible`, `readonly`)
  12. VALUES
  13. (1, 8, 1821, 0, 0),
  14. (6, 8, 1821, 0, 0),
  15. (7, 8, 1821, 0, 0),
  16. (9, 8, 1821, 0, 0),
  17. (10, 8, 1821, 0, 0),
  18. (11, 8, 1821, 0, 0),
  19. (12, 8, 1821, 0, 0),
  20. (13, 8, 1821, 0, 0),
  21. (14, 8, 1821, 0, 0),
  22. (15, 8, 1821, 0, 0),
  23. (16, 8, 1821, 0, 0),
  24. (17, 8, 1821, 0, 0),
  25. (18, 8, 1821, 0, 0),
  26. (19, 8, 1821, 0, 0),
  27. (20, 8, 1821, 0, 0),
  28. (21, 8, 1821, 0, 0),
  29. (24, 8, 1821, 0, 0),
  30. (25, 8, 1821, 0, 0),
  31. (26, 8, 1821, 0, 0),
  32. (27, 8, 1821, 0, 0);
  33.  
  34. CREATE TABLE `vtiger_operation_type` (
  35. `operation_typeid` int(11) NOT NULL AUTO_INCREMENT,
  36. `operation_type` varchar(200) NOT NULL,
  37. `sortorderid` int(11) DEFAULT NULL,
  38. `presence` int(11) NOT NULL DEFAULT 1,
  39. `color` varchar(10) DEFAULT NULL,
  40. PRIMARY KEY (`operation_typeid`)
  41. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  42.  
  43. INSERT INTO `vtiger_operation_type` (`operation_typeid`, `operation_type`, `sortorderid`, `presence`, `color`)
  44. VALUES
  45. (1, 'Deposit', 0, 1, NULL),
  46. (2, 'Bonus', 0, 1, NULL),
  47. (3, 'Cash', 0, 1, NULL),
  48. (4, 'Withdraw', 0, 1, NULL);
  49.  
  50. CREATE TABLE `vtiger_operation_type_seq` (
  51. `id` int(11) NOT NULL
  52. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement