Add notif page
This commit is contained in:
11
create_notifs_table.py
Normal file
11
create_notifs_table.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from app import app, db
|
||||
from models import Notif
|
||||
|
||||
def create_notifs_table():
|
||||
with app.app_context():
|
||||
# Create the table
|
||||
Notif.__table__.create(db.engine)
|
||||
print("Notifications table created successfully!")
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_notifs_table()
|
||||
Reference in New Issue
Block a user