diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml index 88ae01972..5a670afda 100644 --- a/hasura/metadata/tables.yaml +++ b/hasura/metadata/tables.yaml @@ -5252,6 +5252,7 @@ - ciecacode - clockoff - clockon + - commited_by - committed_at - cost_center - created_at @@ -5274,6 +5275,7 @@ - ciecacode - clockoff - clockon + - commited_by - committed_at - cost_center - created_at @@ -5305,6 +5307,7 @@ - ciecacode - clockoff - clockon + - commited_by - committed_at - cost_center - created_at diff --git a/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/down.sql b/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/down.sql new file mode 100644 index 000000000..f90d646dd --- /dev/null +++ b/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."timetickets" add column "commited_by" text +-- null; diff --git a/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/up.sql b/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/up.sql new file mode 100644 index 000000000..5219c9b3d --- /dev/null +++ b/hasura/migrations/1682440269755_alter_table_public_timetickets_add_column_commited_by/up.sql @@ -0,0 +1,2 @@ +alter table "public"."timetickets" add column "commited_by" text + null; diff --git a/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/down.sql b/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/down.sql new file mode 100644 index 000000000..0ff9b5c04 --- /dev/null +++ b/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/down.sql @@ -0,0 +1 @@ +alter table "public"."timetickets" drop constraint "timetickets_commited_by_fkey"; diff --git a/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/up.sql b/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/up.sql new file mode 100644 index 000000000..c766efc5a --- /dev/null +++ b/hasura/migrations/1682440290531_set_fk_public_timetickets_commited_by/up.sql @@ -0,0 +1,5 @@ +alter table "public"."timetickets" + add constraint "timetickets_commited_by_fkey" + foreign key ("commited_by") + references "public"."users" + ("email") on update restrict on delete restrict;