mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 08:46:58 +02:00
chore(core): Remove role table (#15172)
This commit is contained in:
parent
86807978c1
commit
90f662e229
|
|
@ -0,0 +1,13 @@
|
|||
import type { IrreversibleMigration, MigrationContext } from '@/databases/types';
|
||||
|
||||
/**
|
||||
* Drop the `role` table introduced by `CreateUserManagement1646992772331` and later
|
||||
* abandoned with the move to `@n8n/permissions` in https://github.com/n8n-io/n8n/pull/7650
|
||||
*
|
||||
* Irreversible as there is no use case for restoring a long unused table.
|
||||
*/
|
||||
export class DropRoleTable1745934666077 implements IrreversibleMigration {
|
||||
async up({ schemaBuilder: { dropTable } }: MigrationContext) {
|
||||
await dropTable('role');
|
||||
}
|
||||
}
|
||||
|
|
@ -86,6 +86,7 @@ import { RenameAnalyticsToInsights1741167584277 } from '../common/1741167584277-
|
|||
import { AddScopesColumnToApiKeys1742918400000 } from '../common/1742918400000-AddScopesColumnToApiKeys';
|
||||
import { AddWorkflowStatisticsRootCount1745587087521 } from '../common/1745587087521-AddWorkflowStatisticsRootCount';
|
||||
import { AddWorkflowArchivedColumn1745934666076 } from '../common/1745934666076-AddWorkflowArchivedColumn';
|
||||
import { DropRoleTable1745934666077 } from '../common/1745934666077-DropRoleTable';
|
||||
import { UpdateParentFolderIdColumn1740445074052 } from '../mysqldb/1740445074052-UpdateParentFolderIdColumn';
|
||||
|
||||
export const mysqlMigrations: Migration[] = [
|
||||
|
|
@ -176,4 +177,5 @@ export const mysqlMigrations: Migration[] = [
|
|||
AddScopesColumnToApiKeys1742918400000,
|
||||
AddWorkflowStatisticsRootCount1745587087521,
|
||||
AddWorkflowArchivedColumn1745934666076,
|
||||
DropRoleTable1745934666077,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ import { RenameAnalyticsToInsights1741167584277 } from '../common/1741167584277-
|
|||
import { AddScopesColumnToApiKeys1742918400000 } from '../common/1742918400000-AddScopesColumnToApiKeys';
|
||||
import { AddWorkflowStatisticsRootCount1745587087521 } from '../common/1745587087521-AddWorkflowStatisticsRootCount';
|
||||
import { AddWorkflowArchivedColumn1745934666076 } from '../common/1745934666076-AddWorkflowArchivedColumn';
|
||||
import { DropRoleTable1745934666077 } from '../common/1745934666077-DropRoleTable';
|
||||
|
||||
export const postgresMigrations: Migration[] = [
|
||||
InitialMigration1587669153312,
|
||||
|
|
@ -174,4 +175,5 @@ export const postgresMigrations: Migration[] = [
|
|||
AddScopesColumnToApiKeys1742918400000,
|
||||
AddWorkflowStatisticsRootCount1745587087521,
|
||||
AddWorkflowArchivedColumn1745934666076,
|
||||
DropRoleTable1745934666077,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ import { CreateAnalyticsTables1739549398681 } from '../common/1739549398681-Crea
|
|||
import { RenameAnalyticsToInsights1741167584277 } from '../common/1741167584277-RenameAnalyticsToInsights';
|
||||
import { AddWorkflowStatisticsRootCount1745587087521 } from '../common/1745587087521-AddWorkflowStatisticsRootCount';
|
||||
import { AddWorkflowArchivedColumn1745934666076 } from '../common/1745934666076-AddWorkflowArchivedColumn';
|
||||
import { DropRoleTable1745934666077 } from '../common/1745934666077-DropRoleTable';
|
||||
|
||||
const sqliteMigrations: Migration[] = [
|
||||
InitialMigration1588102412422,
|
||||
|
|
@ -168,6 +169,7 @@ const sqliteMigrations: Migration[] = [
|
|||
AddScopesColumnToApiKeys1742918400000,
|
||||
AddWorkflowStatisticsRootCount1745587087521,
|
||||
AddWorkflowArchivedColumn1745934666076,
|
||||
DropRoleTable1745934666077,
|
||||
];
|
||||
|
||||
export { sqliteMigrations };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user