Skip to content
Snippets Groups Projects
Unverified Commit b3ca5777 authored by Louis's avatar Louis :fire:
Browse files

Add oauth client 'internal' property, fix metrics table down migration

parent 1a743a08
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,9 @@ module.exports = {
},
down: (migration, Types) => {
return migration.sequelize.dropTable('metrics')
return migration.sequelize.transaction(async t => {
await migration.removeIndex('metrics', 'metrics_id_idx', { transaction: t })
await migration.dropTable('metrics', { transaction: t })
})
},
}
\ No newline at end of file
}
......@@ -30,6 +30,11 @@ module.exports = {
type: Types.ARRAY(Types.TEXT),
allowNull: false,
},
internal: {
type: Types.BOOLEAN,
allowNull: false,
defaultValue: false,
},
meta: {
type: Types.JSONB,
defaultValue: {},
......@@ -56,4 +61,4 @@ module.exports = {
down: (migration, Types) => {
return migration.dropTable('oauth_clients')
},
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment