Skip to content

Commit 32f3347

Browse files
author
Nino van Galen
committed
fix: changed capitalized drop table names to lowercase
1 parent 830f1b3 commit 32f3347

6 files changed

Lines changed: 6 additions & 10 deletions

lib/database/migrations/20200505195925-create-log.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ module.exports = {
3838
announcement_valid_until: {
3939
type: Sequelize.DATE,
4040
},
41-
user_id: {
42-
allowNull: false,
43-
type: Sequelize.INTEGER,
44-
},
4541
created_at: {
4642
allowNull: false,
4743
type: Sequelize.DATE,
@@ -54,5 +50,5 @@ module.exports = {
5450
timestamps: true,
5551
}),
5652

57-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('Logs'),
53+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('logs'),
5854
};

lib/database/migrations/20200505205233-create-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ module.exports = {
3838
type: Sequelize.DATE,
3939
},
4040
}),
41-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('Users'),
41+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('users'),
4242
};

lib/database/migrations/20200505214213-create-run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ module.exports = {
6868
},
6969
}),
7070

71-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('Runs'),
71+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('runs'),
7272
};

lib/database/migrations/20200506003500-create-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ module.exports = {
3333
},
3434
}),
3535

36-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('Tags'),
36+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('tags'),
3737
};

lib/database/migrations/20200506004950-create-flp-roles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ module.exports = {
4141
},
4242
}),
4343

44-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('FlpRoles'),
44+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('flp_roles'),
4545
};

lib/database/migrations/20200506093229-create-epn-role-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ module.exports = {
5353
},
5454
}),
5555

56-
down: (queryInterface, _Sequelize) => queryInterface.dropTable('EpnRoleSessions'),
56+
down: (queryInterface, _Sequelize) => queryInterface.dropTable('epn_role_sessions'),
5757
};

0 commit comments

Comments
 (0)