File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/shared-db/migrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11ALTER TABLE " moderation_history" RENAME COLUMN " tweet_id" TO " submission_id" ;-- > statement-breakpoint
22ALTER TABLE " moderation_history" RENAME COLUMN " admin_id" TO " moderator_account_id" ;-- > statement-breakpoint
3- ALTER TABLE " moderation_history" DROP CONSTRAINT " moderation_history_tweet_id_submissions_tweet_id_fk" ;
3+ ALTER TABLE " moderation_history" DROP CONSTRAINT IF EXISTS " moderation_history_tweet_id_submissions_tweet_id_fk" ;
44-- > statement-breakpoint
5- DROP INDEX " moderation_history_tweet_idx" ;-- > statement-breakpoint
6- DROP INDEX " moderation_history_admin_idx" ;-- > statement-breakpoint
5+ DROP INDEX IF EXISTS " moderation_history_tweet_idx" ;-- > statement-breakpoint
6+ DROP INDEX IF EXISTS " moderation_history_admin_idx" ;-- > statement-breakpoint
77ALTER TABLE " moderation_history" ADD COLUMN " moderator_account_id_type" text ;-- > statement-breakpoint
88ALTER TABLE " moderation_history" ADD COLUMN " source" text ;-- > statement-breakpoint
99
You can’t perform that action at this time.
0 commit comments