From 554fa727d861661065359d88bbdbf2670cd70262 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Sun, 12 Mar 2023 13:51:16 +0100
Subject: [PATCH] Make dd7457a compatible with older SQLAlchemy versions

---
 .../migrations/versions/aabfcc081e98_add_photo_creation_date.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/warehouse/migrations/versions/aabfcc081e98_add_photo_creation_date.py b/warehouse/migrations/versions/aabfcc081e98_add_photo_creation_date.py
index ff97ad7..2327582 100644
--- a/warehouse/migrations/versions/aabfcc081e98_add_photo_creation_date.py
+++ b/warehouse/migrations/versions/aabfcc081e98_add_photo_creation_date.py
@@ -28,7 +28,7 @@ def upgrade():
         sa.column('created', sa.DateTime),
     )
     conn = op.get_bind()
-    results = conn.execute(sa.select(table.c.id, table.c.path)).fetchall()
+    results = conn.execute(sa.select([table.c.id, table.c.path])).fetchall()
     for photo_id, path in results:
         path = os.path.join(current_app.config['UPLOAD_FOLDER'], path)
         created = datetime.datetime.utcfromtimestamp(os.path.getctime(path))
-- 
GitLab