forked from baserproject/basercms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
475 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
class SearchIndicesSchema extends CakeSchema { | ||
|
||
public $name = 'SearchIndices'; | ||
|
||
public $file = 'search_indices.php'; | ||
|
||
public $connection = 'default'; | ||
|
||
public function before($event = []) { | ||
return true; | ||
} | ||
|
||
public function after($event = []) { | ||
} | ||
|
||
public $search_indices = [ | ||
'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 8, 'key' => 'primary'], | ||
'type' => ['type' => 'string', 'null' => true, 'length' => 100], | ||
'model' => ['type' => 'string', 'null' => true, 'length' => 50], | ||
'model_id' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'site_id' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'content_id' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'content_filter_id' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'lft' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'rght' => ['type' => 'integer', 'null' => true, 'length' => 8], | ||
'title' => ['type' => 'string', 'null' => true, 'default' => null], | ||
'detail' => ['type' => 'text', 'null' => true], | ||
'url' => ['type' => 'text', 'null' => true, 'default' => null], | ||
'status' => ['type' => 'boolean', 'null' => true, 'default' => null], | ||
'priority' => ['type' => 'string', 'null' => true, 'length' => 3], | ||
'publish_begin' => ['type' => 'datetime', 'null' => true, 'default' => null], | ||
'publish_end' => ['type' => 'datetime', 'null' => true, 'default' => null], | ||
'created' => ['type' => 'datetime', 'null' => true], | ||
'modified' => ['type' => 'datetime', 'null' => true], | ||
'indexes' => ['PRIMARY' => ['column' => 'id', 'unique' => 1]], | ||
'tableParameters' => ['charset' => 'utf8', 'collate' => 'utf8_general_ci'] | ||
]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <http://basercms.net> | ||
* Copyright (c) baserCMS Users Community <http://basercms.net/community/> | ||
* | ||
* @copyright Copyright (c) baserCMS Users Community | ||
* @link http://basercms.net baserCMS Project | ||
* @package Baser.Config | ||
* @since baserCMS v 4.4.0 | ||
* @license http://basercms.net/license/index.html | ||
*/ | ||
|
||
/** | ||
* 4.4.0 バージョン アップデートスクリプト | ||
*/ | ||
|
||
/** | ||
* search_indices テーブル構造変更 | ||
*/ | ||
if($this->loadSchema('4.4.0', '', 'search_indices', 'alter')) { | ||
$this->setUpdateLog('search_indices テーブルの構造変更に成功しました。'); | ||
} else { | ||
$this->setUpdateLog('search_indices テーブルの構造変更に失敗しました。', true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.