Files

24 lines
429 B
PHP
Raw Permalink Normal View History

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