diff --git a/backend/migrations/versions/aee25ad6b0ae_add_hedgedoc_as_app.py b/backend/migrations/versions/aee25ad6b0ae_add_hedgedoc_as_app.py
new file mode 100644
index 0000000000000000000000000000000000000000..2ec083d3381c6c27ea68da8e995b98c663331481
--- /dev/null
+++ b/backend/migrations/versions/aee25ad6b0ae_add_hedgedoc_as_app.py
@@ -0,0 +1,26 @@
+"""empty message
+
+Revision ID: aee25ad6b0ae
+Revises: fc0892d07771
+Create Date: 2022-12-15 14:37:55.659132
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = 'aee25ad6b0ae'
+down_revision = 'fc0892d07771'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    # Add hedgedoc app
+    op.execute(f'INSERT IGNORE INTO app (`id`, `name`, `slug`) VALUES (8,"Hedgedoc","hedgedoc")')
+    op.execute(f'INSERT IGNORE INTO oauthclient_app (`oauthclient_id`, `app_id`) VALUES ("hedgedoc", 8)')
+
+def downgrade():
+    op.execute(f'DELETE FROM app WHERE id=8')
+    op.execute(f'DELETE FROM oauthclient_app WHERE app_id=8')