summaryrefslogtreecommitdiffstats
path: root/main/migrations
AgeCommit message (Collapse)AuthorFilesLines
2010-05-24Fix null field issues exposed by Django 1.1.2Dan McGee1-0/+203
Apparently Django 1.1.1 let null fields pass right through but this now causes reporead to blow up in 1.1.2. Fix the issue and get things working again by allowing nulls where it probably makes sense and including a migration to fix the issue, which for the real database will be a no-op. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-19Migration to remove external projectsDan McGee1-0/+197
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-19Migration to delete AltForum modelDan McGee1-0/+204
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-19Migration to remove press modelDan McGee1-0/+210
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-28Make pkgbase non-null and indexedDan McGee1-0/+211
Now that we always populate it, this change will make it a lot easier to use when relating to other tables, such as our maintainer relations. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-28Make reporead always populate pkgbaseDan McGee1-0/+208
And also add a data migration to add the value retroactively for anything already in our database. We simply fall back to pkgname if pkgbase isn't available. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Drop maintainer column off packages modelDan McGee1-0/+211
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-20Make rsync fields on mirrors optionalDan McGee1-0/+201
I think I bumbled this up a while back, but make sure they aren't required and we use the empty string for all of those that don't provide a value. Fixes FS#18763. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Add a flag to the repo to indicate its 'testing' statusDan McGee2-0/+388
This will eventually lead into a cleanup where we don't do checks on the repo name all over the place like we currently do. There are two migrations involved here; one to add the column and one to deduce the correct value from the existing names of the repos. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Make mirror notes a text fieldDan McGee1-0/+198
Rather than a short 255 character field. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Kill rsync IP hostname fieldDan McGee1-0/+196
This wasn't strictly necessary and was more hassle than it was worth. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Add mirror rsync credentials dataDan McGee1-0/+201
Allow this to be stored in the database for later use by an external generation script for the rsyncd secrets file. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Mirror tiering enhancementsDan McGee1-0/+199
Add ability to track tier and upstream mirror in the database. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add a files_last_update columnDan McGee1-0/+193
This is necessary to keep all of our junk in sync since we aren't guaranteed to have an up to date files database all the time. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add some additional fields to package importDan McGee1-0/+201
We can capture the build date, compressed size, and installed size when reporead runs. Even if we don't show all of it, we should pull it in. FS#14270 is requesting that the package size be shown on the website. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10Remove archweb prefix from all importsDan McGee2-2/+2
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-09Make sure we use orm in migrationsDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-06Make the maintainer migration less stupidEvangelos Foutras1-8/+4
Why issue lots of UPDATE queries when you can only issue one? My fail. Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Handle empty pkgdesc and url a bit betterDan McGee1-0/+211
Put an actual NULL in the database and handle it for both display and import. Also add a migration to clean up any bad data we currently have in there. Fixes FS#17144. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add a pkgname indexDan McGee1-0/+209
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add migrations for nullable Package.maintainerEvangelos Foutras2-0/+398
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add initial South migration for 'main' appDan McGee2-0/+440
Thanks to Evangelos Foutras for the inspiration. Recreated from scratch only to make sure everything is in sync. From this point on, you will need to have the 'south' Django/Python package installed to use archweb. Signed-off-by: Dan McGee <dan@archlinux.org>