質問編集履歴

1

試したこととエラー文の追加

2022/08/22 08:19

投稿

asobinin
asobinin

スコア69

test CHANGED
File without changes
test CHANGED
@@ -27,3 +27,23 @@
27
27
  );
28
28
  ```
29
29
 
30
+ ### 試したこと
31
+ ```
32
+ FOREIGN KEY (send_user_id)
33
+ REFERENCES users(user_id)
34
+ ON DELETE CASCADE
35
+ FOREIGN KEY (receive_user_id)
36
+ REFERENCES users(user_id)
37
+ ON DELETE CASCADE
38
+ ```
39
+ ```
40
+ FOREIGN KEY (send_user_id, receive_user_id)
41
+ REFERENCES users(user_id, user_id)
42
+ ```
43
+
44
+
45
+ ### エラー文(rust sqlx-cli: sqlx migrate runで実行)
46
+ ```
47
+ error: migration 20220822062308 was previously applied but has been modified
48
+ ```
49
+