Changeset 20053 for branches/version-2_5-dev/html
- Timestamp:
- 2011/01/30 21:58:51 (11 years ago)
- Location:
- branches/version-2_5-dev/html/install/sql
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/html/install/sql/create_table_mysql.sql
r20051 r20053 65 65 end_age smallint, 66 66 member smallint, 67 order_date datetime,67 order_date timestamp, 68 68 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 69 69 ) ENGINE=InnoDB; … … 83 83 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 84 84 update_date timestamp NOT NULL, 85 release_date datetimeNOT NULL,85 release_date timestamp NOT NULL, 86 86 PRIMARY KEY (module_id) 87 87 ) ENGINE=InnoDB; … … 273 273 send_count int, 274 274 complete_count int NOT NULL DEFAULT 0, 275 start_date datetime,276 end_date datetime,275 start_date timestamp, 276 end_date timestamp, 277 277 search_data text, 278 278 del_flg smallint NOT NULL DEFAULT 0, … … 436 436 total numeric NOT NULL DEFAULT 0, 437 437 total_average numeric NOT NULL DEFAULT 0, 438 order_date datetimeNOT NULL,438 order_date timestamp NOT NULL, 439 439 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 440 440 year smallint NOT NULL, … … 461 461 total_average numeric NOT NULL DEFAULT 0, 462 462 hour smallint NOT NULL DEFAULT 0, 463 order_date datetime,463 order_date timestamp, 464 464 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 465 465 ) ENGINE=InnoDB; … … 498 498 product_id int NOT NULL, 499 499 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 500 update_date timestamp NOT NULL 500 update_date timestamp NOT NULL, 501 PRIMARY KEY (customer_id, product_id) 501 502 ) ENGINE=InnoDB; 502 503 … … 515 516 CREATE TABLE dtb_news ( 516 517 news_id int NOT NULL, 517 news_date datetime,518 news_date timestamp, 518 519 rank int, 519 520 news_title text NOT NULL, … … 546 547 send_id int NOT NULL, 547 548 order_id int NOT NULL, 548 send_date datetime,549 send_date timestamp, 549 550 template_id int, 550 551 creator_id int NOT NULL, … … 575 576 sex smallint, 576 577 job smallint, 577 birth datetime,578 birth timestamp, 578 579 password text, 579 580 reminder smallint, … … 581 582 salt text, 582 583 secret_key varchar(50) NOT NULL UNIQUE, 583 first_buy_date datetime,584 last_buy_date datetime,584 first_buy_date timestamp, 585 last_buy_date timestamp, 585 586 buy_times numeric DEFAULT 0, 586 587 buy_total numeric DEFAULT 0, … … 618 619 order_addr02 text, 619 620 order_sex smallint, 620 order_birth datetime,621 order_birth timestamp, 621 622 order_job int, 622 623 subtotal numeric, … … 636 637 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 637 638 update_date timestamp NOT NULL, 638 commit_date datetime,639 payment_date datetime,639 commit_date timestamp, 640 payment_date timestamp, 640 641 device_type_id int, 641 642 del_flg smallint NOT NULL DEFAULT 0, … … 674 675 order_addr02 text, 675 676 order_sex smallint, 676 order_birth datetime,677 order_birth timestamp, 677 678 order_job int, 678 679 subtotal numeric, … … 733 734 shipping_time text, 734 735 shipping_num text, 735 shipping_date datetime,736 shipping_commit_date datetime,736 shipping_date timestamp, 737 shipping_commit_date timestamp, 737 738 rank int, 738 739 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, … … 800 801 create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 801 802 update_date timestamp NOT NULL, 802 login_date datetime,803 login_date timestamp, 803 804 PRIMARY KEY (member_id) 804 805 ) ENGINE=InnoDB; … … 915 916 916 917 CREATE TABLE mtb_pref ( 917 id smallint NOT NULL,918 id smallint, 918 919 name text, 919 920 rank smallint NOT NULL DEFAULT 0, -
branches/version-2_5-dev/html/install/sql/create_table_pgsql.sql
r20051 r20053 65 65 end_age smallint, 66 66 member smallint, 67 order_date timestamp DEFAULT now(),67 order_date timestamp, 68 68 create_date timestamp NOT NULL DEFAULT now() 69 69 ); … … 424 424 ); 425 425 426 427 426 CREATE TABLE dtb_bat_order_daily ( 428 427 total_order numeric NOT NULL DEFAULT 0, … … 437 436 total numeric NOT NULL DEFAULT 0, 438 437 total_average numeric NOT NULL DEFAULT 0, 439 order_date timestamp NOT NULL DEFAULT now(),438 order_date timestamp NOT NULL, 440 439 create_date timestamp NOT NULL DEFAULT now(), 441 440 year smallint NOT NULL, … … 462 461 total_average numeric NOT NULL DEFAULT 0, 463 462 hour smallint NOT NULL DEFAULT 0, 464 order_date timestamp DEFAULT now(),463 order_date timestamp, 465 464 create_date timestamp NOT NULL DEFAULT now() 466 465 ); … … 917 916 918 917 CREATE TABLE mtb_pref ( 919 id text,918 id smallint, 920 919 name text, 921 920 rank smallint NOT NULL DEFAULT 0, … … 1176 1175 1177 1176 CREATE TABLE mtb_ownersstore_err ( 1178 id text,1177 id smallint, 1179 1178 name text, 1180 1179 rank smallint NOT NULL DEFAULT 0, … … 1183 1182 1184 1183 CREATE TABLE mtb_ownersstore_ips ( 1185 id text,1184 id smallint, 1186 1185 name text, 1187 1186 rank smallint NOT NULL DEFAULT 0, … … 1296 1295 CREATE INDEX dtb_order_detail_product_id_key ON dtb_order_detail(product_id); 1297 1296 CREATE INDEX dtb_send_customer_customer_id_key ON dtb_send_customer(customer_id); 1298 1299 1297 CREATE INDEX dtb_mobile_ext_session_id_param_key_key ON dtb_mobile_ext_session_id (param_key); 1300 1298 CREATE INDEX dtb_mobile_ext_session_id_param_value_key ON dtb_mobile_ext_session_id (param_value); 1301 1299 CREATE INDEX dtb_mobile_ext_session_id_url_key ON dtb_mobile_ext_session_id (url); 1302 1300 CREATE INDEX dtb_mobile_ext_session_id_create_date_key ON dtb_mobile_ext_session_id (create_date); 1303 1304 1301 CREATE INDEX dtb_mobile_kara_mail_token_key ON dtb_mobile_kara_mail (token); 1305 1302 CREATE INDEX dtb_mobile_kara_mail_create_date_key ON dtb_mobile_kara_mail (create_date);
Note: See TracChangeset
for help on using the changeset viewer.