lifecycle: fix otp_merge migration again (#7244)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-10-20 14:27:57 +02:00 committed by GitHub
parent e0da3bf2b4
commit 6fb7586b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 20 deletions

View File

@ -23,23 +23,22 @@ class Migration(BaseMigration):
return bool(self.cur.rowcount) return bool(self.cur.rowcount)
def run(self): def run(self):
with self.con.transaction(): self.cur.execute(SQL_STATEMENT)
self.cur.execute(SQL_STATEMENT) self.fake_migration(
self.fake_migration( (
( "authentik_stages_authenticator_static",
"authentik_stages_authenticator_static", "0008_initial",
"0008_initial", ),
), (
( "authentik_stages_authenticator_static",
"authentik_stages_authenticator_static", "0009_throttling",
"0009_throttling", ),
), (
( "authentik_stages_authenticator_totp",
"authentik_stages_authenticator_totp", "0008_initial",
"0008_initial", ),
), (
( "authentik_stages_authenticator_totp",
"authentik_stages_authenticator_totp", "0009_auto_20190420_0723",
"0009_auto_20190420_0723", ),
), )
)