The minimalistic document archiving platform.
refactor(migrations): purged legacy migrations (#453)
Corentin Thomassetfd6f83f538d3
diff --git a/apps/papra-server/drizzle.config.ts b/apps/papra-server/drizzle.config.tsindex 4f3e24e6..c41c0ff3 100644--- a/apps/papra-server/drizzle.config.ts+++ b/apps/papra-server/drizzle.config.ts@@ -4,7 +4,7 @@ import { defineConfig } from 'drizzle-kit';export default defineConfig({schema: ['./src/modules/**/*.table.ts', './src/modules/**/*.tables.ts'],dialect: 'turso',- out: './migrations',+ out: './src/migrations',dbCredentials: {url: env.DATABASE_URL ?? 'file:./db.sqlite',authToken: env.DATABASE_AUTH_TOKEN,diff --git a/apps/papra-server/migrations/0000_initial_schema_setup.sql b/apps/papra-server/migrations/0000_initial_schema_setup.sqldeleted file mode 100644index cb8c5e35..00000000--- a/apps/papra-server/migrations/0000_initial_schema_setup.sql+++ /dev/null@@ -1,172 +0,0 @@-CREATE TABLE "documents" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "is_deleted" integer DEFAULT false NOT NULL,- "deleted_at" integer,- "organization_id" text NOT NULL,- "created_by" text,- "deleted_by" text,- "original_name" text NOT NULL,- "original_size" integer DEFAULT 0 NOT NULL,- "original_storage_key" text NOT NULL,- "original_sha256_hash" text NOT NULL,- "name" text NOT NULL,- "mime_type" text NOT NULL,- "content" text DEFAULT '' NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("created_by") REFERENCES "users"("id") ON UPDATE cascade ON DELETE set null,- FOREIGN KEY ("deleted_by") REFERENCES "users"("id") ON UPDATE cascade ON DELETE set null-);---> statement-breakpoint-CREATE INDEX "documents_organization_id_is_deleted_created_at_index" ON "documents" ("organization_id","is_deleted","created_at");--> statement-breakpoint-CREATE INDEX "documents_organization_id_is_deleted_index" ON "documents" ("organization_id","is_deleted");--> statement-breakpoint-CREATE UNIQUE INDEX "documents_organization_id_original_sha256_hash_unique" ON "documents" ("organization_id","original_sha256_hash");--> statement-breakpoint-CREATE INDEX "documents_original_sha256_hash_index" ON "documents" ("original_sha256_hash");--> statement-breakpoint-CREATE INDEX "documents_organization_id_size_index" ON "documents" ("organization_id","original_size");--> statement-breakpoint-CREATE TABLE "organization_invitations" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "organization_id" text NOT NULL,- "email" text NOT NULL,- "role" text,- "status" text NOT NULL,- "expires_at" integer NOT NULL,- "inviter_id" text NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("inviter_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "organization_members" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "organization_id" text NOT NULL,- "user_id" text NOT NULL,- "role" text NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE UNIQUE INDEX "organization_members_user_organization_unique" ON "organization_members" ("organization_id","user_id");--> statement-breakpoint-CREATE TABLE "organizations" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "name" text NOT NULL,- "customer_id" text-);---> statement-breakpoint-CREATE TABLE "user_roles" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "user_id" text NOT NULL,- "role" text NOT NULL,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE INDEX "user_roles_role_index" ON "user_roles" ("role");--> statement-breakpoint-CREATE UNIQUE INDEX "user_roles_user_id_role_unique_index" ON "user_roles" ("user_id","role");--> statement-breakpoint-CREATE TABLE "documents_tags" (- "document_id" text NOT NULL,- "tag_id" text NOT NULL,- PRIMARY KEY("document_id", "tag_id"),- FOREIGN KEY ("document_id") REFERENCES "documents"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("tag_id") REFERENCES "tags"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "tags" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "organization_id" text NOT NULL,- "name" text NOT NULL,- "color" text NOT NULL,- "description" text,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE UNIQUE INDEX "tags_organization_id_name_unique" ON "tags" ("organization_id","name");--> statement-breakpoint-CREATE TABLE "users" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "email" text NOT NULL,- "email_verified" integer DEFAULT false NOT NULL,- "name" text,- "image" text,- "max_organization_count" integer-);---> statement-breakpoint-CREATE UNIQUE INDEX "users_email_unique" ON "users" ("email");--> statement-breakpoint-CREATE INDEX "users_email_index" ON "users" ("email");--> statement-breakpoint-CREATE TABLE "auth_accounts" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "user_id" text,- "account_id" text NOT NULL,- "provider_id" text NOT NULL,- "access_token" text,- "refresh_token" text,- "access_token_expires_at" integer,- "refresh_token_expires_at" integer,- "scope" text,- "id_token" text,- "password" text,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "auth_sessions" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "token" text NOT NULL,- "user_id" text,- "expires_at" integer NOT NULL,- "ip_address" text,- "user_agent" text,- "active_organization_id" text,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("active_organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE set null-);---> statement-breakpoint-CREATE INDEX "auth_sessions_token_index" ON "auth_sessions" ("token");--> statement-breakpoint-CREATE TABLE "auth_verifications" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "identifier" text NOT NULL,- "value" text NOT NULL,- "expires_at" integer NOT NULL-);---> statement-breakpoint-CREATE INDEX "auth_verifications_identifier_index" ON "auth_verifications" ("identifier");--> statement-breakpoint-CREATE TABLE "intake_emails" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "email_address" text NOT NULL,- "organization_id" text NOT NULL,- "allowed_origins" text DEFAULT '[]' NOT NULL,- "is_enabled" integer DEFAULT true NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE UNIQUE INDEX "intake_emails_email_address_unique" ON "intake_emails" ("email_address");--> statement-breakpoint-CREATE TABLE "organization_subscriptions" (- "id" text PRIMARY KEY NOT NULL,- "customer_id" text NOT NULL,- "organization_id" text NOT NULL,- "plan_id" text NOT NULL,- "status" text NOT NULL,- "seats_count" integer NOT NULL,- "current_period_end" integer NOT NULL,- "current_period_start" integer NOT NULL,- "cancel_at_period_end" integer DEFAULT false NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade-);diff --git a/apps/papra-server/migrations/0001_documents_fts.sql b/apps/papra-server/migrations/0001_documents_fts.sqldeleted file mode 100644index 7e5095dd..00000000--- a/apps/papra-server/migrations/0001_documents_fts.sql+++ /dev/null@@ -1,23 +0,0 @@--- Migration for adding full-text search virtual table for documents--CREATE VIRTUAL TABLE documents_fts USING fts5(id UNINDEXED, name, original_name, content, prefix='2 3 4');---> statement-breakpoint---- Copy data from documents to documents_fts for existing records-INSERT INTO documents_fts(id, name, original_name, content)-SELECT id, name, original_name, content FROM documents;---> statement-breakpoint--CREATE TRIGGER trigger_documents_fts_insert AFTER INSERT ON documents BEGIN- INSERT INTO documents_fts(id, name, original_name, content) VALUES (new.id, new.name, new.original_name, new.content);-END;---> statement-breakpoint--CREATE TRIGGER trigger_documents_fts_update AFTER UPDATE ON documents BEGIN- UPDATE documents_fts SET name = new.name, original_name = new.original_name, content = new.content WHERE id = new.id;-END;---> statement-breakpoint--CREATE TRIGGER trigger_documents_fts_delete AFTER DELETE ON documents BEGIN- DELETE FROM documents_fts WHERE id = old.id;-END;diff --git a/apps/papra-server/migrations/0002_tagging_rules.sql b/apps/papra-server/migrations/0002_tagging_rules.sqldeleted file mode 100644index 9257b320..00000000--- a/apps/papra-server/migrations/0002_tagging_rules.sql+++ /dev/null@@ -1,32 +0,0 @@-CREATE TABLE "tagging_rule_actions" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "tagging_rule_id" text NOT NULL,- "tag_id" text NOT NULL,- FOREIGN KEY ("tagging_rule_id") REFERENCES "tagging_rules"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("tag_id") REFERENCES "tags"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "tagging_rule_conditions" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "tagging_rule_id" text NOT NULL,- "field" text NOT NULL,- "operator" text NOT NULL,- "value" text NOT NULL,- "is_case_sensitive" integer DEFAULT false NOT NULL,- FOREIGN KEY ("tagging_rule_id") REFERENCES "tagging_rules"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "tagging_rules" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "organization_id" text NOT NULL,- "name" text NOT NULL,- "description" text,- "enabled" integer DEFAULT true NOT NULL,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade-);diff --git a/apps/papra-server/migrations/0003_api-keys.sql b/apps/papra-server/migrations/0003_api-keys.sqldeleted file mode 100644index 1747a892..00000000--- a/apps/papra-server/migrations/0003_api-keys.sql+++ /dev/null@@ -1,24 +0,0 @@-CREATE TABLE "api_key_organizations" (- "api_key_id" text NOT NULL,- "organization_member_id" text NOT NULL,- FOREIGN KEY ("api_key_id") REFERENCES "api_keys"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("organization_member_id") REFERENCES "organization_members"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "api_keys" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "name" text NOT NULL,- "key_hash" text NOT NULL,- "prefix" text NOT NULL,- "user_id" text NOT NULL,- "last_used_at" integer,- "expires_at" integer,- "permissions" text DEFAULT '[]' NOT NULL,- "all_organizations" integer DEFAULT false NOT NULL,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE UNIQUE INDEX "api_keys_key_hash_unique" ON "api_keys" ("key_hash");--> statement-breakpoint-CREATE INDEX "key_hash_index" ON "api_keys" ("key_hash");\ No newline at end of filediff --git a/apps/papra-server/migrations/0004_organizations-webhooks.sql b/apps/papra-server/migrations/0004_organizations-webhooks.sqldeleted file mode 100644index a9a50f9b..00000000--- a/apps/papra-server/migrations/0004_organizations-webhooks.sql+++ /dev/null@@ -1,35 +0,0 @@-CREATE TABLE "webhook_deliveries" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "webhook_id" text NOT NULL,- "event_name" text NOT NULL,- "request_payload" text NOT NULL,- "response_payload" text NOT NULL,- "response_status" integer NOT NULL,- FOREIGN KEY ("webhook_id") REFERENCES "webhooks"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE "webhook_events" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "webhook_id" text NOT NULL,- "event_name" text NOT NULL,- FOREIGN KEY ("webhook_id") REFERENCES "webhooks"("id") ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE UNIQUE INDEX "webhook_events_webhook_id_event_name_unique" ON "webhook_events" ("webhook_id","event_name");--> statement-breakpoint-CREATE TABLE "webhooks" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "updated_at" integer NOT NULL,- "name" text NOT NULL,- "url" text NOT NULL,- "secret" text,- "enabled" integer DEFAULT true NOT NULL,- "created_by" text,- "organization_id" text,- FOREIGN KEY ("created_by") REFERENCES "users"("id") ON UPDATE cascade ON DELETE set null,- FOREIGN KEY ("organization_id") REFERENCES "organizations"("id") ON UPDATE cascade ON DELETE cascade-);diff --git a/apps/papra-server/migrations/0005_organizations-invitations-improvement.sql b/apps/papra-server/migrations/0005_organizations-invitations-improvement.sqldeleted file mode 100644index 76830392..00000000--- a/apps/papra-server/migrations/0005_organizations-invitations-improvement.sql+++ /dev/null@@ -1,4 +0,0 @@--ALTER TABLE "organization_invitations" ALTER COLUMN "role" TO "role" text NOT NULL;--> statement-breakpoint-CREATE UNIQUE INDEX "organization_invitations_organization_email_unique" ON "organization_invitations" ("organization_id","email");--> statement-breakpoint-ALTER TABLE "organization_invitations" ALTER COLUMN "status" TO "status" text NOT NULL DEFAULT 'pending';\ No newline at end of filediff --git a/apps/papra-server/migrations/0006_document-activity-log.sql b/apps/papra-server/migrations/0006_document-activity-log.sqldeleted file mode 100644index a8fdebf8..00000000--- a/apps/papra-server/migrations/0006_document-activity-log.sql+++ /dev/null@@ -1,12 +0,0 @@-CREATE TABLE "document_activity_log" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "document_id" text NOT NULL,- "event" text NOT NULL,- "event_data" text,- "user_id" text,- "tag_id" text,- FOREIGN KEY ("document_id") REFERENCES "documents"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE no action,- FOREIGN KEY ("tag_id") REFERENCES "tags"("id") ON UPDATE cascade ON DELETE no action-);diff --git a/apps/papra-server/migrations/0007_document-activity-log-on-delete-set-null.sql b/apps/papra-server/migrations/0007_document-activity-log-on-delete-set-null.sqldeleted file mode 100644index 4ebf1cfc..00000000--- a/apps/papra-server/migrations/0007_document-activity-log-on-delete-set-null.sql+++ /dev/null@@ -1,18 +0,0 @@-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE "__new_document_activity_log" (- "id" text PRIMARY KEY NOT NULL,- "created_at" integer NOT NULL,- "document_id" text NOT NULL,- "event" text NOT NULL,- "event_data" text,- "user_id" text,- "tag_id" text,- FOREIGN KEY ("document_id") REFERENCES "documents"("id") ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY ("user_id") REFERENCES "users"("id") ON UPDATE cascade ON DELETE set null,- FOREIGN KEY ("tag_id") REFERENCES "tags"("id") ON UPDATE cascade ON DELETE set null-);---> statement-breakpoint-INSERT INTO "__new_document_activity_log"("id", "created_at", "document_id", "event", "event_data", "user_id", "tag_id") SELECT "id", "created_at", "document_id", "event", "event_data", "user_id", "tag_id" FROM "document_activity_log";--> statement-breakpoint-DROP TABLE "document_activity_log";--> statement-breakpoint-ALTER TABLE "__new_document_activity_log" RENAME TO "document_activity_log";--> statement-breakpoint-PRAGMA foreign_keys=ON;\ No newline at end of filediff --git a/apps/papra-server/migrations/meta/0000_snapshot.json b/apps/papra-server/src/migrations/meta/0000_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0000_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0000_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0001_snapshot.json b/apps/papra-server/src/migrations/meta/0001_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0001_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0001_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0002_snapshot.json b/apps/papra-server/src/migrations/meta/0002_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0002_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0002_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0003_snapshot.json b/apps/papra-server/src/migrations/meta/0003_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0003_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0003_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0004_snapshot.json b/apps/papra-server/src/migrations/meta/0004_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0004_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0004_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0005_snapshot.json b/apps/papra-server/src/migrations/meta/0005_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0005_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0005_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0006_snapshot.json b/apps/papra-server/src/migrations/meta/0006_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0006_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0006_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/0007_snapshot.json b/apps/papra-server/src/migrations/meta/0007_snapshot.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/0007_snapshot.jsonrename to apps/papra-server/src/migrations/meta/0007_snapshot.jsondiff --git a/apps/papra-server/migrations/meta/_journal.json b/apps/papra-server/src/migrations/meta/_journal.jsonsimilarity index 100%rename from apps/papra-server/migrations/meta/_journal.jsonrename to apps/papra-server/src/migrations/meta/_journal.jsondiff --git a/apps/papra-server/src/migrations/migrations.registry.test.ts b/apps/papra-server/src/migrations/migrations.registry.test.tsindex c3101856..2f56f75b 100644--- a/apps/papra-server/src/migrations/migrations.registry.test.ts+++ b/apps/papra-server/src/migrations/migrations.registry.test.ts@@ -1,11 +1,8 @@import type { Migration } from './migrations.types';-import { join } from 'node:path';import { sql } from 'drizzle-orm';-import { migrate } from 'drizzle-orm/libsql/migrator';import { describe, expect, test } from 'vitest';import { setupDatabase } from '../modules/app/database/database';import { serializeSchema } from '../modules/app/database/database.test-utils';-import { getRootDirPath } from '../modules/shared/path';import { migrations } from './migrations.registry';import { rollbackLastAppliedMigration, runMigrations } from './migrations.usecases';@@ -140,30 +137,5 @@ describe('migrations registry', () => {expect(await serializeSchema({ db })).to.eq(dbState);});-- test('the new migrations system bring the database in the same state as the drizzle built-in migrations', async () => {- const { db: drizzleDb } = setupDatabase({ url: ':memory:' });-- await migrate(drizzleDb, { migrationsFolder: join(getRootDirPath(), 'migrations') });-- const drizzleSchemaRaw = await serializeSchema({ db: drizzleDb });-- // Remove the migrations table from the schema- const drizzleSchema = drizzleSchemaRaw.split('\n').filter(line => !line.startsWith('CREATE TABLE "__drizzle_migrations')).join('\n');-- const { db } = setupDatabase({ url: ':memory:' });-- await runMigrations({ db, migrations: migrations.slice(0, 8) });-- const papraSchemaRaw = await serializeSchema({ db });- const papraSchema = papraSchemaRaw.split('\n').filter(line =>- !line.startsWith('CREATE TABLE migrations')- && !line.startsWith('CREATE INDEX migrations_')- && !line.startsWith('CREATE TABLE sqlite_sequence(name,seq)'),-- ).join('\n');-- expect(papraSchema).to.eq(drizzleSchema);- });});});diff --git a/apps/papra-server/src/migrations/migrations.registry.ts b/apps/papra-server/src/migrations/migrations.registry.tsindex 356c5bd5..21ecf0f1 100644--- a/apps/papra-server/src/migrations/migrations.registry.ts+++ b/apps/papra-server/src/migrations/migrations.registry.ts@@ -8,7 +8,6 @@ import { organizationsWebhooksMigration } from './list/0005-organizations-webhooimport { organizationsInvitationsImprovementMigration } from './list/0006-organizations-invitations-improvement.migration';import { documentActivityLogMigration } from './list/0007-document-activity-log.migration';import { documentActivityLogOnDeleteSetNullMigration } from './list/0008-document-activity-log-on-delete-set-null.migration';-import { dropLegacyMigrationsMigration } from './list/0009-drop-legacy-migrations.migration';export const migrations: Migration[] = [