PteroTheme/database/migrations/2017_09_10_225749_RenameTas...

24 lines
429 B
PHP
Raw Normal View History

2017-09-11 07:15:44 +01:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
class RenameTasksTableForStructureRefactor extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
2017-09-11 07:15:44 +01:00
{
Schema::rename('tasks', 'tasks_old');
}
/**
* Reverse the migrations.
*/
public function down(): void
2017-09-11 07:15:44 +01:00
{
Schema::rename('tasks_old', 'tasks');
}
}