This commit is contained in:
2026-10-06 18:51:23 -06:00
parent 8424dacd03
commit e2c26b7f21
4223 changed files with 737986 additions and 53 deletions
@@ -0,0 +1,28 @@
<?php
declare (strict_types=1);
namespace JooosiFon\Migrations;
use JooosiFon\Database\FontTable;
use JooosiFon\Database\Migration\AbstractMigration;
/**
* Create the Jooosi Fon font library table.
*/
final class Version20221121114557 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create the Jooosi Fon fonts table.';
}
public function up(): void
{
FontTable::create();
}
public function down(): void
{
/** @var wpdb $wpdb */
global $wpdb;
$sql = "DROP TABLE IF EXISTS `{$wpdb->prefix}jooosi_fon_fonts`";
$wpdb->query($sql);
}
}