2017-09-11 01:15:44 -05:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-09-11 01:15:44 -05:00
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2026-10-05 18:10:18 -04:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2017-09-11 01:15:44 -05:00
|
|
|
|
|
|
|
|
class RenameTasksTableForStructureRefactor extends Migration
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function up(): void
|
2017-09-11 01:15:44 -05:00
|
|
|
{
|
|
|
|
|
Schema::rename('tasks', 'tasks_old');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function down(): void
|
2017-09-11 01:15:44 -05:00
|
|
|
{
|
|
|
|
|
Schema::rename('tasks_old', 'tasks');
|
|
|
|
|
}
|
|
|
|
|
}
|