Adding API

This commit is contained in:
Chris Smith
2025-02-20 20:09:01 +01:00
parent 0c639ce11e
commit 5f3d1359cf
15 changed files with 292 additions and 133 deletions

View File

@@ -0,0 +1,25 @@
<?php
use yii\db\Migration;
class m250220_180319_alter_meal_table_set_file_name_nullable extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->alterColumn('{{%meal}}', 'file_name', $this->string()->null());
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "m250220_180319_alter_meal_table_set_file_name_nullable cannot be reverted.\n";
return false;
}
}