summaryrefslogtreecommitdiffstats
path: root/aurweb/schema.py
AgeCommit message (Collapse)AuthorFilesLines
2020-02-27Set up Alembic for database migrationsFrédéric Mangano-Tarumi1-0/+8
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-02-27Migrate the database schema to SQLAlchemyFrédéric Mangano-Tarumi1-0/+387
The new schema was generated with sqlacodegen and then manually adjusted to fit schema/aur-schema.sql faithfully, both in the organisation of the code and in the SQL generated by SQLAlchemy. Initializing the database now requires the new tool aurweb.initdb. References to aur-schema.sql have been updated and the old schema dropped. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>