Line data Source code
1 : import type { SessionMigrationStep } from '../session_migration.js';
2 :
3 : /// Sessions no longer copy the catalog of their connection, the connection holds the only one.
4 : ///
5 : /// Version 6 kept a copy of the catalog of the default connection in the session folder. The storage
6 : /// step `sessionCatalogsToConnections` seeds connections without a catalog from those copies before
7 : /// the copies are removed.
8 1 : export const catalogsOfConnections: SessionMigrationStep = {
9 1 : version: 7,
10 1 : description: 'Remove the catalog copies of the session',
11 1 : async migrate(folder) {
12 1 : await folder.remove('dashql-catalog-relations.sql');
13 1 : await folder.remove('dashql-catalog-functions.sql');
14 1 : await folder.remove('dashql-catalog-changes.sql');
15 1 : },
16 1 : };
|