<?php

use Spatie\LaravelSettings\Migrations\SettingsMigration;

return new class extends SettingsMigration
{
    public function up(): void
    {
        $this->migrator->inGroup('general', function ($blueprint): void {
            // New posts in admin default to markdown.
            $blueprint->add('default_content_format', 'markdown');
            // Import keeps sablog HTML unless --convert-to-markdown is passed.
            $blueprint->add('import_content_format', 'html');
            // When true, sablog:import may convert HTML body to Markdown.
            $blueprint->add('import_convert_html_to_markdown', false);
        });
    }
};
