File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
11
DATABASE_URL = os .getenv ("DATABASE_URL" )
12
12
config .set_main_option ("sqlalchemy.url" , DATABASE_URL )
13
13
14
- from app .db import Base
15
- from app .models import *
16
- target_metadata = Base .metadata
14
+ from app .db .db import Base
15
+ import app .db .models
16
+
17
+ target_metadata = [Base .metadata ]
18
+ fileConfig (config .config_file_name )
19
+
17
20
# this is the Alembic Config object, which provides
18
21
# access to the values within the .ini file in use.
19
22
config = context .config
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class Track(Base):
15
15
id = Column (Integer , primary_key = True , index = True )
16
16
title = Column (String , unique = True , nullable = False )
17
17
description = Column (Text )
18
+ testing = Column (Text )
18
19
19
20
class Task (Base ):
20
21
__tablename__ = "tasks"
You can’t perform that action at this time.
0 commit comments