clhq-postgres-module 1.1.0-alpha.187 → 1.1.0-alpha.189

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.
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class AddSupabaseMigrationCompatColumns1713000000057 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddSupabaseMigrationCompatColumns1713000000057 = void 0;
4
+ class AddSupabaseMigrationCompatColumns1713000000057 {
5
+ constructor() {
6
+ this.name = 'AddSupabaseMigrationCompatColumns1713000000057';
7
+ }
8
+ async up(queryRunner) {
9
+ await queryRunner.query(`
10
+ ALTER TABLE editor_projects
11
+ ADD COLUMN IF NOT EXISTS duration_seconds INTEGER
12
+ `);
13
+ await queryRunner.query(`
14
+ ALTER TABLE project_scene_jobs
15
+ ADD COLUMN IF NOT EXISTS duration_seconds INTEGER
16
+ `);
17
+ await queryRunner.query(`
18
+ ALTER TABLE user_subscriptions
19
+ ADD COLUMN IF NOT EXISTS "billingCycle" VARCHAR(50)
20
+ `);
21
+ }
22
+ async down(queryRunner) {
23
+ await queryRunner.query(`ALTER TABLE user_subscriptions DROP COLUMN IF EXISTS "billingCycle"`);
24
+ await queryRunner.query(`ALTER TABLE project_scene_jobs DROP COLUMN IF EXISTS duration_seconds`);
25
+ await queryRunner.query(`ALTER TABLE editor_projects DROP COLUMN IF EXISTS duration_seconds`);
26
+ }
27
+ }
28
+ exports.AddSupabaseMigrationCompatColumns1713000000057 = AddSupabaseMigrationCompatColumns1713000000057;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clhq-postgres-module",
3
- "version": "1.1.0-alpha.187",
3
+ "version": "1.1.0-alpha.189",
4
4
  "description": "PostgreSQL module using TypeORM for Clippy",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",