@@ -10,22 +10,22 @@ module.exports = {
10
10
const transaction = await queryInterface . sequelize . transaction ( )
11
11
try {
12
12
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'min_salary' ,
13
- { type : Sequelize . INTEGER , allowNull : false } ,
13
+ { type : Sequelize . INTEGER , allowNull : true } ,
14
14
{ transaction } )
15
15
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'max_salary' ,
16
- { type : Sequelize . INTEGER , allowNull : false } ,
16
+ { type : Sequelize . INTEGER , allowNull : true } ,
17
17
{ transaction } )
18
18
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'hours_per_week' ,
19
- { type : Sequelize . INTEGER , allowNull : false } ,
19
+ { type : Sequelize . INTEGER , allowNull : true } ,
20
20
{ transaction } )
21
21
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'job_location' ,
22
- { type : Sequelize . STRING ( 255 ) , allowNull : false } ,
22
+ { type : Sequelize . STRING ( 255 ) , allowNull : true } ,
23
23
{ transaction } )
24
24
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'job_timezone' ,
25
- { type : Sequelize . STRING ( 128 ) , allowNull : false } ,
25
+ { type : Sequelize . STRING ( 128 ) , allowNull : true } ,
26
26
{ transaction } )
27
27
await queryInterface . addColumn ( { tableName : 'jobs' , schema : config . DB_SCHEMA_NAME } , 'currency' ,
28
- { type : Sequelize . STRING ( 30 ) , allowNull : false } ,
28
+ { type : Sequelize . STRING ( 30 ) , allowNull : true } ,
29
29
{ transaction } )
30
30
await queryInterface . addColumn ( { tableName : 'job_candidates' , schema : config . DB_SCHEMA_NAME } , 'remark' ,
31
31
{ type : Sequelize . STRING ( 255 ) } ,
0 commit comments