Skip to content

Commit

Permalink
DB관련 쿼리문 다 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrambo committed Aug 1, 2014
1 parent 574c922 commit 8e7f055
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/attendance/attendance.class.php
Expand Up @@ -113,6 +113,8 @@ function checkUpdate()

if(!$oDB->isColumnExists("attendance", "perfect_m")) return true;

if(!$oDB->isColumnExists("attendance", "present_y")) return true;

//check a mid attendance
$oModule = getModel('module');
$module_info = $oModule->getModuleInfoByMid('attendance');
Expand Down Expand Up @@ -296,6 +298,11 @@ function moduleUpdate() {
$oDB->addColumn("attendance", "perfect_m", "char", 1);
}

if(!$oDB->isColumnExists("attendance", "present_y"))
{
$oDB->addColumn("attendance", "present_y", "char", 1);
}

//check a mid attendance
$oModule = getModel('module');
$module_info = $oModule->getModuleInfoByMid('attendance');
Expand All @@ -307,7 +314,7 @@ function moduleUpdate() {
$args = new stdClass;
$args->mid = 'attendance';
$args->module = 'attendance';
$args->browser_title = '출석채크';
$args->browser_title = '출석체크';

This comment has been minimized.

Copy link
@bjrambo

bjrambo Aug 1, 2014

Author Owner

채크가 아니라 체크로 모듈의 brwoser_title이 만들어지도록 수정했습니다/ 해당부분은 같이 커밋 했습니다. 낫 이슈

$args->site_srl = 0;
$args->skin = 'default';
$args->order_type = 'desc';
Expand Down
1 change: 1 addition & 0 deletions modules/attendance/queries/insertAttendance.xml
Expand Up @@ -12,5 +12,6 @@
<column name="today_random" var="today_random" default="0" />
<column name="att_random_set" var="att_random_set" default="0" />
<column name="perfect_m" var="perfect_m" />
<column name="present_y" var="present_y" />
</columns>
</query>
1 change: 1 addition & 0 deletions modules/attendance/queries/updateAttendance.xml
Expand Up @@ -10,6 +10,7 @@
<column name="today_point" var="today_point" />
<column name="today_random" var="today_random" />
<column name="perfect_m" var="perfect_m" />
<column neme="present_y" var="present_y" />
<column name="att_random_set" var="att_random_set" />
</columns>
<conditions>
Expand Down
1 change: 1 addition & 0 deletions modules/attendance/schemas/attendance.xml
Expand Up @@ -6,6 +6,7 @@
<column name="today_point" type="number" size="20" notnull="notnull" />
<column name="today_random" type="number" size="20" notnull="notnull" />
<column name="perfect_m" type="char" size="1" index="idx_perfect_m" />
<column neme="present_y" type="char" size="1" index="idx_present_y" />
<column name="ipaddress" type="varchar" size="23" notnull="notnull" />
<column name="att_random_set" type="number" size="20" notnull="notnull" />
</table>

1 comment on commit 8e7f055

@bjrambo
Copy link
Owner Author

@bjrambo bjrambo commented on 8e7f055 Aug 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6

Please sign in to comment.