File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ exports . up = knex =>
2
+ knex . schema . table ( 'settings' , ( table ) => {
3
+ table . boolean ( 'enable_card_animations' ) . defaultTo ( 1 ) . alter ( ) ;
4
+ table . boolean ( 'show_top_sites' ) . defaultTo ( 1 ) . alter ( ) ;
5
+ table . boolean ( 'app_insane_mode' ) . defaultTo ( 1 ) ;
6
+ } ) ;
7
+
8
+ exports . down = knex =>
9
+ knex . schema . table ( 'settings' , ( table ) => {
10
+ table . dropColumn ( 'app_insane_mode' ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const getByUserId = userId =>
12
12
enableCardAnimations : row . enableCardAnimations === 1 ,
13
13
showTopSites : row . showTopSites === 1 ,
14
14
insaneMode : row . insaneMode === 1 ,
15
+ appInsaneMode : row . appInsaneMode === 1 ,
15
16
} ) )
16
17
. then ( res => ( res . length ? res [ 0 ] : null ) )
17
18
. then ( ( res ) => {
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ router.post(
29
29
showTopSites : boolean ( ) ,
30
30
enableCardAnimations : boolean ( ) ,
31
31
insaneMode : boolean ( ) ,
32
+ appInsaneMode : boolean ( ) ,
32
33
} ) ,
33
34
} , {
34
35
stripUnknown : true ,
You can’t perform that action at this time.
0 commit comments