added note to main about resetting autoincrement. Added podcast.opml file back in. wrote small console helper app to load in opml files for testing
This commit is contained in:
8
main.py
8
main.py
@@ -9,14 +9,20 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://pc:pc@67.149.14.121:330
|
||||
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
#############
|
||||
# ALTER TABLE shows AUTO_INCREMENT = 1;
|
||||
# ALTER TABLE podcasts AUTO_INCREMENT = 1;
|
||||
# ALTER TABLE users AUTO_INCREMENT = 1;
|
||||
#############
|
||||
|
||||
|
||||
class users(db.Model):
|
||||
userID = db.Column(db.Integer, primary_key=True)
|
||||
username = db.Column(db.Text, unique=True)
|
||||
password = db.Column(db.Text)
|
||||
name = db.Column(db.Text)
|
||||
name = db.Column(db.Text)
|
||||
email = db.Column(db.Text)
|
||||
# token = db.column(db.Text)
|
||||
|
||||
class shows(db.Model):
|
||||
showID = db.Column(db.Integer, primary_key=True)
|
||||
|
||||
Reference in New Issue
Block a user