ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9659


Ignore:
Timestamp:
Dec 24, 2008, 5:05:04 PM (11 years ago)
Author:
ShogoKawahara
Message:

changed some attributes on profile_option, member_profile and community model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/config/schema.yml

    r9599 r9659  
    5656  profile_option:
    5757    id: ~
    58     profile_id: ~
     58    profile_id: { type: integer, required: true, foreignTable: profile, foreignReference: id, onDelete: cascade }
    5959    sort_order: { type: integer }
    6060
     
    6868    rht_key: { type: integer, nestedSetRightKey: true ,index: true }
    6969    tree_key : { type: integer, treeScopeKey: true ,index: true }
    70     member_id: ~
    71     profile_id: ~
    72     profile_option_id: ~
     70    member_id: { type: integer, required: true, foreignTable: member, foreignReference: id, onDelete: cascade }
     71    profile_id: { type: integer, required: true, foreignTable: profile, foreignReference: id, onDelete: cascade }
     72    profile_option_id: { type: integer, required: false, foreignTable: profile_option, foreignReference: id, onDelete: cascade }
    7373    value: { type: longvarchar }
    7474
     
    7676    id: ~
    7777    name: { type: varchar(64), index: unique, required: true }
    78     file_id: { type: integer, required: false, foreignTable: file, foreignReference: id, onDelete: cascade }
     78    file_id: { type: integer, required: false, foreignTable: file, foreignReference: id, onDelete: setnull }
    7979    created_at: ~
    8080    updated_at: ~
Note: See TracChangeset for help on using the changeset viewer.