Skip to content

Commit ad1329a

Browse files
committed
Allow edit_token to be null.
1 parent 101b1c3 commit ad1329a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DB/etc/schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CREATE TABLE pending_blog (
7676
-- token set in their cookies, and that token will be set here, they
7777
-- can edit the blog until their session expires.
7878
submitter_id int references person(id),
79-
edit_token text not null,
79+
edit_token text ,
8080

8181
state text not null,
8282

DB/lib/BlogDB/DB/Result/PendingBlog.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ __PACKAGE__->table("pending_blog");
100100
=head2 edit_token
101101
102102
data_type: 'text'
103-
is_nullable: 0
103+
is_nullable: 1
104104
105105
=head2 state
106106
@@ -144,7 +144,7 @@ __PACKAGE__->add_columns(
144144
"submitter_id",
145145
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
146146
"edit_token",
147-
{ data_type => "text", is_nullable => 0 },
147+
{ data_type => "text", is_nullable => 1 },
148148
"state",
149149
{ data_type => "text", is_nullable => 0 },
150150
"created_at",
@@ -204,8 +204,8 @@ __PACKAGE__->belongs_to(
204204
);
205205

206206

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

210210

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

0 commit comments

Comments
 (0)