Changeset 20053


Ignore:
Timestamp:
2011/01/30 21:58:51 (10 years ago)
Author:
Seasoft
Message:

#554(MySQL と PostgreSQL でテーブル定義が異なる) 実装漏れ対応

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  
    6565    end_age smallint, 
    6666    member smallint, 
    67     order_date datetime, 
     67    order_date timestamp, 
    6868    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 
    6969) ENGINE=InnoDB; 
     
    8383    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    8484    update_date timestamp NOT NULL, 
    85     release_date datetime NOT NULL, 
     85    release_date timestamp NOT NULL, 
    8686    PRIMARY KEY (module_id) 
    8787) ENGINE=InnoDB; 
     
    273273    send_count int, 
    274274    complete_count int NOT NULL DEFAULT 0, 
    275     start_date datetime, 
    276     end_date datetime, 
     275    start_date timestamp, 
     276    end_date timestamp, 
    277277    search_data text, 
    278278    del_flg smallint NOT NULL DEFAULT 0, 
     
    436436    total numeric NOT NULL DEFAULT 0, 
    437437    total_average numeric NOT NULL DEFAULT 0, 
    438     order_date datetime NOT NULL, 
     438    order_date timestamp NOT NULL, 
    439439    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    440440    year smallint NOT NULL, 
     
    461461    total_average numeric NOT NULL DEFAULT 0, 
    462462    hour smallint NOT NULL DEFAULT 0, 
    463     order_date datetime, 
     463    order_date timestamp, 
    464464    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 
    465465) ENGINE=InnoDB; 
     
    498498    product_id int NOT NULL, 
    499499    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) 
    501502) ENGINE=InnoDB; 
    502503 
     
    515516CREATE TABLE dtb_news ( 
    516517    news_id int  NOT NULL, 
    517     news_date datetime, 
     518    news_date timestamp, 
    518519    rank int, 
    519520    news_title text NOT NULL, 
     
    546547    send_id int  NOT NULL, 
    547548    order_id int NOT NULL, 
    548     send_date datetime, 
     549    send_date timestamp, 
    549550    template_id int, 
    550551    creator_id int NOT NULL, 
     
    575576    sex smallint, 
    576577    job smallint, 
    577     birth datetime, 
     578    birth timestamp, 
    578579    password text, 
    579580    reminder smallint, 
     
    581582    salt text, 
    582583    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, 
    585586    buy_times numeric DEFAULT 0, 
    586587    buy_total numeric DEFAULT 0, 
     
    618619    order_addr02 text, 
    619620    order_sex smallint, 
    620     order_birth datetime, 
     621    order_birth timestamp, 
    621622    order_job int, 
    622623    subtotal numeric, 
     
    636637    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    637638    update_date timestamp NOT NULL, 
    638     commit_date datetime, 
    639     payment_date datetime, 
     639    commit_date timestamp, 
     640    payment_date timestamp, 
    640641    device_type_id int, 
    641642    del_flg smallint NOT NULL DEFAULT 0, 
     
    674675    order_addr02 text, 
    675676    order_sex smallint, 
    676     order_birth datetime, 
     677    order_birth timestamp, 
    677678    order_job int, 
    678679    subtotal numeric, 
     
    733734    shipping_time text, 
    734735    shipping_num text, 
    735     shipping_date datetime, 
    736     shipping_commit_date datetime, 
     736    shipping_date timestamp, 
     737    shipping_commit_date timestamp, 
    737738    rank int, 
    738739    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     
    800801    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    801802    update_date timestamp NOT NULL, 
    802     login_date datetime, 
     803    login_date timestamp, 
    803804    PRIMARY KEY (member_id) 
    804805) ENGINE=InnoDB; 
     
    915916 
    916917CREATE TABLE mtb_pref ( 
    917     id smallint NOT NULL, 
     918    id smallint, 
    918919    name text, 
    919920    rank smallint NOT NULL DEFAULT 0, 
  • branches/version-2_5-dev/html/install/sql/create_table_pgsql.sql

    r20051 r20053  
    6565    end_age smallint, 
    6666    member smallint, 
    67     order_date timestamp DEFAULT now(), 
     67    order_date timestamp, 
    6868    create_date timestamp NOT NULL DEFAULT now() 
    6969); 
     
    424424); 
    425425 
    426  
    427426CREATE TABLE dtb_bat_order_daily ( 
    428427    total_order numeric NOT NULL DEFAULT 0, 
     
    437436    total numeric NOT NULL DEFAULT 0, 
    438437    total_average numeric NOT NULL DEFAULT 0, 
    439     order_date timestamp NOT NULL DEFAULT now(), 
     438    order_date timestamp NOT NULL, 
    440439    create_date timestamp NOT NULL DEFAULT now(), 
    441440    year smallint NOT NULL, 
     
    462461    total_average numeric NOT NULL DEFAULT 0, 
    463462    hour smallint NOT NULL DEFAULT 0, 
    464     order_date timestamp DEFAULT now(), 
     463    order_date timestamp, 
    465464    create_date timestamp NOT NULL DEFAULT now() 
    466465); 
     
    917916 
    918917CREATE TABLE mtb_pref ( 
    919     id text, 
     918    id smallint, 
    920919    name text, 
    921920    rank smallint NOT NULL DEFAULT 0, 
     
    11761175 
    11771176CREATE TABLE mtb_ownersstore_err ( 
    1178     id text, 
     1177    id smallint, 
    11791178    name text, 
    11801179    rank smallint NOT NULL DEFAULT 0, 
     
    11831182 
    11841183CREATE TABLE mtb_ownersstore_ips ( 
    1185     id text, 
     1184    id smallint, 
    11861185    name text, 
    11871186    rank smallint NOT NULL DEFAULT 0, 
     
    12961295CREATE INDEX dtb_order_detail_product_id_key ON dtb_order_detail(product_id); 
    12971296CREATE INDEX dtb_send_customer_customer_id_key ON dtb_send_customer(customer_id); 
    1298  
    12991297CREATE INDEX dtb_mobile_ext_session_id_param_key_key ON dtb_mobile_ext_session_id (param_key); 
    13001298CREATE INDEX dtb_mobile_ext_session_id_param_value_key ON dtb_mobile_ext_session_id (param_value); 
    13011299CREATE INDEX dtb_mobile_ext_session_id_url_key ON dtb_mobile_ext_session_id (url); 
    13021300CREATE INDEX dtb_mobile_ext_session_id_create_date_key ON dtb_mobile_ext_session_id (create_date); 
    1303  
    13041301CREATE INDEX dtb_mobile_kara_mail_token_key ON dtb_mobile_kara_mail (token); 
    13051302CREATE 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.