big kahuna

This commit is contained in:
2026-08-15 23:05:57 -06:00
parent 6fec70c7c8
commit 84893662ca
25 changed files with 3886 additions and 27 deletions

60
lib/CW/Migration/03.pm Normal file
View File

@@ -0,0 +1,60 @@
package CW::Migration::03;
use Moo;
extends 'CW::Migration';
sub id {
return 3;
}
sub sql {
my $boards = [
{
id => 't',
name => 'Technology',
description => 'Programming, computing, hardware discussion'
},
{
id => 'b',
name => 'Money',
description => 'Finance, money, and business discussion'
},
{
id => 'a',
name => 'Art',
description => 'Human made art (all forms welcome) discussion'
},
{
id => 's',
name => 'Math & Science',
description => 'Math and science discussion'
},
{
id => 'g',
name => 'Games',
description => 'Video, Tabletop, TCG, gaming discussion'
},
{
id => 'm',
name => 'Meta',
description => 'Discussion about compiled.world'
}
];
my $values = join(
",",
map {
"('"
. $_->{id} . "', '"
. $_->{name} . "', '"
. $_->{description} . "')"
} @$boards
);
my $sql =
'INSERT INTO boards (id, name, description) VALUES ' . $values . ';';
return $sql;
}
1;