mirror of https://github.com/doccano/doccano.git
Browse Source
Merge pull request #422 from CatalystCode/enhancement/mysql
Merge pull request #422 from CatalystCode/enhancement/mysql
Enhancement/Add support for MySQLpull/480/head v1.0.2
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 61 additions and 129 deletions
Split View
Diff Options
-
5.travis.yml
-
51app/api/migrations/0001_initial.py
-
21app/api/migrations/0002_approve_document_labels.py
-
28app/api/migrations/0003_support_sql_server.py
-
18app/api/migrations/0004_project_collaborative_annotation.py
-
43app/api/migrations/0004_roles.py
-
14app/api/migrations/0005_merge_20191021_1548.py
-
9app/app/settings.py
-
1requirements.txt
@ -1,21 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-06-26 13:24 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('api', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='document', |
|||
name='annotations_approved_by', |
|||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), |
|||
), |
|||
] |
@ -1,28 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-06-26 13:20 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('api', '0002_approve_document_labels'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='seq2seqannotation', |
|||
name='text', |
|||
field=models.CharField(max_length=500), |
|||
), |
|||
migrations.AlterUniqueTogether( |
|||
name='seq2seqannotation', |
|||
unique_together={('document', 'user', 'text')}, |
|||
), |
|||
migrations.AlterUniqueTogether( |
|||
name='label', |
|||
unique_together={('project', 'text')}, |
|||
), |
|||
] |
@ -1,18 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-08-01 18:12 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('api', '0003_support_sql_server'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='project', |
|||
name='collaborative_annotation', |
|||
field=models.BooleanField(default=False), |
|||
), |
|||
] |
@ -1,43 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-07-25 03:33 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('api', '0003_support_sql_server'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Role', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('name', models.CharField(max_length=100, unique=True)), |
|||
('description', models.TextField(default='', null=True)), |
|||
('created_at', models.DateTimeField(auto_now_add=True)), |
|||
('updated_at', models.DateTimeField(auto_now=True)), |
|||
], |
|||
), |
|||
migrations.CreateModel( |
|||
name='RoleMapping', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('created_at', models.DateTimeField(auto_now_add=True)), |
|||
('updated_at', models.DateTimeField(auto_now=True)), |
|||
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, |
|||
related_name='role_mappings', to='api.Project')), |
|||
('role', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Role')), |
|||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, |
|||
related_name='role_mappings', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
), |
|||
migrations.AlterUniqueTogether( |
|||
name='rolemapping', |
|||
unique_together={('user', 'project', 'role')}, |
|||
), |
|||
] |
@ -1,14 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-10-21 15:48 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('api', '0004_project_collaborative_annotation'), |
|||
('api', '0004_roles'), |
|||
] |
|||
|
|||
operations = [ |
|||
] |
Write
Preview
Loading…
Cancel
Save