@axiom-lattice/pg-stores 1.0.93 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2334,6 +2334,24 @@ var addProjectConfigColumn = {
2334
2334
  }
2335
2335
  };
2336
2336
 
2337
+ // src/migrations/drop_project_folder_path.ts
2338
+ var dropProjectFolderPathColumn = {
2339
+ version: 162,
2340
+ name: "drop_project_folder_path_column",
2341
+ up: async (client) => {
2342
+ await client.query(`
2343
+ ALTER TABLE lattice_projects
2344
+ DROP COLUMN IF EXISTS folder_path
2345
+ `);
2346
+ },
2347
+ down: async (client) => {
2348
+ await client.query(`
2349
+ ALTER TABLE lattice_projects
2350
+ ADD COLUMN IF NOT EXISTS folder_path TEXT
2351
+ `);
2352
+ }
2353
+ };
2354
+
2337
2355
  // src/stores/PostgreSQLProjectStore.ts
2338
2356
  var PostgreSQLProjectStore = class {
2339
2357
  constructor(options) {
@@ -2355,6 +2373,7 @@ var PostgreSQLProjectStore = class {
2355
2373
  this.migrationManager = new MigrationManager(this.pool);
2356
2374
  this.migrationManager.register(createProjectsTable);
2357
2375
  this.migrationManager.register(addProjectConfigColumn);
2376
+ this.migrationManager.register(dropProjectFolderPathColumn);
2358
2377
  if (options.autoMigrate !== false) {
2359
2378
  this.initialize().catch((error) => {
2360
2379
  console.error("Failed to initialize PostgreSQLProjectStore:", error);