mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
🏗 Dropped oauth
table
refs https://github.com/TryGhost/Toolbox/issues/309 - we're removing the OAuth prototype and the table was never used, so we should be good to drop it - this commit adds a migration to drop the table
This commit is contained in:
parent
63f62c3302
commit
1c12557c46
5 changed files with 4 additions and 14 deletions
|
@ -16,7 +16,6 @@ const BACKUP_TABLES = [
|
|||
'migrations',
|
||||
'migrations_lock',
|
||||
'newsletters',
|
||||
'oauth',
|
||||
'permissions',
|
||||
'permissions_roles',
|
||||
'permissions_users',
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
const {dropTables} = require('../../utils');
|
||||
|
||||
module.exports = dropTables(['oauth']);
|
|
@ -142,17 +142,6 @@ module.exports = {
|
|||
updated_at: {type: 'dateTime', nullable: true},
|
||||
updated_by: {type: 'string', maxlength: 24, nullable: true}
|
||||
},
|
||||
// @deprecated: oauth prototype needs to be removed so we can reimplement
|
||||
oauth: {
|
||||
id: {type: 'string', maxlength: 24, nullable: false, primary: true},
|
||||
provider: {type: 'string', maxlength: 50, nullable: false},
|
||||
provider_id: {type: 'string', maxlength: 191, nullable: false},
|
||||
access_token: {type: 'text', maxlength: 65535, nullable: true},
|
||||
refresh_token: {type: 'text', maxlength: 2000, nullable: true},
|
||||
created_at: {type: 'dateTime', nullable: false},
|
||||
updated_at: {type: 'dateTime', nullable: true},
|
||||
user_id: {type: 'string', maxlength: 24, nullable: false, references: 'users.id'}
|
||||
},
|
||||
posts_authors: {
|
||||
id: {type: 'string', maxlength: 24, nullable: false, primary: true},
|
||||
post_id: {type: 'string', maxlength: 24, nullable: false, references: 'posts.id'},
|
||||
|
|
|
@ -51,7 +51,6 @@ describe('Exporter', function () {
|
|||
'migrations_lock',
|
||||
'mobiledoc_revisions',
|
||||
'newsletters',
|
||||
'oauth',
|
||||
'offers',
|
||||
'offer_redemptions',
|
||||
'permissions',
|
||||
|
|
|
@ -35,7 +35,7 @@ const validateRouteSettings = require('../../../../../core/server/services/route
|
|||
*/
|
||||
describe('DB version integrity', function () {
|
||||
// Only these variables should need updating
|
||||
const currentSchemaHash = 'c38b892b9d0667c57c21e850c0fb1998';
|
||||
const currentSchemaHash = 'eb4e97aa5f59cb0b53b0cb5a6a833e94';
|
||||
const currentFixturesHash = 'ab89cbc5cfb7b977c34b2de00e1bea40';
|
||||
const currentSettingsHash = 'ffd899a82b0ad2886e92d8244bcbca6a';
|
||||
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';
|
||||
|
|
Loading…
Reference in a new issue