Skip to content

Commit

Permalink
feat: make display default 1 in database
Browse files Browse the repository at this point in the history
  • Loading branch information
matteopolak committed Mar 27, 2024
1 parent e0419e3 commit e94f44f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![allow(clippy::similar_names)]
#![allow(clippy::enum_glob_use)]
#![allow(clippy::wildcard_imports)]
#![allow(clippy::get_first)]
#![feature(let_chains)]
#![feature(exclusive_range_pattern)]
#![feature(assert_matches)]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
ALTER TABLE "user" ALTER COLUMN "display" SET DEFAULT 0;
2 changes: 2 additions & 0 deletions migrations/2024-03-27-190350_default_faithful_display/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Your SQL goes here
ALTER TABLE "user" ALTER COLUMN "display" SET DEFAULT 1;

0 comments on commit e94f44f

Please sign in to comment.