Ignore:
Timestamp:
2011/01/30 23:48:56 (13 years ago)
Author:
Seasoft
Message:

#554(MySQL と PostgreSQL でテーブル定義が異なる)

  • r20053 での不適当な改訂箇所を逆マージ。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/install/sql/create_table_mysql.sql

    r20053 r20054  
    6565    end_age smallint, 
    6666    member smallint, 
    67     order_date timestamp, 
     67    order_date datetime, 
    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 timestamp NOT NULL, 
     85    release_date datetime 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 timestamp, 
    276     end_date timestamp, 
     275    start_date datetime, 
     276    end_date datetime, 
    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 timestamp NOT NULL, 
     438    order_date datetime 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 timestamp, 
     463    order_date datetime, 
    464464    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 
    465465) ENGINE=InnoDB; 
     
    516516CREATE TABLE dtb_news ( 
    517517    news_id int  NOT NULL, 
    518     news_date timestamp, 
     518    news_date datetime, 
    519519    rank int, 
    520520    news_title text NOT NULL, 
     
    547547    send_id int  NOT NULL, 
    548548    order_id int NOT NULL, 
    549     send_date timestamp, 
     549    send_date datetime, 
    550550    template_id int, 
    551551    creator_id int NOT NULL, 
     
    576576    sex smallint, 
    577577    job smallint, 
    578     birth timestamp, 
     578    birth datetime, 
    579579    password text, 
    580580    reminder smallint, 
     
    582582    salt text, 
    583583    secret_key varchar(50) NOT NULL UNIQUE, 
    584     first_buy_date timestamp, 
    585     last_buy_date timestamp, 
     584    first_buy_date datetime, 
     585    last_buy_date datetime, 
    586586    buy_times numeric DEFAULT 0, 
    587587    buy_total numeric DEFAULT 0, 
     
    619619    order_addr02 text, 
    620620    order_sex smallint, 
    621     order_birth timestamp, 
     621    order_birth datetime, 
    622622    order_job int, 
    623623    subtotal numeric, 
     
    637637    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    638638    update_date timestamp NOT NULL, 
    639     commit_date timestamp, 
    640     payment_date timestamp, 
     639    commit_date datetime, 
     640    payment_date datetime, 
    641641    device_type_id int, 
    642642    del_flg smallint NOT NULL DEFAULT 0, 
     
    675675    order_addr02 text, 
    676676    order_sex smallint, 
    677     order_birth timestamp, 
     677    order_birth datetime, 
    678678    order_job int, 
    679679    subtotal numeric, 
     
    734734    shipping_time text, 
    735735    shipping_num text, 
    736     shipping_date timestamp, 
    737     shipping_commit_date timestamp, 
     736    shipping_date datetime, 
     737    shipping_commit_date datetime, 
    738738    rank int, 
    739739    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     
    801801    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    802802    update_date timestamp NOT NULL, 
    803     login_date timestamp, 
     803    login_date datetime, 
    804804    PRIMARY KEY (member_id) 
    805805) ENGINE=InnoDB; 
Note: See TracChangeset for help on using the changeset viewer.