@@ -220,7 +220,7 @@ def unsafe_upgrade():
220220 Column ('default_message' , VARCHAR (1000 , collation = "utf8mb4_unicode_520_ci" )))
221221 user_in_twitch_alert = op .create_table ('UserInTwitchAlert' ,
222222 Column ('channel_id' , DiscordSnowflake ,
223- # ForeignKey("TwitchAlerts.channel_id", ondelete='CASCADE'),
223+ ForeignKey ("TwitchAlerts.channel_id" , ondelete = 'CASCADE' ),
224224 primary_key = True ),
225225 Column ('twitch_username' , VARCHAR (25 ), primary_key = True ),
226226 Column ('custom_message' , VARCHAR (1000 , collation = "utf8mb4_unicode_520_ci" ), nullable = True ),
@@ -229,13 +229,13 @@ def unsafe_upgrade():
229229 Column ('team_twitch_alert_id' , INT ,
230230 autoincrement = True , primary_key = True ),
231231 Column ('channel_id' , DiscordSnowflake ,
232- # ForeignKey("TwitchAlerts.channel_id", ondelete='CASCADE')
232+ ForeignKey ("TwitchAlerts.channel_id" , ondelete = 'CASCADE' )
233233 ),
234234 Column ('twitch_team_name' , VARCHAR (25 )),
235235 Column ('custom_message' , VARCHAR (1000 , collation = "utf8mb4_unicode_520_ci" ), nullable = True ))
236236 user_in_twitch_team = op .create_table ('UserInTwitchTeam' ,
237237 Column ('team_twitch_alert_id' , INT ,
238- # ForeignKey("TeamInTwitchAlert.team_twitch_alert_id", ondelete='CASCADE'),
238+ ForeignKey ("TeamInTwitchAlert.team_twitch_alert_id" , ondelete = 'CASCADE' ),
239239 primary_key = True ),
240240 Column ('twitch_username' , VARCHAR (25 ), primary_key = True ),
241241 Column ('message_id' , DiscordSnowflake , nullable = True ))
0 commit comments