From 8cd6930a96c61152172661ff9e611bd5b7fea943 Mon Sep 17 00:00:00 2001 From: GitHub Release <> Date: Mon, 2 Dec 2024 15:31:10 +0000 Subject: [PATCH 1/2] Bump version to 0.278.0 [release] --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0a69dc3..1bfb030 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@datalens-tech/datalens-us", - "version": "0.0.0", + "version": "0.278.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@datalens-tech/datalens-us", - "version": "0.0.0", + "version": "0.278.0", "license": "Apache-2.0", "dependencies": { "@gravity-ui/expresskit": "^2.1.0", diff --git a/package.json b/package.json index 59663f1..62f3499 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@datalens-tech/datalens-us", "description": "United Storage", - "version": "0.0.0", + "version": "0.278.0", "private": true, "author": "DataLens Team ", "license": "Apache-2.0", From b5d0dd1c568a54a9cba79a85528f35dcfbf36072 Mon Sep 17 00:00:00 2001 From: Samat Jorobekov Date: Thu, 19 Dec 2024 13:29:16 +0300 Subject: [PATCH 2/2] Add data_export migration file --- .../migrations/20241219092946_data_export.ts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/db/migrations/20241219092946_data_export.ts diff --git a/src/db/migrations/20241219092946_data_export.ts b/src/db/migrations/20241219092946_data_export.ts new file mode 100644 index 0000000..4cd4b6b --- /dev/null +++ b/src/db/migrations/20241219092946_data_export.ts @@ -0,0 +1,30 @@ +import type {Knex} from 'knex'; + +export async function up(knex: Knex): Promise { + return knex.raw(` + CREATE TABLE data_export ( + data_export_id BIGINT NOT NULL PRIMARY KEY DEFAULT get_id(), + title TEXT NOT NULL, + tenant_id TEXT, + chart_id BIGINT NOT NULL, + chart_rev_id BIGINT NOT NULL, + dataset_id BIGINT, + dataset_rev_id BIGINT NOT NULL, + connection_id BIGINT NOT NULL, + connection_rev_id BIGINT NOT NULL, + params JSONB NOT NULL DEFAULT '{}'::jsonb, + created_by TEXT NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + expired_at TIMESTAMPTZ NOT NULL, + job_id TEXT NOT NULL, + result_link TEXT, + error JSONB + ); + `); +} + +export async function down(knex: Knex): Promise { + return knex.raw(` + DROP TABLE data_export; + `); +}