[geany/www.geany.org] a0cc05: Add migrations for our custom apps
Enrico Tröger
git-noreply at xxxxx
Sun Jul 14 12:07:24 UTC 2019
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 14 Jul 2019 12:07:24 UTC
Commit: a0cc05847cff8bdd5c849beafc351814f3cc32fc
https://github.com/geany/www.geany.org/commit/a0cc05847cff8bdd5c849beafc351814f3cc32fc
Log Message:
-----------
Add migrations for our custom apps
This further reduces race conditions when running "migrate" on a fresh
database as we have then clear dependencies (e.g. on auth.User).
Modified Paths:
--------------
latest_version/migrations/0001_initial.py
latest_version/migrations/__init__.py
news/migrations/0001_initial.py
news/migrations/__init__.py
pastebin/migrations/0001_initial.py
pastebin/migrations/__init__.py
tox.ini
Modified: latest_version/migrations/0001_initial.py
28 lines changed, 28 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,28 @@
+# Generated by Django 2.2.3 on 2019-07-14 11:34
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('sites', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LatestVersion',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('version', models.CharField(max_length=50, verbose_name='Latest Geany version')),
+ ('release_date', models.DateTimeField()),
+ ('github_link', models.CharField(max_length=255, verbose_name='Link to the Commits page on Github (everything after https://github.com/geany/geany/)')),
+ ],
+ options={
+ 'verbose_name_plural': 'Latest Version',
+ 'verbose_name': 'Latest Version',
+ },
+ ),
+ ]
Modified: latest_version/migrations/__init__.py
0 lines changed, 0 insertions(+), 0 deletions(-)
===================================================================
No diff available, check online
Modified: news/migrations/0001_initial.py
38 lines changed, 38 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,38 @@
+# Generated by Django 2.2.3 on 2019-07-14 11:34
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+import mezzanine.core.fields
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('sites', '__first__'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='NewsPost',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('slug', models.CharField(db_index=True, editable=False, max_length=255, verbose_name='Slug')),
+ ('title', models.CharField(blank=True, max_length=255, verbose_name='Title')),
+ ('content', mezzanine.core.fields.RichTextField(verbose_name='Content')),
+ ('status', models.IntegerField(choices=[(1, 'Draft'), (2, 'Published')], db_index=True, default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status')),
+ ('entry_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Published')),
+ ('publish_date', models.DateTimeField(blank=True, db_index=True, default=django.utils.timezone.now, verbose_name='Published on')),
+ ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='newsposts', to=settings.AUTH_USER_MODEL, verbose_name='Author')),
+ ],
+ options={
+ 'verbose_name_plural': 'News',
+ 'ordering': ('-publish_date',),
+ 'verbose_name': 'News',
+ },
+ ),
+ ]
Modified: news/migrations/__init__.py
0 lines changed, 0 insertions(+), 0 deletions(-)
===================================================================
No diff available, check online
Modified: pastebin/migrations/0001_initial.py
41 lines changed, 41 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,41 @@
+# Generated by Django 2.2.3 on 2019-07-14 11:34
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('sites', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Spamword',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('word', models.CharField(max_length=100)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Snippet',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('secret_id', models.CharField(blank=True, max_length=255, verbose_name='Secret ID')),
+ ('title', models.CharField(blank=True, max_length=120, verbose_name='Title')),
+ ('author', models.CharField(blank=True, max_length=30, verbose_name='Author')),
+ ('content', models.TextField(verbose_name='Content')),
+ ('content_highlighted', models.TextField(blank=True, verbose_name='Highlighted Content')),
+ ('lexer', models.CharField(default='text', max_length=30, verbose_name='Lexer')),
+ ('published', models.DateTimeField(blank=True, db_index=True, verbose_name='Published')),
+ ('expires', models.DateTimeField(blank=True, db_index=True, verbose_name='Expires')),
+ ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='children', to='pastebin.Snippet')),
+ ],
+ options={
+ 'ordering': ('-published',),
+ },
+ ),
+ ]
Modified: pastebin/migrations/__init__.py
0 lines changed, 0 insertions(+), 0 deletions(-)
===================================================================
No diff available, check online
Modified: tox.ini
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -32,7 +32,7 @@ commands =
{envbindir}/pylint --rcfile=tox.ini {[tox]geany_modules}
[flake8]
-exclude = build,.git,docs,local_settings.py
+exclude = build,.git,docs,migrations,local_settings.py
ignore = E127,E128,
max-line-length = 100
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list