Drop oauth_revocation_token from schema
2 files changed, 28 insertions(+), 2 deletions(-)

A => hgsrht/alembic/versions/7b086b645db1_drop_oauth_revocation_token.py
M schema.sql
A => hgsrht/alembic/versions/7b086b645db1_drop_oauth_revocation_token.py +27 -0
@@ 0,0 1,27 @@ 
+"""Drop oauth_revocation_token
+
+Revision ID: 7b086b645db1
+Revises: c9e27b24e019
+Create Date: 2024-10-31 12:57:00.425672
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '7b086b645db1'
+down_revision = 'c9e27b24e019'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.execute("""
+    ALTER TABLE "user" DROP COLUMN oauth_revocation_token;
+    """)
+
+
+def downgrade():
+    op.execute("""
+    ALTER TABLE "user"
+    ADD COLUMN oauth_revocation_token character varying(256);
+    """)

          
M schema.sql +1 -2
@@ 32,8 32,7 @@ CREATE TABLE "user" (
 	-- TODO: Delete these
 	oauth_token character varying(256),
 	oauth_token_expires timestamp without time zone,
-	oauth_token_scopes character varying,
-	oauth_revocation_token character varying(256)
+	oauth_token_scopes character varying
 );
 
 CREATE INDEX ix_user_username ON "user" USING btree (username);