blob: 41a10cfa62a9e9e67c3d6883b053f0e9711acd66 [file]
'use strict'
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.changeColumn('gitlab_commits', 'authored_date', {
type: 'timestamptz using cast(authored_date as timestamptz)'
})
await queryInterface.changeColumn('gitlab_commits', 'authored_date', {
type: Sequelize.DATE
})
await queryInterface.changeColumn('gitlab_commits', 'committed_date', {
type: 'timestamptz using cast(committed_date as timestamptz)'
})
await queryInterface.changeColumn('gitlab_commits', 'committed_date', {
type: Sequelize.DATE
})
},
down: async (queryInterface, Sequelize) => {
await queryInterface.changeColumn('gitlab_commits', 'authored_date', {
type: Sequelize.STRING
})
await queryInterface.changeColumn('gitlab_commits', 'committed_date', {
type: Sequelize.STRING
})
}
}