File tree 4 files changed +872
-795
lines changed
4 files changed +872
-795
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,14 @@ $ sequelize db:seed:undo:all
43
43
```
44
44
45
45
## I am getting an error when attempting to create a model with an enum type.
46
- The brackets ` {} ` likely need to be quoted in your shell
46
+ The brackets ` {} ` likely need to be quoted in your shell or there needs to be a space between the values
47
47
```
48
48
sequelize model:create --name User --attributes role:enum:'{Admin,Guest}'
49
49
```
50
+ or
51
+ ```
52
+ sequelize model:create --name User --attributes role:enum:'{Admin, Guest}'
53
+ ```
50
54
or possibly
51
55
```
52
56
sequelize model:create --name User --attributes role:enum:\{Admin,Guest\}
Original file line number Diff line number Diff line change 21
21
"yargs" : " ^16.2.0"
22
22
},
23
23
"devDependencies" : {
24
- "@babel/cli" : " 7.20.7 " ,
25
- "@babel/core" : " 7.20.12 " ,
26
- "@babel/preset-env" : " 7.20.2 " ,
27
- "@babel/register" : " 7.18.9 " ,
28
- "@commitlint/cli" : " 17.4.2 " ,
29
- "@commitlint/config-angular" : " 17.4.2 " ,
24
+ "@babel/cli" : " 7.21.5 " ,
25
+ "@babel/core" : " 7.22.1 " ,
26
+ "@babel/preset-env" : " 7.22.4 " ,
27
+ "@babel/register" : " 7.21.0 " ,
28
+ "@commitlint/cli" : " 17.6.5 " ,
29
+ "@commitlint/config-angular" : " 17.6.5 " ,
30
30
"bluebird" : " 3.7.2" ,
31
31
"eslint" : " 7.32.0" ,
32
- "eslint-config-prettier" : " 8.6 .0" ,
32
+ "eslint-config-prettier" : " 8.8 .0" ,
33
33
"eslint-plugin-prettier" : " 4.2.1" ,
34
34
"expect.js" : " 0.3.1" ,
35
35
"gulp" : " 4.0.2" ,
36
36
"husky" : " 8.0.3" ,
37
- "lint-staged" : " 13.1.0 " ,
37
+ "lint-staged" : " 13.2.2 " ,
38
38
"mocha" : " 9.2.2" ,
39
- "mysql2" : " latest " ,
39
+ "mysql2" : " 3.2.0 " ,
40
40
"pg" : " latest" ,
41
41
"pg-hstore" : " latest" ,
42
- "prettier" : " 2.8.3 " ,
43
- "semver" : " 7.3.8 " ,
44
- "sequelize" : " 6.28 .0" ,
42
+ "prettier" : " 2.8.8 " ,
43
+ "semver" : " 7.5.1 " ,
44
+ "sequelize" : " 6.32 .0" ,
45
45
"sqlite3" : " latest" ,
46
46
"through2" : " 4.0.2"
47
47
},
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export async function getMigrator(type, args) {
46
46
migrations : {
47
47
params : [ sequelize . getQueryInterface ( ) , Sequelize ] ,
48
48
path : helpers . path . getPath ( type ) ,
49
- pattern : / ^ (? ! .* \. d \. t s $ ) .* \. ( c j s | j s | t s ) $ / ,
49
+ pattern : / ^ (? ! .* \. d \. t s $ ) .* \. ( c j s | j s | c t s | t s ) $ / ,
50
50
} ,
51
51
} ) ;
52
52
You can’t perform that action at this time.
0 commit comments