Skip to content

Commit

Permalink
Whoops! Forgot the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
uberbrady committed Feb 8, 2024
1 parent 235b2c5 commit a5be851
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions database/migrations/2024_02_08_165209_add_fonts_to_settings.php
@@ -0,0 +1,35 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddFontsToSettings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
//
$table->string('label2_variable_font')->default('freesans');
$table->string('label2_mono_font')->default('freemono');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('settings', function (Blueprint $table) {
//
$table->dropColumn(['label2_variable_font','label2_fixed_font']);
});
}
}

0 comments on commit a5be851

Please sign in to comment.