Fix remote actor creation date

This commit is contained in:
Chocobozzz
2021-05-07 09:00:09 +02:00
parent 64df4b65ae
commit a66c2e3252
10 changed files with 80 additions and 42 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config'
// ---------------------------------------------------------------------------
const LAST_MIGRATION_VERSION = 640
const LAST_MIGRATION_VERSION = 645
// ---------------------------------------------------------------------------
@@ -0,0 +1,26 @@
import * as Sequelize from 'sequelize'
async function up (utils: {
transaction: Sequelize.Transaction
queryInterface: Sequelize.QueryInterface
sequelize: Sequelize.Sequelize
db: any
}): Promise<void> {
{
const data = {
type: Sequelize.DATE,
defaultValue: null,
allowNull: true
}
await utils.queryInterface.addColumn('actor', 'remoteCreatedAt', data)
}
}
function down (options) {
throw new Error('Not implemented.')
}
export {
up,
down
}