Undo this, doesn't do anything useful

This commit is contained in:
swagg boi 2023-08-24 19:12:26 -04:00
parent 24ab0066b7
commit f56e996fb1
3 changed files with 17 additions and 1 deletions

View file

@ -85,7 +85,7 @@ sub startup($self) {
# Finish configuring some things
$self->secrets($self->config->{'secrets'}) || die $@;
$self->pg->migrations->from_dir('migrations')->migrate(12);
$self->pg->migrations->from_dir('migrations')->migrate(13);
if (my $threads_per_page = $self->config->{'threads_per_page'}) {
$self->thread->per_page($threads_per_page)

7
migrations/13/down.sql Normal file
View file

@ -0,0 +1,7 @@
ALTER TABLE threads
ALTER COLUMN thread_body
SET NOT NULL;
ALTER TABLE remarks
ALTER COLUMN remark_body
SET NOT NULL;

9
migrations/13/up.sql Normal file
View file

@ -0,0 +1,9 @@
-- Nvm this isn't how NULL works in SQL lol
ALTER TABLE threads
ALTER COLUMN thread_body
DROP NOT NULL;
ALTER TABLE remarks
ALTER COLUMN remark_body
DROP NOT NULL;