Add ioevent logging for events.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- alter table "public"."ioevents" add column "useremail" text
|
||||
-- not null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."ioevents" add column "useremail" text
|
||||
not 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"."ioevents" add column "bodyshopid" uuid
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."ioevents" add column "bodyshopid" uuid
|
||||
null;
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."ioevents" alter column "useremail" set not null;
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."ioevents" alter column "useremail" drop not 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"."ioevents" add column "env" text
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."ioevents" add column "env" text
|
||||
null;
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."ioevents_useremail";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "ioevents_useremail" on
|
||||
"public"."ioevents" using btree ("useremail");
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."ioevents" drop constraint "ioevents_useremail_fkey";
|
||||
@@ -0,0 +1,5 @@
|
||||
alter table "public"."ioevents"
|
||||
add constraint "ioevents_useremail_fkey"
|
||||
foreign key ("useremail")
|
||||
references "public"."users"
|
||||
("email") on update set null on delete set null;
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."ioevents" drop constraint "ioevents_bodyshopid_fkey";
|
||||
@@ -0,0 +1,5 @@
|
||||
alter table "public"."ioevents"
|
||||
add constraint "ioevents_bodyshopid_fkey"
|
||||
foreign key ("bodyshopid")
|
||||
references "public"."bodyshops"
|
||||
("id") on update set null on delete set null;
|
||||
Reference in New Issue
Block a user