File tree Expand file tree Collapse file tree 5 files changed +6
-22
lines changed Expand file tree Collapse file tree 5 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default {
36
36
message : '`token` must be a string' ,
37
37
} ,
38
38
39
- factory : ( ) => faker . random . uuid ( ) ,
39
+ factory : ( ) => faker . string . uuid ( ) ,
40
40
} ,
41
41
42
42
abilities : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default {
35
35
message : '`companyName` must be a string' ,
36
36
} ,
37
37
38
- factory : ( ) => faker . company . companyName ( ) ,
38
+ factory : ( ) => faker . company . name ( ) ,
39
39
} ,
40
40
41
41
email : {
@@ -89,7 +89,7 @@ export default {
89
89
message : '`isPersonal` must be a boolean' ,
90
90
} ,
91
91
92
- factory : ( ) => faker . random . boolean ( ) ,
92
+ factory : ( ) => faker . datatype . boolean ( ) ,
93
93
} ,
94
94
} ,
95
95
} satisfies Model
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export function migrate(buddy: CLI) {
52
52
53
53
const perf = await intro ( 'buddy migrate:fresh' )
54
54
const result = await runAction ( Action . MigrateFresh , options )
55
- const result2 = await runAction ( Action . Migrate , options )
56
55
57
56
if ( result . isErr ( ) ) {
58
57
await outro (
@@ -68,21 +67,6 @@ export function migrate(buddy: CLI) {
68
67
useSeconds : true ,
69
68
} )
70
69
71
- if ( result2 . isErr ( ) ) {
72
- await outro (
73
- 'While running the migrate command, there was an issue' ,
74
- { startTime : perf , useSeconds : true } ,
75
- result2 . error ,
76
- )
77
- process . exit ( )
78
- }
79
-
80
- const APP_ENV = process . env . APP_ENV || 'local'
81
-
82
- await outro ( `Migrated your ${ APP_ENV } database.` , {
83
- startTime : perf ,
84
- useSeconds : true ,
85
- } )
86
70
process . exit ( ExitCode . Success )
87
71
} )
88
72
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default {
36
36
message : '`token` must be a string' ,
37
37
} ,
38
38
39
- factory : ( ) => faker . random . uuid ( ) ,
39
+ factory : ( ) => faker . string . uuid ( ) ,
40
40
} ,
41
41
42
42
abilities : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default {
35
35
message : '`companyName` must be a string' ,
36
36
} ,
37
37
38
- factory : ( ) => faker . company . companyName ( ) ,
38
+ factory : ( ) => faker . company . name ( ) ,
39
39
} ,
40
40
41
41
email : {
@@ -89,7 +89,7 @@ export default {
89
89
message : '`isPersonal` must be a boolean' ,
90
90
} ,
91
91
92
- factory : ( ) => faker . random . boolean ( ) ,
92
+ factory : ( ) => faker . datatype . boolean ( ) ,
93
93
} ,
94
94
} ,
95
95
} satisfies Model
You can’t perform that action at this time.
0 commit comments