This commit is contained in:
@@ -101,7 +101,7 @@ class NoticeModel extends Model
|
||||
$query = $this->db->query($sql, [$id]);
|
||||
$notice = $query->getRowArray();
|
||||
|
||||
$sql = "SELECT bbs_sq, file_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name FROM bbs_file_notice WHERE bbs_sq = ?" .
|
||||
$sql = "SELECT bbs_sq, file_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name, cloud_upload_yn FROM bbs_file_notice WHERE bbs_sq = ?" .
|
||||
" and use_yn = 'Y'";
|
||||
$query = $this->db->query($sql, [$id]);
|
||||
$files = $query->getRowArray();
|
||||
@@ -152,7 +152,7 @@ class NoticeModel extends Model
|
||||
$f = $data['file'];
|
||||
|
||||
$sql = "INSERT INTO bbs_file_notice
|
||||
(bbs_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name)
|
||||
(bbs_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name, cloud_upload_yn)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||
|
||||
$this->db->query($sql, [
|
||||
@@ -165,6 +165,7 @@ class NoticeModel extends Model
|
||||
$f['img_height'] ?? null,
|
||||
$f['img_width'] ?? null,
|
||||
$f['orig_name'] ?? '',
|
||||
'Y'
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -201,7 +202,7 @@ class NoticeModel extends Model
|
||||
|
||||
if (empty($f['file_sq'])) {
|
||||
$sql = "INSERT INTO bbs_file_notice
|
||||
(bbs_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name)
|
||||
(bbs_sq, file_name, file_path, file_ext, file_size, img_yn, img_height, img_width, orig_name, cloud_upload_yn)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||
|
||||
$this->db->query($sql, [
|
||||
@@ -214,6 +215,7 @@ class NoticeModel extends Model
|
||||
$f['img_height'] ?? null,
|
||||
$f['img_width'] ?? null,
|
||||
$f['orig_name'] ?? '',
|
||||
'Y'
|
||||
]);
|
||||
} else {
|
||||
$sql = "UPDATE bbs_file_notice SET
|
||||
|
||||
Reference in New Issue
Block a user