BOD-24 WIP for document previews for non images. Random cleanup included. #comment Current design for document previews may be bandwidth intensive. Proceeding with design to get v1 completed.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: ALTER TABLE "public"."documents" DROP COLUMN "vendorid";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: ALTER TABLE "public"."documents" ADD COLUMN "vendorid" uuid NULL;
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: alter table "public"."documents" drop constraint "documents_vendorid_fkey";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,10 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
alter table "public"."documents"
|
||||
add constraint "documents_vendorid_fkey"
|
||||
foreign key ("vendorid")
|
||||
references "public"."vendors"
|
||||
("id") on update restrict on delete restrict;
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: alter table "public"."documents" rename column "invoiceid" to "vendorid";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: alter table "public"."documents" rename column "vendorid" to "invoiceid";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,12 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
alter table "public"."documents" drop constraint "documents_invoiceid_fkey",
|
||||
add constraint "documents_vendorid_fkey"
|
||||
foreign key ("invoiceid")
|
||||
references "public"."vendors"
|
||||
("id")
|
||||
on update restrict
|
||||
on delete restrict;
|
||||
type: run_sql
|
||||
@@ -0,0 +1,10 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
alter table "public"."documents" drop constraint "documents_vendorid_fkey",
|
||||
add constraint "documents_invoiceid_fkey"
|
||||
foreign key ("invoiceid")
|
||||
references "public"."invoices"
|
||||
("id") on update restrict on delete restrict;
|
||||
type: run_sql
|
||||
@@ -0,0 +1,12 @@
|
||||
- args:
|
||||
relationship: invoice
|
||||
table:
|
||||
name: documents
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
- args:
|
||||
relationship: documents
|
||||
table:
|
||||
name: invoices
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
@@ -0,0 +1,20 @@
|
||||
- args:
|
||||
name: invoice
|
||||
table:
|
||||
name: documents
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on: invoiceid
|
||||
type: create_object_relationship
|
||||
- args:
|
||||
name: documents
|
||||
table:
|
||||
name: invoices
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: invoiceid
|
||||
table:
|
||||
name: documents
|
||||
schema: public
|
||||
type: create_array_relationship
|
||||
Reference in New Issue
Block a user