mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- Added migration script 020_dokumentstudiengang to add a new column
called nachreichbar - Added property nachreichbar to class dokument into dokument.class.php - VileSci->Wartung->"Dokumente Zuteilung" in now handling the field nachreichbar
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once APPPATH . '/libraries/MigrationLib.php';
|
||||
|
||||
class Migration_Dokumentstudiengang extends MigrationLib
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->startUP();
|
||||
|
||||
// Add nachreichbar to public.tbl_dokumentstudiengang
|
||||
$columns = array(
|
||||
'nachreichbar' => array(
|
||||
'type' => 'boolean DEFAULT FALSE',
|
||||
'null' => false
|
||||
)
|
||||
);
|
||||
$this->addColumn('public', 'tbl_dokumentstudiengang', $columns);
|
||||
|
||||
$this->endUP();
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->startDown();
|
||||
|
||||
$this->dropColumn('public', 'tbl_dokumentstudiengang', 'nachreichbar');
|
||||
|
||||
$this->endDown();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user