Skip to content

Commit

Permalink
update schema: campaign draft
Browse files Browse the repository at this point in the history
  • Loading branch information
insou22 committed Dec 7, 2021
1 parent f7655d1 commit 66e7518
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/migrations/2021-12-07-114733_campaigns/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE TABLE campaigns (
description TEXT NOT NULL,
starts_at TIMESTAMP NOT NULL,
ends_at TIMESTAMP NOT NULL,
draft BOOLEAN NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Expand Down
1 change: 1 addition & 0 deletions backend/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ diesel::table! {
description -> Text,
starts_at -> Timestamp,
ends_at -> Timestamp,
draft -> Bool,
created_at -> Timestamp,
updated_at -> Timestamp,
}
Expand Down

0 comments on commit 66e7518

Please sign in to comment.