shuzheng 9 年 前
コミット
7dcffc533c
3 ファイル変更138 行追加170 行削除
  1. 129 162
      DataModelDiagram/zheng.pdb
  2. 7 6
      DataModelDiagram/zheng.pdm
  3. 2 2
      DataModelDiagram/zheng.sql

ファイルの差分が大きいため隠しています
+ 129 - 162
DataModelDiagram/zheng.pdb


+ 7 - 6
DataModelDiagram/zheng.pdm

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1479631642" Name="zheng" Objects="196" Symbols="34" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
+<?PowerDesigner AppLocale="UTF16" ID="{22E867D0-73E2-4C77-BB68-28135519D681}" Label="" LastModificationDate="1479650437" Name="zheng" Objects="196" Symbols="40" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
 <!-- do not edit this file -->
 
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -5484,7 +5484,7 @@ LABL 0 新宋体,8,N</a:FontList>
 <a:Code>cms_comment</a:Code>
 <a:CreationDate>1478091704</a:CreationDate>
 <a:Creator>shuzheng</a:Creator>
-<a:ModificationDate>1479631642</a:ModificationDate>
+<a:ModificationDate>1479650437</a:ModificationDate>
 <a:Modifier>shuzheng</a:Modifier>
 <a:PhysicalOptions>ENGINE=InnoDB DEFAULT CHARSET=utf8mb4</a:PhysicalOptions>
 <a:TotalSavingCurrency/>
@@ -5508,11 +5508,11 @@ LABL 0 新宋体,8,N</a:FontList>
 </o:Column>
 <o:Column Id="o101">
 <a:ObjectID>BC2A83B1-EEBB-434E-856C-1A622C7024E6</a:ObjectID>
-<a:Name>回复楼中楼编号回复楼中楼编号</a:Name>
+<a:Name>回复楼中楼编号</a:Name>
 <a:Code>pid</a:Code>
 <a:CreationDate>1478091704</a:CreationDate>
 <a:Creator>shuzheng</a:Creator>
-<a:ModificationDate>1478097024</a:ModificationDate>
+<a:ModificationDate>1479649194</a:ModificationDate>
 <a:Modifier>shuzheng</a:Modifier>
 <a:Comment>回复楼中楼编号回复楼中楼编号</a:Comment>
 <a:DefaultValue>0</a:DefaultValue>
@@ -5989,10 +5989,11 @@ LABL 0 新宋体,8,N</a:FontList>
 <a:Code>Reference_2</a:Code>
 <a:CreationDate>1478091704</a:CreationDate>
 <a:Creator>shuzheng</a:Creator>
-<a:ModificationDate>1479631642</a:ModificationDate>
+<a:ModificationDate>1479650437</a:ModificationDate>
 <a:Modifier>shuzheng</a:Modifier>
 <a:Cardinality>0..*</a:Cardinality>
-<a:DeleteConstraint>3</a:DeleteConstraint>
+<a:UpdateConstraint>2</a:UpdateConstraint>
+<a:DeleteConstraint>2</a:DeleteConstraint>
 <c:ParentTable>
 <o:Table Ref="o41"/>
 </c:ParentTable>

+ 2 - 2
DataModelDiagram/zheng.sql

@@ -1,6 +1,6 @@
 /*==============================================================*/
 /* DBMS name:      MySQL 5.0                                    */
-/* Created on:     2016/11/20 16:47:38                          */
+/* Created on:     2016/11/20 22:00:49                          */
 /*==============================================================*/
 
 
@@ -222,7 +222,7 @@ alter table cms_comment add constraint FK_Reference_1 foreign key (article_id)
       references cms_article (article_id) on delete cascade on update cascade;
 
 alter table cms_comment add constraint FK_Reference_2 foreign key (pid)
-      references cms_comment (comment_id) on delete set null;
+      references cms_comment (comment_id) on delete cascade on update cascade;
 
 alter table test_book add constraint FK_Reference_9 foreign key (user_id)
       references test_user (user_id) on delete cascade on update cascade;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません