Undo this, doesn't do anything useful
This commit is contained in:
parent
24ab0066b7
commit
f56e996fb1
|
@ -85,7 +85,7 @@ sub startup($self) {
|
||||||
# Finish configuring some things
|
# Finish configuring some things
|
||||||
$self->secrets($self->config->{'secrets'}) || die $@;
|
$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'}) {
|
if (my $threads_per_page = $self->config->{'threads_per_page'}) {
|
||||||
$self->thread->per_page($threads_per_page)
|
$self->thread->per_page($threads_per_page)
|
||||||
|
|
7
migrations/13/down.sql
Normal file
7
migrations/13/down.sql
Normal 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
9
migrations/13/up.sql
Normal 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;
|
Loading…
Reference in a new issue