Improve Event management

This commit is contained in:
Roland Schneider
2019-01-15 07:28:43 +01:00
parent e3b6bc08a7
commit 8decd1bc79
15 changed files with 695 additions and 278 deletions

View File

@@ -0,0 +1,29 @@
<?php
use yii\db\Migration;
class m190109_055105_alter_table_event_registration_add_column_deleted_at extends Migration
{
public function up()
{
$this->addColumn("event_registration","deleted_at",$this->dateTime() );
}
public function down()
{
echo "m190109_055105_alter_table_event_registration_add_column_deleted_at cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}

View File

@@ -0,0 +1,30 @@
<?php
use yii\db\Migration;
class m190109_055110_alter_table_event_add_column_deleted_at extends Migration
{
public function up()
{
$this->addColumn("event","deleted_at",$this->dateTime() );
$this->addColumn("event","active",$this->integer()->defaultValue(1) );
}
public function down()
{
echo "m190109_055105_alter_table_event_registration_add_column_deleted_at cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}