Merged in feature/media-analytics-logging (pull request #2651)
Add API route for media analytics, and updates to database schema.
This commit is contained in:
@@ -4711,9 +4711,31 @@
|
||||
- table:
|
||||
name: media_analytics
|
||||
schema: public
|
||||
object_relationships:
|
||||
- name: bodyshop
|
||||
using:
|
||||
foreign_key_constraint_on: bodyshopid
|
||||
array_relationships:
|
||||
- name: media_analytics_details
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: media_analytics_id
|
||||
table:
|
||||
name: media_analytics_detail
|
||||
schema: public
|
||||
- table:
|
||||
name: media_analytics_detail
|
||||
schema: public
|
||||
object_relationships:
|
||||
- name: bodyshop
|
||||
using:
|
||||
foreign_key_constraint_on: bodyshopid
|
||||
- name: job
|
||||
using:
|
||||
foreign_key_constraint_on: jobid
|
||||
- name: media_analytic
|
||||
using:
|
||||
foreign_key_constraint_on: media_analytics_id
|
||||
- table:
|
||||
name: messages
|
||||
schema: public
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- alter table "public"."media_analytics" add column "total_size_bytes" integer
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."media_analytics" add column "total_size_bytes" integer
|
||||
null;
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- alter table "public"."media_analytics" add column "total_size_mb" numeric
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."media_analytics" add column "total_size_mb" numeric
|
||||
null;
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- alter table "public"."media_analytics_detail" add column "total_size_mb" numeric
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."media_analytics_detail" add column "total_size_mb" numeric
|
||||
null;
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."media_analytics_detail" alter column "jobid" set not null;
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."media_analytics_detail" alter column "jobid" drop not null;
|
||||
Reference in New Issue
Block a user