Skip to content

Commit

Permalink
migrations updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxpy committed Mar 24, 2022
1 parent a889751 commit f75daaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 98 deletions.
4 changes: 2 additions & 2 deletions accounts/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 4.0.3 on 2022-03-23 12:18
# Generated by Django 4.0.3 on 2022-03-25 01:30

import django.contrib.auth.models
import django.contrib.auth.validators
import django.utils.timezone
from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):
Expand Down
55 changes: 2 additions & 53 deletions main/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# Generated by Django 4.0.3 on 2022-03-23 12:20
# Generated by Django 4.0.3 on 2022-03-25 01:30

import django.db.models.deletion
import django_jalali.db.models
from django.conf import settings
from django.db import migrations, models
import django_jalali.db.models


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand All @@ -24,52 +21,4 @@ class Migration(migrations.Migration):
('created_on', django_jalali.db.models.jDateTimeField(auto_now=True)),
],
),
migrations.CreateModel(
name='Tag',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=150)),
('created_on', django_jalali.db.models.jDateTimeField(auto_now=True)),
],
),
migrations.CreateModel(
name='Ticket',
fields=[
('id', models.CharField(editable=False, max_length=11, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=150, verbose_name='عنوان')),
('description', models.TextField(verbose_name='توضیحات')),
('slug', models.SlugField(editable=False)),
('is_valid', models.CharField(choices=[('rejected', 'رد'), ('approved', 'تائید'), ('pending', 'در انتظار')], default='pending', max_length=20, verbose_name='اعتبارسنجی')),
('created_on', django_jalali.db.models.jDateTimeField(auto_now=True)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('tags', models.ManyToManyField(to='main.tag', verbose_name='تگ ها')),
],
),
migrations.CreateModel(
name='Snippet',
fields=[
('id', models.CharField(editable=False, max_length=11, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(default='', max_length=50, verbose_name='عنوان')),
('description', models.TextField(blank=True, verbose_name='توضیحات')),
('body', models.TextField(verbose_name='کد')),
('lang', models.CharField(choices=[('arduino', 'Arduino'), ('bash', 'Bash'), ('c', 'C'), ('cpp', 'C++'), ('csharp', 'C#'), ('css', 'CSS'), ('dart', 'Dart'), ('docker', 'DockerFile'), ('docker-compose', 'DockerCompose'), ('go', 'Go'), ('html', 'HTML'), ('java', 'Java'), ('js', 'JavaScript'), ('json', 'JSON'), ('lua', 'Lua'), ('md', 'markdown'), ('mysql', 'MySQL'), ('php', 'PHP'), ('python', 'Python'), ('rb', 'Ruby')], max_length=250, verbose_name='زبان برنامه\u200cنویسی')),
('created_on', django_jalali.db.models.jDateTimeField(auto_now=True)),
('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('body', models.CharField(max_length=250, verbose_name='نظر')),
('created_on', django_jalali.db.models.jDateTimeField(auto_now=True)),
('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('ticket', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.ticket')),
],
),
migrations.AddIndex(
model_name='snippet',
index=models.Index(fields=['id'], name='main_snippe_id_9d06f9_idx'),
),
]

This file was deleted.

6 changes: 3 additions & 3 deletions snippets/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 4.0.3 on 2022-03-23 14:29
# Generated by Django 4.0.3 on 2022-03-25 01:30

import django.db.models.deletion
import django_jalali.db.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_jalali.db.models


class Migration(migrations.Migration):
Expand Down
6 changes: 3 additions & 3 deletions tickets/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 4.0.3 on 2022-03-23 14:44
# Generated by Django 4.0.3 on 2022-03-25 01:30

import django.db.models.deletion
import django_jalali.db.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_jalali.db.models


class Migration(migrations.Migration):
Expand Down

0 comments on commit f75daaa

Please sign in to comment.