Skip to content

Commit

Permalink
fixed database and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jason490 committed Jul 9, 2024
1 parent 34bf910 commit 82f076b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode
instance
.devcontainer

.env
2 changes: 1 addition & 1 deletion api/pollination/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class User(db.Model):
unique=True, default=get_uuid)
alt_id = db.Column(db.String(6), unique=True, default=get_basic_id)
username = db.Column(db.Text, unique=True)

email = db.Column(db.Text, unique=True)
file = db.Relationship('File', back_populates='user',
cascade='all, delete', passive_deletes=True)
# Determine what access level the function is at
Expand Down
2 changes: 1 addition & 1 deletion api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
db.drop_all()
db.create_all()

user = User(name="moo", email="testing@gmail.com")
user = User(username="moo", email="testing@gmail.com")
db.session.add(user)
db.session.commit()

0 comments on commit 82f076b

Please sign in to comment.