On 5/15/19 1:27 PM, Aaryan Bhagat wrote: > As mentioned in my proposal[1] I will create new variables and modify the > schema of how we save things in the database. > Here I am facing issues (most probably because I am a newbie in SQL Alchemy). > I am not able to understand how to exactly implement this. > Relevant searches in the docs provided nothing substantial ( If there is then > provide the appropriate link in the reply )
You need to modify the appropriate interface and model. For example, to add something to the mailinglist object you would add it appropriately in mailman/interfaces/mailinglist.py and add a column for it in the MailingList model in model/mailinglist.py. Depending on what it is, other things may be required in model/mailinglist.py. Finally, you need to create a migration in mailman/database/alembic/versions/ with appropriate upgrade and downgrade functions for existing databases. See <https://alembic.sqlalchemy.org/en/latest/tutorial.html> and the existing migrations in mailman/database/alembic/versions/. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-le...@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3 Security Policy: https://wiki.list.org/x/QIA9