mirror of https://github.com/MISP/MISP
20 lines
638 B
PHP
Executable File
20 lines
638 B
PHP
Executable File
<?php
|
|
class DbWhitelistSchema extends CakeSchema {
|
|
|
|
public $name = 'DbWhitelist';
|
|
|
|
public function before($event = array()) {
|
|
return true;
|
|
}
|
|
|
|
public function after($event = array()) {
|
|
}
|
|
|
|
public $whitelist = array(
|
|
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
|
|
'name' => array('type' => 'text', 'null' => false, 'default' => null, 'key' => 'index', 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
|
|
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
|
|
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_bin', 'engine' => 'MyISAM')
|
|
);
|
|
}
|