1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('catname', models.CharField(max_length=100)),
('blurb', models.TextField(blank=True)),
],
options={
'ordering': ('catname',),
},
),
migrations.CreateModel(
name='LicenceType',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('typename', models.CharField(max_length=100)),
],
options={
'ordering': ('typename',),
},
),
migrations.CreateModel(
name='Mirror',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('country_name', models.CharField(max_length=50)),
('country_code', models.CharField(max_length=2)),
('mirror_created', models.DateTimeField(auto_now_add=True)),
('mirror_last_rsync', models.DateTimeField(default=datetime.datetime(1970, 1, 1, 0, 0))),
('mirror_index', models.IntegerField()),
('host_addr', models.GenericIPAddressField(default='0.0.0.0', null=True)),
('host_path', models.CharField(max_length=100, null=True)),
('host_sponsor', models.CharField(max_length=100, null=True)),
('host_contact', models.CharField(max_length=100, null=True)),
('host_email', models.CharField(max_length=100, null=True)),
('host_notes', models.TextField(null=True)),
('rsync_host1', models.CharField(max_length=100, null=True)),
('rsync_host2', models.CharField(max_length=100, null=True)),
('mirror_active', models.BooleanField(default=True)),
('mirror_dns', models.BooleanField(default=False)),
('mirror_private', models.BooleanField(default=False)),
('host_use_cname', models.BooleanField(default=False)),
('host_cname_host', models.CharField(max_length=100, null=True)),
('mirror_primary', models.BooleanField(default=False)),
('error_count', models.IntegerField(default=0)),
('alternate_protocol', models.BooleanField(default=False)),
('alternate_at_root', models.BooleanField(default=False)),
],
options={
'db_table': 'mirrors',
},
),
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(unique=True, max_length=100)),
('approved', models.BooleanField(default=False)),
('url', models.URLField()),
('description', models.TextField()),
('price', models.CharField(max_length=200, blank=True)),
('lastconfirmed', models.DateTimeField(auto_now_add=True)),
('category', models.ForeignKey(to='downloads.Category', on_delete=models.CASCADE)),
('licencetype', models.ForeignKey(verbose_name='Licence type', to='downloads.LicenceType', on_delete=models.CASCADE)),
('org', models.ForeignKey(db_column='publisher_id', verbose_name='Organisation', to='core.Organisation', on_delete=models.CASCADE)),
],
options={
'ordering': ('name',),
},
),
migrations.CreateModel(
name='StackBuilderApp',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('textid', models.CharField(max_length=100)),
('version', models.CharField(max_length=20)),
('platform', models.CharField(max_length=20, choices=[('windows', 'Windows (32-bit)'), ('windows-x64', 'Windows (64-bit)'), ('osx', 'Mac OS X'), ('linux', 'Linux (32-bit)'), ('linux-x64', 'Linux (64-bit)')])),
('secondaryplatform', models.CharField(blank=True, max_length=20, choices=[('', 'None'), ('windows', 'Windows (32-bit)'), ('windows-x64', 'Windows (64-bit)'), ('osx', 'Mac OS X'), ('linux', 'Linux (32-bit)'), ('linux-x64', 'Linux (64-bit)')])),
('name', models.CharField(max_length=500)),
('active', models.BooleanField(default=True)),
('description', models.TextField()),
('category', models.CharField(max_length=100)),
('pgversion', models.CharField(max_length=5, blank=True)),
('edbversion', models.CharField(max_length=5, blank=True)),
('format', models.CharField(max_length=5, choices=[('bin', 'Linux .bin'), ('app', 'Mac .app'), ('pkg', 'Mac .pkg'), ('mpkg', 'Mac .mpkg'), ('exe', 'Windows .exe'), ('msi', 'Windows .msi')])),
('installoptions', models.CharField(max_length=500, blank=True)),
('upgradeoptions', models.CharField(max_length=500, blank=True)),
('checksum', models.CharField(max_length=32)),
('mirrorpath', models.CharField(max_length=500, blank=True)),
('alturl', models.URLField(max_length=500, blank=True)),
('txtdependencies', models.CharField(help_text='Comma separated list of text dependencies, no spaces!', max_length=1000, verbose_name='Dependencies', blank=True)),
('versionkey', models.CharField(max_length=500)),
('manifesturl', models.URLField(max_length=500, blank=True)),
],
options={
'ordering': ('textid', 'name', 'platform'),
},
),
migrations.AlterUniqueTogether(
name='stackbuilderapp',
unique_together=set([('textid', 'version', 'platform')]),
),
]
|