feat: revamp authentication -- remove twitch's tokens from our own wrapper token
This commit is contained in:
parent
3186afe96d
commit
50900986fa
31 changed files with 736 additions and 155 deletions
35
migrations/20250113142241_external_auth_json.py
Normal file
35
migrations/20250113142241_external_auth_json.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"""
|
||||
This module contains a Caribou migration.
|
||||
|
||||
Migration Name: external_auth_json
|
||||
Migration Version: 20250113142241
|
||||
"""
|
||||
|
||||
|
||||
def upgrade(connection):
|
||||
"""remove tables:
|
||||
- external_auth
|
||||
- user_external_auth
|
||||
add column to users table:
|
||||
- external_auth JSON
|
||||
"""
|
||||
sql = """
|
||||
DROP TABLE IF EXISTS external_auth;
|
||||
"""
|
||||
connection.execute(sql)
|
||||
|
||||
sql = """
|
||||
DROP TABLE IF EXISTS user_external_auth;
|
||||
"""
|
||||
connection.execute(sql)
|
||||
|
||||
sql = """
|
||||
ALTER TABLE users ADD COLUMN external_auth JSON;
|
||||
"""
|
||||
connection.execute(sql)
|
||||
connection.commit()
|
||||
|
||||
|
||||
def downgrade(connection):
|
||||
# add your downgrade step here
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue