처음 접하는 분들은 개발가이드를 참고하시면서 하면 어렵지 않게 하실수 있을 것입니다.

 

그래서 기록으로 남겨둡니다.

 

data/module/component/Database

에서 모든 작업을 수행할수있습니다.

 

우선 메뉴얼에 보시면 참고가 되실겁니다.

Column 추가

  • 기존의 Methods 를 그대로 사용을 하고 원래 Methods 의 것을 가지고 와서 처리함.
  • 아래는 상품 table에 Column을 추가하는 예제입니다.

<?php

namespace Component\Database;

class DBTableField extends \Bundle\Component\Database\

DBTableField {

public static function tableGoods($conf = null) {

// 부모 method 상속

$arrField = parent::tableGoods($conf);

// 추가 필드

$arrField[] = ['val' => 'testNo', 'typ' => 'i', 'def' => '1'];

// 테스트 번호

$arrField[] = ['val' => 'testId', 'typ' => 's', 'def' => null];

// 테스트 아이디

// 필드값 리턴

return $arrField;

}

}

 

 

 

[웹툰] 투믹스 추천 성인 웹툰 TOP 10 (2021-05-15)

+ Recent posts