|
@@ -19,9 +19,7 @@ return new class extends Migration
|
|
|
*/
|
|
|
public function up(): void
|
|
|
{
|
|
|
- $schema = Schema::connection($this->getConnection());
|
|
|
-
|
|
|
- $schema->create('telescope_entries', function (Blueprint $table) {
|
|
|
+ Schema::create('telescope_entries', function (Blueprint $table) {
|
|
|
$table->bigIncrements('sequence');
|
|
|
$table->uuid('uuid');
|
|
|
$table->uuid('batch_id');
|
|
@@ -38,7 +36,7 @@ return new class extends Migration
|
|
|
$table->index(['type', 'should_display_on_index']);
|
|
|
});
|
|
|
|
|
|
- $schema->create('telescope_entries_tags', function (Blueprint $table) {
|
|
|
+ Schema::create('telescope_entries_tags', function (Blueprint $table) {
|
|
|
$table->uuid('entry_uuid');
|
|
|
$table->string('tag');
|
|
|
|
|
@@ -51,7 +49,7 @@ return new class extends Migration
|
|
|
->onDelete('cascade');
|
|
|
});
|
|
|
|
|
|
- $schema->create('telescope_monitoring', function (Blueprint $table) {
|
|
|
+ Schema::create('telescope_monitoring', function (Blueprint $table) {
|
|
|
$table->string('tag')->primary();
|
|
|
});
|
|
|
}
|
|
@@ -61,10 +59,8 @@ return new class extends Migration
|
|
|
*/
|
|
|
public function down(): void
|
|
|
{
|
|
|
- $schema = Schema::connection($this->getConnection());
|
|
|
-
|
|
|
- $schema->dropIfExists('telescope_entries_tags');
|
|
|
- $schema->dropIfExists('telescope_entries');
|
|
|
- $schema->dropIfExists('telescope_monitoring');
|
|
|
+ Schema::dropIfExists('telescope_entries_tags');
|
|
|
+ Schema::dropIfExists('telescope_entries');
|
|
|
+ Schema::dropIfExists('telescope_monitoring');
|
|
|
}
|
|
|
};
|