- new role management for Corporation maps, closed #164

- new role management section for corporations admins
- added column "nullable" detection within /setup page for DB diff
- added new map icon options options to the map add/edit dialog
- refactored setup() method for all tables with static data
- fixed broken map icons
- fixed broken "drag/select" for systems on map
- fixed new "map resize" event for non Chrome browsers
- multiple minor improvements and fixes...
This commit is contained in:
Mark Friedrich
2018-02-16 17:02:10 +01:00
parent 21df484457
commit ac36d5e074
61 changed files with 1947 additions and 857 deletions

View File

@@ -881,4 +881,24 @@ abstract class BasicModel extends \DB\Cortex {
return $status;
}
/**
* overwrites parent
* @param null $db
* @param null $table
* @param null $fields
* @return bool
* @throws \Exception
*/
public static function setup($db=null, $table=null, $fields=null){
$status = parent::setup($db,$table,$fields);
// set static default data
if($status === true && property_exists(static::class, 'tableData')){
$model = self::getNew(self::getClassName(), 0);
$model->importStaticData(static::$tableData);
}
return $status;
}
}