Skip to content

Commit

Permalink
Allow edit_token to be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
symkat committed Nov 20, 2021
1 parent 101b1c3 commit ad1329a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DB/etc/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ CREATE TABLE pending_blog (
-- token set in their cookies, and that token will be set here, they
-- can edit the blog until their session expires.
submitter_id int references person(id),
edit_token text not null,
edit_token text ,

state text not null,

Expand Down
8 changes: 4 additions & 4 deletions DB/lib/BlogDB/DB/Result/PendingBlog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ __PACKAGE__->table("pending_blog");
=head2 edit_token
data_type: 'text'
is_nullable: 0
is_nullable: 1
=head2 state
Expand Down Expand Up @@ -144,7 +144,7 @@ __PACKAGE__->add_columns(
"submitter_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"edit_token",
{ data_type => "text", is_nullable => 0 },
{ data_type => "text", is_nullable => 1 },
"state",
{ data_type => "text", is_nullable => 0 },
"created_at",
Expand Down Expand Up @@ -204,8 +204,8 @@ __PACKAGE__->belongs_to(
);


# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-05 14:49:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4Ms5W+IBBcccbKjRTi1z8A
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-20 18:43:08
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Nmw2JISUfm8bGD434BTYaw


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down

0 comments on commit ad1329a

Please sign in to comment.