Commit 483522f9 authored by Cornee Traas's avatar Cornee Traas
Browse files

Add migrations

parent 6dd10dab
# Generated by Django 2.1.3 on 2018-11-14 13:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coursera', '0043_create_indexes'),
]
operations = [
migrations.CreateModel(
name='AnswerCount',
fields=[
('id', models.CharField(max_length=50, primary_key=True, serialize=False)),
('question_id', models.CharField(db_column='assessment_question_id', max_length=50)),
('timestamp', models.DateField(db_column='assessment_action_ts')),
('count_correct', models.IntegerField()),
('count_selected', models.IntegerField()),
],
options={
'db_table': 'assessment_answers_over_time_view',
'managed': False,
},
),
migrations.CreateModel(
name='CertificatePayment',
fields=[
('id', models.CharField(max_length=50, primary_key=True, serialize=False)),
('met_payment_condition', models.BooleanField(db_column='met_payment_condition')),
('was_payment', models.BooleanField(db_column='was_payment')),
('was_finaid_grant', models.BooleanField(db_column='was_finaid_grant')),
('was_group_sponsored', models.BooleanField(db_column='was_group_sponsored')),
],
options={
'db_table': 'course_payments_view',
'managed': False,
},
),
migrations.CreateModel(
name='CourseSpecialization',
fields=[
('id', models.CharField(max_length=50, primary_key=True, serialize=False)),
('current_dt', models.DateField(db_column='current_dt')),
],
options={
'db_table': 'specializations_courses_view',
'managed': False,
},
),
migrations.CreateModel(
name='ItemQuiz',
fields=[
('id', models.CharField(db_column='id', max_length=50, primary_key=True, serialize=False)),
],
options={
'db_table': 'course_branch_item_assessments_view',
'managed': False,
},
),
migrations.CreateModel(
name='ModuleDuration',
fields=[
('id', models.CharField(max_length=50, primary_key=True, serialize=False)),
('timestamp', models.DateTimeField(db_column='module_start_ts')),
('duration', models.DurationField()),
],
options={
'db_table': 'module_duration_view',
'managed': False,
},
),
migrations.CreateModel(
name='PeerAssignment',
fields=[
('id', models.CharField(db_column='peer_assignment_id', max_length=50, primary_key=True, serialize=False)),
('base_id', models.CharField(blank=True, db_column='peer_assignment_base_id', max_length=50, null=True)),
('type', models.CharField(blank=True, db_column='peer_assignment_type', max_length=50, null=True)),
('required_review_count', models.IntegerField(blank=True, db_column='peer_assignment_required_review_count', null=True)),
('passing_fraction', models.FloatField(blank=True, db_column='peer_assignment_passing_fraction', null=True)),
('required_reviewer_count_for_score', models.IntegerField(blank=True, db_column='peer_assignment_required_reviewer_count_for_score', null=True)),
('required_wait_for_score_ms', models.BigIntegerField(blank=True, db_column='peer_assignment_required_wait_for_score_ms', null=True)),
('maximum_score', models.FloatField(blank=True, db_column='peer_assignment_maximum_score', null=True)),
('update_ts', models.DateTimeField(blank=True, db_column='peer_assignment_update_ts', null=True)),
('is_mentor_graded', models.BooleanField(blank=True, db_column='peer_assignment_is_mentor_graded', null=True)),
],
options={
'db_table': 'peer_assignments_view',
'managed': False,
},
),
migrations.CreateModel(
name='PeerSubmission',
fields=[
('id', models.CharField(db_column='peer_submission_id', max_length=50, primary_key=True, serialize=False)),
('timestamp', models.DateTimeField(db_column='peer_submission_created_ts')),
('is_draft', models.BooleanField(blank=True, db_column='peer_submission_is_draft', null=True)),
('title', models.CharField(blank=True, db_column='peer_submission_title', max_length=65535, null=True)),
('removed_from_public_ts', models.DateTimeField(blank=True, db_column='peer_submission_removed_from_public_ts', null=True)),
('score_available_ts', models.DateTimeField(blank=True, db_column='peer_submission_score_available_ts', null=True)),
('score', models.FloatField(blank=True, db_column='peer_submission_score', null=True)),
('is_mentor_graded', models.BooleanField(blank=True, db_column='peer_submission_is_mentor_graded', null=True)),
],
options={
'db_table': 'peer_submissions_view',
'managed': False,
},
),
migrations.CreateModel(
name='Quiz',
fields=[
('id', models.CharField(db_column='assessment_id', max_length=50, primary_key=True, serialize=False)),
('base_id', models.CharField(db_column='assessment_base_id', max_length=50)),
('version', models.IntegerField(db_column='assessment_version')),
('type', models.CharField(db_column='assessment_type_desc', max_length=50)),
('update_timestamp', models.DateTimeField(db_column='assessment_update_ts')),
('passing_fraction', models.FloatField(db_column='assessment_passing_fraction')),
],
options={
'db_table': 'assessments_view',
'managed': False,
},
),
migrations.CreateModel(
name='Specialization',
fields=[
('id', models.CharField(db_column='specialization_id', max_length=50, primary_key=True, serialize=False)),
('slug', models.CharField(db_column='specialization_slug', max_length=255)),
('name', models.CharField(db_column='specialization_name', max_length=2000)),
('display_page_launch_ts', models.DateTimeField(db_column='specialization_display_page_launch_ts')),
('sequence_branch_id', models.CharField(db_column='sequence_branch_id', max_length=255)),
('version', models.BigIntegerField(db_column='specialization_version')),
('base_id', models.CharField(db_column='base_specialization_id', max_length=255)),
('primary_domain', models.CharField(db_column='specialization_primary_domain', max_length=255)),
('primary_subdomain', models.CharField(db_column='specialization_primary_subdomain', max_length=255)),
],
options={
'db_table': 'specializations_view',
'managed': False,
},
),
migrations.AlterModelTable(
name='branch',
table='course_branches_view',
),
migrations.AlterModelTable(
name='clickstreamevent',
table='clickstream_events_view',
),
migrations.AlterModelTable(
name='course',
table='courses_view',
),
migrations.AlterModelTable(
name='eitdigitaluser',
table='users_view',
),
migrations.AlterModelTable(
name='heartbeat',
table='heartbeat_events_view',
),
migrations.AlterModelTable(
name='itemtype',
table='course_item_types_view',
),
migrations.AlterModelTable(
name='lastactivitypermodule',
table='last_activity_per_module_view',
),
migrations.AlterModelTable(
name='ondemandsession',
table='on_demand_sessions_view',
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment