테이블-DBUpdate-gen-wallet.sql 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. SELECT * FROM `dbr_company` WHERE email like '%bseyewear1@gmail.com%'
  2. SELECT * FROM `pro_member` WHERE email like '%dabory%'
  3. delete FROM `dbr_company` WHERE email = 'hk0698@naver.com';
  4. delete FROM `pro_member` WHERE email = 'hk0698@naver.com';
  5. email = 'xxnt7765@naver.com';
  6. ALTER TABLE `dbr_user_menu` ADD `guest_app_id` INT(11) NOT NULL DEFAULT '0' AFTER `is_skipped`;
  7. ALTER TABLE `bcs_circulatiing`
  8. CHANGE `circulatiing_supply` `circulating_supply` DECIMAL (34, 0) DEFAULT 0 NOT NULL;
  9. RENAME TABLE `bcs_circulatiing` TO `bcs_circulating`;
  10. ALTER TABLE `dbr_porder_bd`
  11. ADD `memo` TEXT NULL DEFAULT NULL AFTER `confirm_date`,
  12. ADD `column2` varchar(69) DEFAULT NULL AFTER `confirm_date`,
  13. ADD `column1` varchar(69) DEFAULT NULL AFTER `confirm_date`;
  14. update dbr_setup set setup_type = 'pro' where setup_code='contact-us';
  15. update dbr_setup set setup_type = 'add-service' where setup_code='text-sent';
  16. update dbr_setup set setup_type = 'add-service' where setup_code='import-pg';
  17. update dbr_setup set setup_type = 'point' where setup_code='user-credit';
  18. update dbr_setup set setup_type = 'point' where setup_code='user-reward';
  19. update dbr_setup set setup_type = 'common' where setup_code='seo-meta';
  20. update dbr_setup set setup_type = 'common' where setup_code='signup-default';
  21. update dbr_setup set setup_type = 'common' where setup_code='login-info';
  22. update dbr_setup set setup_type = 'common' where setup_code='decimal-point';
  23. update dbr_setup set setup_type = 'member' where setup_code='dormant-default';
  24. update dbr_setup set setup_type = 'member' where setup_code='dormant-default';
  25. update dbr_setup set setup_name = '일반설정(mail/.env)' where setup_code='general-info';
  26. delete FROM `dbr_setup` WHERE setup_code = 'office-info';
  27. INSERT INTO dbr_setup (branch_id, setup_code, brand_code, setup_name, component, parameter, is_on_use, is_brand_select, setup_json )
  28. VALUES (0, 'offic-info', '', '사무실정보', 'popup-setup.form-a.office-info-form', '/popup-setup/form-a/office-info', '1', '0', '{\"OfcCode\":\"baeksan-optical\",\"OfcPlace\":\"2\",\"OfcName\":\"3\",\"OfcTaxNo\":\"4\",\"OfcEmail\":\"5\",\"OfcTelNo\":\"6\",\"OfcFaxNo\":\"7\",\"OfcMobile\":\"8\",\"OfcZipCode\":\"9\",\"OfcPresident\":\"10\",\"OfcAddress\":\"11\",\"OfcBizType\":\"12\",\"OfcDealItem\":\"13\"}');
  29. update dbr_setup set component = 'popup-setup.form-a.media-library-form' where setup_code='media-body'
  30. INSERT INTO dbr_setup (branch_id, setup_code, brand_code, setup_name, component, parameter, is_on_use, is_brand_select, setup_json )
  31. VALUES (0, 'contact-us', 'main', '컨택트폼-메인', 'popup-setup.form-a.contact-us-form', '/popup-setup/form-a/contact-us', '1', '1', '');
  32. delete FROM `dbr_setup` WHERE setup_code = 'contact-us';
  33. INSERT INTO dbr_setup (branch_id, setup_code, brand_code, setup_name, component, parameter, is_on_use, is_brand_select, setup_json )
  34. VALUES (0, 'contact-us', 'main', '컨택트폼-메인', 'popup-setup.form-a.contact-us-form', '/popup-setup/form-a/contact-us', '1', '1', '');
  35. delete FROM `dbr_setup` WHERE setup_code = 'contact-us' and brand_code = 'sub-1';
  36. INSERT INTO dbr_setup (branch_id, setup_code, brand_code, setup_name, component, parameter, is_on_use, is_brand_select, setup_json )
  37. VALUES (0, 'contact-us', 'sub1', '컨택트폼-서브1', 'popup-setup.form-a.contact-us-form', '/popup-setup/form-a/contact-us', '1', '1', '');
  38. drop table if exists dbt_list_type1;
  39. CREATE TABLE `dbt_list_type1` (
  40. `t_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  41. `id` int(10) unsigned DEFAULT NULL,
  42. `created_on` int(11) NOT NULL DEFAULT unix_timestamp(),
  43. `list_token` varchar(21) NOT NULL,
  44. `order_by` varchar(32) DEFAULT NULL,
  45. `c1` varchar(64) DEFAULT NULL,
  46. `c2` varchar(64) DEFAULT NULL,
  47. `c3` varchar(64) DEFAULT NULL,
  48. `c4` varchar(64) DEFAULT NULL,
  49. `c5` varchar(64) DEFAULT NULL,
  50. `c6` varchar(64) DEFAULT NULL,
  51. `c7` varchar(64) DEFAULT NULL,
  52. `c8` varchar(64) DEFAULT NULL,
  53. `c9` varchar(64) DEFAULT NULL,
  54. `c10` varchar(64) DEFAULT NULL,
  55. `c11` varchar(64) DEFAULT NULL,
  56. `c12` varchar(64) DEFAULT NULL,
  57. `c13` varchar(64) DEFAULT NULL,
  58. `c14` varchar(64) DEFAULT NULL,
  59. `c15` varchar(64) DEFAULT NULL,
  60. `c16` varchar(64) DEFAULT NULL,
  61. `c17` varchar(64) DEFAULT NULL,
  62. `c18` varchar(64) DEFAULT NULL,
  63. `c19` varchar(64) DEFAULT NULL,
  64. `c20` varchar(64) DEFAULT NULL,
  65. `d1` decimal(20,4) DEFAULT '0.0000',
  66. `d2` decimal(20,4) DEFAULT '0.0000',
  67. `d3` decimal(20,4) DEFAULT '0.0000',
  68. `d4` decimal(20,4) DEFAULT '0.0000',
  69. `d5` decimal(20,4) DEFAULT '0.0000',
  70. `d6` decimal(20,4) DEFAULT '0.0000',
  71. `d7` decimal(20,4) DEFAULT '0.0000',
  72. `d8` decimal(20,4) DEFAULT '0.0000',
  73. `d9` decimal(20,4) DEFAULT '0.0000',
  74. `d10` decimal(20,4) DEFAULT '0.0000',
  75. `is_sum` char(1) NOT NULL DEFAULT '0',
  76. `t1` mediumtext DEFAULT NULL,
  77. `t2` mediumtext DEFAULT NULL,
  78. UNIQUE KEY `tid` (`t_id`)
  79. ) ENGINE=MyISAM AUTO_INCREMENT=2273 DEFAULT CHARSET=utf8mb4
  80. drop table if exists cry_list1;
  81. drop table if exists cry_list1_federated;
  82. drop table if exists fed_crystal_host;
  83. CREATE TABLE `fed_crystal_host` (
  84. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  85. `created_on` int(11) NOT NULL DEFAULT unix_timestamp(),
  86. `list_token` varchar(21) NOT NULL,
  87. `position` varchar(10) NOT NULL,
  88. `order_by` varchar(32) DEFAULT NULL,
  89. `c1` varchar(64) DEFAULT NULL,
  90. `c2` varchar(64) DEFAULT NULL,
  91. `c3` varchar(64) DEFAULT NULL,
  92. `c4` varchar(64) DEFAULT NULL,
  93. `c5` varchar(64) DEFAULT NULL,
  94. `c6` varchar(64) DEFAULT NULL,
  95. `c7` varchar(64) DEFAULT NULL,
  96. `c8` varchar(64) DEFAULT NULL,
  97. `c9` varchar(64) DEFAULT NULL,
  98. `c10` varchar(64) DEFAULT NULL,
  99. `c11` varchar(64) DEFAULT NULL,
  100. `c12` varchar(64) DEFAULT NULL,
  101. `c13` varchar(64) DEFAULT NULL,
  102. `c14` varchar(64) DEFAULT NULL,
  103. `c15` varchar(64) DEFAULT NULL,
  104. `c16` varchar(64) DEFAULT NULL,
  105. `c17` varchar(64) DEFAULT NULL,
  106. `c18` varchar(64) DEFAULT NULL,
  107. `c19` varchar(64) DEFAULT NULL,
  108. `c20` varchar(64) DEFAULT NULL,
  109. `d1` decimal(20,4) DEFAULT '0.0000',
  110. `d2` decimal(20,4) DEFAULT '0.0000',
  111. `d3` decimal(20,4) DEFAULT '0.0000',
  112. `d4` decimal(20,4) DEFAULT '0.0000',
  113. `d5` decimal(20,4) DEFAULT '0.0000',
  114. `d6` decimal(20,4) DEFAULT '0.0000',
  115. `d7` decimal(20,4) DEFAULT '0.0000',
  116. `d8` decimal(20,4) DEFAULT '0.0000',
  117. `d9` decimal(20,4) DEFAULT '0.0000',
  118. `d10` decimal(20,4) DEFAULT '0.0000',
  119. `is_sum` char(1) NOT NULL DEFAULT '0',
  120. `t1` mediumtext DEFAULT NULL,
  121. `t2` mediumtext DEFAULT NULL,
  122. UNIQUE KEY `id` (`id`)
  123. ) ENGINE=MyISAM AUTO_INCREMENT=2273 DEFAULT CHARSET=utf8mb4;
  124. GRANT ALL PRIVILEGES ON *.* TO 'weberp_db'@'localhost' WITH GRANT OPTION;
  125. FLUSH PRIVILEGES;
  126. drop table if exists zdb_optpos_contact_lens;
  127. ALTER TABLE `dbr_sorder` ADD INDEX `sorder_date` (`sorder_date`);
  128. ALTER TABLE `dbr_sgroup` ADD `Sort` CHAR(1) NOT NULL DEFAULT '0' AFTER `agroup_id`;
  129. ALTER TABLE `dbr_sgroup` ADD `branch_id` INT(11) NOT NULL DEFAULT '0' AFTER `agroup_id`;
  130. show create table bcs_circulating
  131. ALTER TABLE
  132. CHANGE `` * COMMENT '',
  133. CHANGE `` * COMMENT '';
  134. drop table if exists pro_sorder_shop;
  135. CREATE TABLE `pro_sorder_shop` (
  136. `id` int(11) unsigned NOT NULL,
  137. `ship_contact` varchar(64) DEFAULT NULL COMMENT '연락처명',
  138. `ship_mobile` varchar(21) DEFAULT NULL COMMENT '모바일번호',
  139. `ship_method` varchar(32) DEFAULT NULL COMMENT '배송방식',
  140. `shipfee_amt` decimal(20,4) DEFAULT 0.0000 COMMENT '배송비',
  141. `ship_zip_code` varchar(21) DEFAULT NULL COMMENT '우편번호',
  142. `ship_addr1` varchar(64) DEFAULT NULL COMMENT '주소1',
  143. `ship_addr2` varchar(64) DEFAULT NULL COMMENT '주소2',
  144. `paymethod` char(2) NOT NULL DEFAULT '0' COMMENT '결재방식',
  145. PRIMARY KEY (`id`)
  146. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  147. ALTER TABLE `dbr_sorder`
  148. ADD `paymethod` char(2) NOT NULL DEFAULT '0' COMMENT '결재방식' AFTER `is_locked`,
  149. ADD `ship_addr2` varchar(64) DEFAULT NULL COMMENT '주소2' AFTER `is_locked`,
  150. ADD `ship_addr1` varchar(64) DEFAULT NULL COMMENT '주소1' AFTER `is_locked`,
  151. ADD `ship_zip_code` varchar(21) DEFAULT NULL COMMENT '우편번호' AFTER `is_locked`,
  152. ADD `ship_fee` decimal(20,4) DEFAULT 0.0000 COMMENT '배송비' AFTER `is_locked`,
  153. ADD `ship_method` varchar(32) DEFAULT NULL COMMENT '배송방식' AFTER `is_locked`,
  154. ADD `ship_contact` varchar(64) DEFAULT NULL COMMENT '연락처명' AFTER `is_locked`;
  155. drop table if exists pro_time_sales;
  156. CREATE TABLE `pro_time_sales` (
  157. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  158. `created_on` bigint(20) DEFAULT 0,
  159. `updated_on` bigint(20) DEFAULT 0,
  160. `time_sales_no` varchar(21) NOT NULL DEFAULT '' COMMENT '타임세일번호',
  161. `sales_date` char(8) NOT NULL DEFAULT '' COMMENT '입력일자',
  162. `item_id` int(10) unsigned NOT NULL COMMENT '품목ID',
  163. `time_price` decimal(18,4) NOT NULL DEFAULT 0.0000 COMMENT '할인가격',
  164. `start_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '타임세일 시작일시',
  165. `end_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '타임세일 종료일시',
  166. `status` char(1) NOT NULL COMMENT '표시않음',
  167. `main_page_on` char(1) NOT NULL DEFAULT '0' COMMENT '메인노출',
  168. `ip` varchar(20) NOT NULL,
  169. PRIMARY KEY (`id`)
  170. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;