Преглед изворни кода

更新sqlgroup_users is_del 字段没有默认值的问题

tangs пре 5 година
родитељ
комит
6648b69c17
3 измењених фајлова са 8 додато и 6 уклоњено
  1. 3 2
      database/sql/repair_lite.pdb
  2. 3 2
      database/sql/repair_lite.pdm
  3. 2 2
      database/sql/repair_lite.sql

+ 3 - 2
database/sql/repair_lite.pdb

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<?PowerDesigner AppLocale="UTF16" ID="{0FA9B001-9CEA-4862-9AE9-0185EB32FB38}" Label="" LastModificationDate="1552275170" Name="repair_lite" Objects="102" Symbols="17" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.1.0.2850"?>
+<?PowerDesigner AppLocale="UTF16" ID="{0FA9B001-9CEA-4862-9AE9-0185EB32FB38}" Label="" LastModificationDate="1552639319" Name="repair_lite" Objects="98" Symbols="14" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.1.0.2850"?>
 <!-- do not edit this file -->
 
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -4066,9 +4066,10 @@ LABL 0 新宋体,8,N</a:FontList>
 <a:Code>is_del</a:Code>
 <a:CreationDate>1552098914</a:CreationDate>
 <a:Creator>tangs</a:Creator>
-<a:ModificationDate>1552098928</a:ModificationDate>
+<a:ModificationDate>1552639319</a:ModificationDate>
 <a:Modifier>tangs</a:Modifier>
 <a:LowValue>false</a:LowValue>
+<a:DefaultValue>false</a:DefaultValue>
 <a:DataType>bool</a:DataType>
 </o:Column>
 </c:Columns>

+ 3 - 2
database/sql/repair_lite.pdm

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<?PowerDesigner AppLocale="UTF16" ID="{0FA9B001-9CEA-4862-9AE9-0185EB32FB38}" Label="" LastModificationDate="1552275170" Name="repair_lite" Objects="102" Symbols="17" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.1.0.2850"?>
+<?PowerDesigner AppLocale="UTF16" ID="{0FA9B001-9CEA-4862-9AE9-0185EB32FB38}" Label="" LastModificationDate="1552639319" Name="repair_lite" Objects="98" Symbols="14" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.1.0.2850"?>
 <!-- do not edit this file -->
 
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -4066,9 +4066,10 @@ LABL 0 新宋体,8,N</a:FontList>
 <a:Code>is_del</a:Code>
 <a:CreationDate>1552098914</a:CreationDate>
 <a:Creator>tangs</a:Creator>
-<a:ModificationDate>1552098928</a:ModificationDate>
+<a:ModificationDate>1552639319</a:ModificationDate>
 <a:Modifier>tangs</a:Modifier>
 <a:LowValue>false</a:LowValue>
+<a:DefaultValue>false</a:DefaultValue>
 <a:DataType>bool</a:DataType>
 </o:Column>
 </c:Columns>

+ 2 - 2
database/sql/repair_lite.sql

@@ -1,6 +1,6 @@
 /*==============================================================*/
 /* DBMS name:      MySQL 5.0                                    */
-/* Created on:     2019/3/11 11:36:08                           */
+/* Created on:     2019/3/15 16:42:14                           */
 /*==============================================================*/
 
 
@@ -54,7 +54,7 @@ create table group_users
    updated_at           timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    created_user_id      int,
    updated_user_id      int,
-   is_del               bool,
+   is_del               bool default false,
    primary key (id)
 );