Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024.5.0-host.7c #1

Merged
merged 41 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0d24c88
fix(MisskeyIO#866): ユーザーメニューからロールの割り当て時メモを入力しないとキャンセル扱いされる問題を修正 (Miss…
u1-liquid Jan 9, 2025
8bd7884
fix(frontend/mobile): モバイルでkawaiiモードが適用されない問題を修正 (MisskeyIO#878)
u1-liquid Jan 10, 2025
535a6bc
spec(notes/create): 投稿されたnoteを返さないオプションを追加 (MisskeyIO#879)
u1-liquid Jan 10, 2025
8a0b98a
Sync charts one-at-a-time to reduce database contention and timeouts …
u1-liquid Jan 10, 2025
31d57f2
feat(frontend/draft): 下書き機能の改良・強化 (MisskeyIO#881)
u1-liquid Jan 12, 2025
f280ce2
Bump up version to 2024.5.0-io.6 (MisskeyIO#882)
u1-liquid Jan 12, 2025
7de0171
Merge tag '2024.5.0-io.6' into host
u1-liquid Jan 12, 2025
e0b5199
Merge pull request MisskeyIO#883 from update-host
u1-liquid Jan 12, 2025
c88478f
fix(frontend): 一定の条件でノート送信ボタンが意図しない見た目になる問題を修正 (MisskeyIO#884)
mattyatea Jan 12, 2025
d4baf04
spec(MisskeyIO#884): 送信ボタンをアイコンのみの表示にするしきい値を変更 (MisskeyIO#885)
u1-liquid Jan 13, 2025
cf1952a
spec(MisskeyIO#884): 送信ボタンをアイコンのみの表示にするしきい値を変更 2 (MisskeyIO#886)
u1-liquid Jan 13, 2025
9792ea0
update deps (MisskeyIO#887)
u1-liquid Jan 13, 2025
5f6cbe0
Bump up version to 2024.5.0-io.6a (MisskeyIO#888)
u1-liquid Jan 13, 2025
68c3eb5
update deps (MisskeyIO#889)
u1-liquid Jan 14, 2025
509f385
update deps (MisskeyIO#891)
u1-liquid Jan 16, 2025
cbe80fd
feat(note): 予約投稿 (MisskeyIO#890)
u1-liquid Jan 16, 2025
6993e5b
perf(frontend/css): MkNote 及び MkNotification に content-visibility を適用…
u1-liquid Jan 16, 2025
86209cf
Bump up version to 2024.5.0-io.7 (MisskeyIO#893)
u1-liquid Jan 16, 2025
3e20ef5
Merge tag '2024.5.0-io.7' into host
u1-liquid Jan 16, 2025
b5f27be
Merge pull request MisskeyIO#894 from update-host
u1-liquid Jan 16, 2025
d7eca4a
Merge tag '2024.5.0-host.7' into nijimiss
u1-liquid Jan 16, 2025
bcb85f2
fix(backend/object-storage): disable data integrity protections (Miss…
u1-liquid Jan 16, 2025
f69e489
Bump up version to 2024.5.0-io.7a (MisskeyIO#896)
u1-liquid Jan 16, 2025
e7e792f
Merge tag '2024.5.0-io.7a' into host
u1-liquid Jan 16, 2025
910f711
Merge pull request MisskeyIO#897 from update-host
u1-liquid Jan 16, 2025
2dd9f20
Merge tag '2024.5.0-host.7a' into nijimiss
u1-liquid Jan 16, 2025
fc31c0e
fix(frontend/MkDraftsDialog): :art: (MisskeyIO#898)
u1-liquid Jan 16, 2025
a075b6a
Bump up version to 2024.5.0-io.7b (MisskeyIO#899)
u1-liquid Jan 16, 2025
212de28
Merge tag '2024.5.0-io.7b' into host
u1-liquid Jan 16, 2025
1ce8784
Merge pull request MisskeyIO#900 from update-host
u1-liquid Jan 17, 2025
324e8cc
Merge tag '2024.5.0-host.7b' into nijimiss
u1-liquid Jan 17, 2025
f60d9da
chore(frontend): 通報のカテゴリの調整・投稿フォームのガイドラインへの導線に利用規約も追加 (MisskeyIO#902)
u1-liquid Jan 17, 2025
71c2921
fix(backend/SigninApiService): ログインのレートリミット時、意図したものと違うエラーメッセージが表示される可…
u1-liquid Jan 17, 2025
655ed95
enhance(ux/frontend/MkPostForm): 予約投稿の時間を再度設定する時、以前設定した時間が表示されるように (M…
u1-liquid Jan 17, 2025
f0f86f1
spec(backend/queue/ScheduledNote): 予約時間が過ぎる前にチェックするように (MisskeyIO#905)
u1-liquid Jan 17, 2025
8821e3e
spec(role/ScheduledNote): ロールで予約投稿の個数・予約の最大日数を制御できるように (MisskeyIO#906)
u1-liquid Jan 17, 2025
c4fafbd
perf(stream): 必要のない既読処理のメッセージが発生しないように (MisskeyIO#907)
u1-liquid Jan 17, 2025
428ff56
Bump up version to 2024.5.0-io.7c (MisskeyIO#908)
u1-liquid Jan 17, 2025
6006c79
Merge tag '2024.5.0-io.7c' into host
u1-liquid Jan 17, 2025
2217c7c
Merge pull request MisskeyIO#909 from update-host
u1-liquid Jan 17, 2025
deb520f
Merge tag '2024.5.0-host.7c' into nijimiss
u1-liquid Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,14 @@ consentAll: "Allow All Items"
consentSelected: "Allow Selected Items"
emailAddressLogin: "Login with email address"
usernameLogin: "Login with username"
autoloadDrafts: "Automatically load drafts when opening the posting form"
drafts: "Drafts"
unsent: "Unsent"
schedule: "Schedule"
scheduled: "Scheduled"
unschedule: "Unschedule"
setScheduledTime: "Set scheduled time"
willBePostedAt: "Note will be posted at {x}"

_bubbleGame:
howToPlay: "How to play"
Expand Down Expand Up @@ -1358,8 +1366,8 @@ _abuseReportCategory:
otherBreach_description: "Other actions that violate the terms but do not fall under specific categories"
violationRights: "Rights Infringement or Impersonation (Reported by Rights Holder)"
violationRights_description: "Posts infringing the rights (such as copyright or trademark) of the rights holder or impersonation"
violationRightsOther: "Rights Infringement or Impersonation (Reported by Third Party)"
violationRightsOther_description: "Posts infringing the rights (such as copyright or trademark) of others or impersonation\nIf reported by a third party, cases outside the scope of non-complaint offenses as defined by law may not be addressed"
violationRightsOther: "Rights Infringement (Reported by Third Party)"
violationRightsOther_description: "Posts infringing the rights (such as copyright or trademark) of others\nIf reported by a third party, cases outside the scope of non-complaint offenses as defined by law may not be addressed"
notLike: "Dislike This Person"
notLike_description: "Users or posts that you find unpleasant for personal reasons"
other: "Other"
Expand Down Expand Up @@ -1787,6 +1795,9 @@ _role:
gtlAvailable: "Can view the global timeline"
ltlAvailable: "Can view the local timeline"
canPublicNote: "Can send public notes"
canScheduleNote: "Can schedule notes"
scheduleNoteLimit: "Maximum number of scheduled notes"
scheduleNoteMaxDays: "Maximum number of days that note can be scheduled"
canInitiateConversation: "Can mention, reply or quote"
canCreateContent: "Can create contents"
canUpdateContent: "Can edit contents"
Expand Down Expand Up @@ -2317,6 +2328,8 @@ _postForm:
d: "What do you want to say?"
e: "Start writing..."
f: "Waiting for you to write..."
policyScheduleNoteMaxDaysExceeded: "The maximum number of days you can schedule notes is {max}."
tosAndGuidelinesInfo: "Before posting, please read the [Terms of Service]({tosUrl}) and [NSFW Guidelines](https://nijimiss.org/post-guideline/)."
_profile:
name: "Name"
username: "Username"
Expand Down Expand Up @@ -2474,6 +2487,9 @@ _notification:
roleAssigned: "Role given"
emptyPushNotificationMessage: "Push notifications have been updated"
achievementEarned: "Achievement unlocked"
noteScheduled: "Note has been scheduled"
scheduledNotePosted: "Scheduled note has been posted"
scheduledNoteError: "Scheduled note has problem with posting"
testNotification: "Test notification"
checkNotificationBehavior: "Check notification appearance"
sendTestNotification: "Send test notification"
Expand All @@ -2497,6 +2513,9 @@ _notification:
followRequestAccepted: "Accepted follow requests"
roleAssigned: "Role given"
achievementEarned: "Achievement unlocked"
noteScheduled: "Note scheduled"
scheduledNotePosted: "Scheduled note posted"
scheduledNoteError: "Problem with scheduled note"
app: "Notifications from linked apps"
_actions:
followBack: "followed you back"
Expand Down
80 changes: 76 additions & 4 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5366,6 +5366,38 @@ export interface Locale extends ILocale {
* ユーザー名でログイン
*/
"usernameLogin": string;
/**
* 投稿フォームを開いたときに下書きを自動で読み込む
*/
"autoloadDrafts": string;
/**
* 下書き
*/
"drafts": string;
/**
* 未送信
*/
"unsent": string;
/**
* 予約
*/
"schedule": string;
/**
* 予約済み
*/
"scheduled": string;
/**
* 予約を解除
*/
"unschedule": string;
/**
* 予約日時を設定
*/
"setScheduledTime": string;
/**
* {x}に投稿されます
*/
"willBePostedAt": ParameterizedString<"x">;
/**
* サブスクリプション
*/
Expand Down Expand Up @@ -5576,11 +5608,11 @@ export interface Locale extends ILocale {
*/
"violationRights_description": string;
/**
* 権利侵害やなりすまし(第三者による通報)
* 権利侵害(第三者による通報)
*/
"violationRightsOther": string;
/**
* 他人の著作権、商標権、またはその他の権利を侵害する投稿及びなりすまし行為
* 他人の著作権、商標権、またはその他の権利を侵害する行為
* 第三者による通報の場合、法律で定められた非親告罪の範囲外のケースには対応できないことがあります
*/
"violationRightsOther_description": string;
Expand Down Expand Up @@ -7105,6 +7137,18 @@ export interface Locale extends ILocale {
* パブリック投稿の許可
*/
"canPublicNote": string;
/**
* 予約投稿の許可
*/
"canScheduleNote": string;
/**
* 予約投稿の最大数
*/
"scheduleNoteLimit": string;
/**
* 予約投稿の最大日数
*/
"scheduleNoteMaxDays": string;
/**
* メンション、リプライ、引用の許可
*/
Expand Down Expand Up @@ -9162,9 +9206,13 @@ export interface Locale extends ILocale {
"f": string;
};
/**
* [NSFWガイドライン]({nsfwGuideUrl})を必ずお読みになってからご利用ください
* 予約できる日数の上限は{max}日です
*/
"guidelineInfo": ParameterizedString<"nsfwGuideUrl">;
"policyScheduleNoteMaxDaysExceeded": ParameterizedString<"max">;
/**
* 投稿する前に、[利用規約]({tosUrl})と[NSFWガイドライン](https://nijimiss.org/post-guideline/)を必ずお読みください。
*/
"tosAndGuidelinesInfo": ParameterizedString<"tosUrl">;
};
"_profile": {
/**
Expand Down Expand Up @@ -9771,6 +9819,18 @@ export interface Locale extends ILocale {
* 実績を獲得
*/
"achievementEarned": string;
/**
* ノートが予約されました
*/
"noteScheduled": string;
/**
* 予約済みのノートが投稿されました
*/
"scheduledNotePosted": string;
/**
* 予約済みのノートを投稿できませんでした
*/
"scheduledNoteError": string;
/**
* 通知テスト
*/
Expand Down Expand Up @@ -9860,6 +9920,18 @@ export interface Locale extends ILocale {
* 実績の獲得
*/
"achievementEarned": string;
/**
* ノートが予約された
*/
"noteScheduled": string;
/**
* 予約済みのノートが投稿された
*/
"scheduledNotePosted": string;
/**
* 予約済みのノートが投稿できなかった
*/
"scheduledNoteError": string;
/**
* 連携アプリからの通知
*/
Expand Down
24 changes: 21 additions & 3 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,14 @@ consentAll: "全て許可"
consentSelected: "選択した項目のみ許可"
emailAddressLogin: "メールアドレスでログイン"
usernameLogin: "ユーザー名でログイン"
autoloadDrafts: "投稿フォームを開いたときに下書きを自動で読み込む"
drafts: "下書き"
unsent: "未送信"
schedule: "予約"
scheduled: "予約済み"
unschedule: "予約を解除"
setScheduledTime: "予約日時を設定"
willBePostedAt: "{x}に投稿されます"
subscription: "サブスクリプション"
subscriptionStatus: "サブスクリプションの状態"
abuseAbortTitle: "通報不可"
Expand Down Expand Up @@ -1393,8 +1401,8 @@ _abuseReportCategory:
otherBreach_description: "明確に分類されないその他の規約違反行為"
violationRights: "権利侵害やなりすまし(侵害を受けた権利者本人によるご申告)"
violationRights_description: "権利者本人の著作権、商標権、またはその他の権利を侵害する投稿及びなりすまし行為"
violationRightsOther: "権利侵害やなりすまし(第三者による通報)"
violationRightsOther_description: "他人の著作権、商標権、またはその他の権利を侵害する投稿及びなりすまし行為\n第三者による通報の場合、法律で定められた非親告罪の範囲外のケースには対応できないことがあります"
violationRightsOther: "権利侵害(第三者による通報)"
violationRightsOther_description: "他人の著作権、商標権、またはその他の権利を侵害する行為\n第三者による通報の場合、法律で定められた非親告罪の範囲外のケースには対応できないことがあります"
notLike: "この人が気に入らない"
notLike_description: "個人的な理由で不快と感じるユーザーや投稿"
other: "その他"
Expand Down Expand Up @@ -1831,6 +1839,9 @@ _role:
gtlAvailable: "グローバルタイムラインの閲覧"
ltlAvailable: "ローカルタイムラインの閲覧"
canPublicNote: "パブリック投稿の許可"
canScheduleNote: "予約投稿の許可"
scheduleNoteLimit: "予約投稿の最大数"
scheduleNoteMaxDays: "予約投稿の最大日数"
canInitiateConversation: "メンション、リプライ、引用の許可"
canCreateContent: "コンテンツの作成"
canUpdateContent: "コンテンツの編集"
Expand Down Expand Up @@ -2402,7 +2413,8 @@ _postForm:
d: "言いたいことは?"
e: "ここに書いてください"
f: "あなたが書くのを待っています..."
guidelineInfo: "[NSFWガイドライン]({nsfwGuideUrl})を必ずお読みになってからご利用ください。"
policyScheduleNoteMaxDaysExceeded: "予約できる日数の上限は{max}日です。"
tosAndGuidelinesInfo: "投稿する前に、[利用規約]({tosUrl})と[NSFWガイドライン](https://nijimiss.org/post-guideline/)を必ずお読みください。"

_profile:
name: "名前"
Expand Down Expand Up @@ -2570,6 +2582,9 @@ _notification:
roleAssigned: "ロールが付与されました"
emptyPushNotificationMessage: "プッシュ通知の更新をしました"
achievementEarned: "実績を獲得"
noteScheduled: "ノートが予約されました"
scheduledNotePosted: "予約済みのノートが投稿されました"
scheduledNoteError: "予約済みのノートを投稿できませんでした"
testNotification: "通知テスト"
checkNotificationBehavior: "通知の表示を確かめる"
sendTestNotification: "テスト通知を送信する"
Expand All @@ -2594,6 +2609,9 @@ _notification:
followRequestAccepted: "フォローが受理された"
roleAssigned: "ロールが付与された"
achievementEarned: "実績の獲得"
noteScheduled: "ノートが予約された"
scheduledNotePosted: "予約済みのノートが投稿された"
scheduledNoteError: "予約済みのノートが投稿できなかった"
app: "連携アプリからの通知"

_actions:
Expand Down
25 changes: 22 additions & 3 deletions locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,14 @@ consentAll: "모두 허용"
consentSelected: "선택한 항목만 허용"
emailAddressLogin: "이메일 주소로 로그인"
usernameLogin: "사용자명으로 로그인"
autoloadDrafts: "글 작성 시 자동으로 임시 저장된 글 불러오기"
drafts: "임시 저장"
unsent: "미전송"
schedule: "예약"
scheduled: "예약됨"
unschedule: "예약 취소"
setScheduledTime: "예약 시간 설정"
willBePostedAt: "{x}에 게시됩니다"

_bubbleGame:
howToPlay: "설명"
Expand Down Expand Up @@ -1354,8 +1362,8 @@ _abuseReportCategory:
otherBreach_description: "명확하게 분류되지 않는 기타 규약 위반 행위"
violationRights: "권리 침해 또는 사칭 (권리자 본인에 의한 신고)"
violationRights_description: "권리자 본인의 저작권, 상표권 또는 기타 권리를 침해하는 게시물 및 사칭 행위"
violationRightsOther: "권리 침해 또는 사칭 (제3자에 의한 신고)"
violationRightsOther_description: "타인의 저작권, 상표권 또는 기타 권리를 침해하는 게시물 및 사칭 행위\n제3자에 의한 신고의 경우, 법으로 정해진 비친고죄 범위 외의 사례에는 대응할 수 없습니다"
violationRightsOther: "권리 침해 (제3자에 의한 신고)"
violationRightsOther_description: "타인의 저작권, 상표권 또는 기타 권리를 침해하는 행위\n제3자에 의한 신고의 경우, 법으로 정해진 비친고죄 범위 외의 사례에는 대응할 수 없습니다"
notLike: "이 사람이 마음에 들지 않음"
notLike_description: "개인적인 이유로 불쾌감을 느끼는 사용자나 게시물"
other: "기타"
Expand Down Expand Up @@ -1782,6 +1790,9 @@ _role:
gtlAvailable: "글로벌 타임라인 보이기"
ltlAvailable: "로컬 타임라인 보이기"
canPublicNote: "공개 노트 허용"
canScheduleNote: "노트 예약 허용"
scheduleNoteLimit: "노트 예약 한도"
scheduleNoteMaxDays: "노트 예약 최대 일수"
mentionMax: "노트에 넣을 수 있는 멘션 수"
canCreateContent: "컨텐츠 생성 허용"
canUpdateContent: "컨텐츠 수정 허용"
Expand Down Expand Up @@ -2301,6 +2312,8 @@ _postForm:
d: "말하고 싶은 게 있나요?"
e: "여기에 적어 주세요"
f: "글 쓰기를 기다려요…"
policyScheduleNoteMaxDaysExceeded: "예약 가능한 최대 일수는 {max}일입니다."
tosAndGuidelinesInfo: "노트를 게시하기 전에 [이용약관]({tosUrl})과 [NSFW 가이드라인](https://nijimiss.org/post-guideline/)을 반드시 읽어 주세요."
_profile:
name: "이름"
username: "사용자 이름"
Expand Down Expand Up @@ -2454,9 +2467,12 @@ _notification:
pollEnded: "투표 결과가 발표되었습니다"
newNote: "새 게시물"
unreadAntennaNote: "안테나 {name}"
roleAssigned: "역할이 부여 되었습니다."
roleAssigned: "역할이 부여 되었습니다"
emptyPushNotificationMessage: "푸시 알림이 갱신되었습니다"
achievementEarned: "도전 과제를 달성했습니다"
noteScheduled: "노트가 예약되었습니다"
scheduledNotePosted: "예약된 노트가 게시되었습니다"
scheduledNoteError: "예약된 노트를 게시하지 못했습니다"
testNotification: "알림 테스트"
checkNotificationBehavior: "알림 표시를 체크하기"
sendTestNotification: "테스트 알림 보내기"
Expand All @@ -2480,6 +2496,9 @@ _notification:
followRequestAccepted: "팔로우 요청이 승인되었을 때"
roleAssigned: "역할이 부여 됨"
achievementEarned: "도전 과제 획득"
noteScheduled: "노트가 예약됨"
scheduledNotePosted: "예약된 노트가 게시됨"
scheduledNoteError: "예약된 노트를 게시하지 못함"
app: "연동된 앱을 통한 알림"
_actions:
followBack: "팔로우"
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "misskey",
"version": "2024.5.0-nijimiss.5e",
"version": "2024.5.0-nijimiss.7c",
"codename": "nasubi",
"repository": {
"type": "git",
"url": "https://github.com/MisskeyIO/misskey.git"
},
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@9.15.4",
"workspaces": [
"packages/frontend",
"packages/backend",
Expand Down Expand Up @@ -56,26 +56,26 @@
"jpeg-js": "0.4.4",
"lodash": "4.17.21",
"sharp": "0.33.5",
"tough-cookie": "5.0.0",
"web-streams-polyfill": "4.0.0"
"tough-cookie": "5.1.0",
"web-streams-polyfill": "4.1.0"
},
"dependencies": {
"cssnano": "7.0.6",
"execa": "9.5.2",
"js-yaml": "4.1.0",
"postcss": "8.4.49",
"postcss": "8.5.1",
"terser": "5.37.0",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"devDependencies": {
"@types/node": "22.10.2",
"@types/node": "22.10.7",
"@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0",
"cross-env": "7.0.3",
"cypress": "13.17.0",
"eslint": "8.57.1",
"ncp": "2.0.0",
"start-server-and-test": "2.0.9"
"start-server-and-test": "2.0.10"
},
"optionalDependencies": {
"@tensorflow/tfjs-core": "4.22.0"
Expand Down
Binary file added packages/backend/assets/tabler-badges/badges.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions packages/backend/migration/1736923279563-ScheduledNote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export class ScheduledNote1736923279563 {
name = 'ScheduledNote1736923279563'

async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "note_scheduled" ("id" character varying(32) NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "scheduledAt" TIMESTAMP WITH TIME ZONE, "reason" character varying(256), "userId" character varying(32) NOT NULL, "draft" jsonb NOT NULL, CONSTRAINT "PK_14ca8fa67f70dc68ebab8900f4b" PRIMARY KEY ("id")); COMMENT ON COLUMN "note_scheduled"."createdAt" IS 'The created date of the Note.'; COMMENT ON COLUMN "note_scheduled"."scheduledAt" IS 'The scheduled date of the Note.'; COMMENT ON COLUMN "note_scheduled"."userId" IS 'The ID of author.'`);
await queryRunner.query(`CREATE INDEX "IDX_7ddf8710a9faee81081592ec35" ON "note_scheduled" ("createdAt") `);
await queryRunner.query(`CREATE INDEX "IDX_bbe52891059217fc31e73e84e2" ON "note_scheduled" ("scheduledAt") `);
await queryRunner.query(`CREATE INDEX "IDX_b148b24837cc7a2707ae1f0975" ON "note_scheduled" ("userId") `);
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_dfeab22d6bbc4799193997553a" ON "note_scheduled" ("userId", "scheduledAt") `);
await queryRunner.query(`ALTER TABLE "note_scheduled" ADD CONSTRAINT "FK_b148b24837cc7a2707ae1f0975a" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}

async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note_scheduled" DROP CONSTRAINT "FK_b148b24837cc7a2707ae1f0975a"`);
await queryRunner.query(`DROP INDEX "public"."IDX_dfeab22d6bbc4799193997553a"`);
await queryRunner.query(`DROP INDEX "public"."IDX_b148b24837cc7a2707ae1f0975"`);
await queryRunner.query(`DROP INDEX "public"."IDX_bbe52891059217fc31e73e84e2"`);
await queryRunner.query(`DROP INDEX "public"."IDX_7ddf8710a9faee81081592ec35"`);
await queryRunner.query(`DROP TABLE "note_scheduled"`);
}
}
Loading
Loading