Changeset 16802


Ignore:
Timestamp:
2007/11/22 14:44:40 (16 years ago)
Author:
satou
Message:

#132
PostgreSQLの場合、「mtb_mailtemplate:template_id」にUNIQUE属性がない。
インストール時の初期設定で、template_idを指定しているため、シーケンスが更新されないままINSERTされてしまう。

Location:
branches/beta/html/install/sql
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/html/install/sql/create_table_pgsql.sql

    r15120 r16802  
    177177 
    178178CREATE TABLE dtb_mailtemplate ( 
    179     template_id SERIAL NOT NULL, 
     179    template_id SERIAL NOT NULL UNIQUE, 
    180180    subject text, 
    181181    header text, 
  • branches/beta/html/install/sql/insert_data.sql

    r16350 r16802  
    224224INSERT INTO dtb_templates (template_code, template_name, create_date, update_date) VALUES('default1','¤Õ¤È¤ó¤ä¤µ¤ó', now(), now()); 
    225225 
    226 insert into dtb_mailtemplate (template_id, subject, body, creator_id, update_date, create_date, send_type, template_name) values ( 
    227 '1', 
     226insert into dtb_mailtemplate (subject, body, creator_id, update_date, create_date, send_type, template_name) values ( 
    228227'¤´Ãíʸ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£', 
    229228'{name}ÍÍ 
     
    245244'¼õÃí´°Î»¥Æ¥ó¥×¥ì¡¼¥È(PCÍÑ)'); 
    246245 
    247 insert into dtb_mailtemplate (template_id, subject, body, creator_id, update_date, create_date, send_type, template_name) values ( 
    248 '2', 
     246insert into dtb_mailtemplate (subject, body, creator_id, update_date, create_date, send_type, template_name) values ( 
    249247'¤´Ãíʸ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£', 
    250248'{name}ÍÍ 
Note: See TracChangeset for help on using the changeset viewer.