fix: create review_vote table in unit fixtures for review delete. Refs EventHub/EventHubBack#47
CI / test (push) Failing after 9m7s
CI / deploy-ift (push) Has been skipped
CI / e2e-ift (push) Has been skipped
CI / deploy-stage (push) Has been skipped
CI / e2e-stage (push) Has been skipped

This commit is contained in:
2026-07-20 00:39:30 +03:00
parent 0934e2c413
commit 84bfce474a
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
-include_lib("eunit/include/eunit.hrl").
-include("records.hrl").
-define(TABLES, [review]).
-define(TABLES, [review, review_vote]).
setup() ->
eh_test_support:start_mnesia(),
+2
View File
@@ -136,6 +136,8 @@ table_opts(booking) ->
[{ram_copies, [node()]}, {attributes, record_info(fields, booking)}];
table_opts(review) ->
[{ram_copies, [node()]}, {attributes, record_info(fields, review)}];
table_opts(review_vote) ->
[{ram_copies, [node()]}, {attributes, record_info(fields, review_vote)}];
table_opts(report) ->
[{ram_copies, [node()]}, {attributes, record_info(fields, report)}];
table_opts(banned_word) ->
+1 -1
View File
@@ -2,7 +2,7 @@
-include_lib("eunit/include/eunit.hrl").
-include("records.hrl").
-define(TABLES, [user, admin, calendar, event, booking, review]).
-define(TABLES, [user, admin, calendar, event, booking, review, review_vote]).
setup() ->
eh_test_support:start_mnesia(),