From abf77b1ae1ca2e193724747e680d1de5919f4c4a Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 1 Oct 2019 14:25:03 -0400 Subject: [PATCH] Drop notes tables. --- common/djangoapps/util/tests/test_db.py | 1 - .../notes/migrations/0002_remove_tables.py | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lms/djangoapps/notes/migrations/0002_remove_tables.py diff --git a/common/djangoapps/util/tests/test_db.py b/common/djangoapps/util/tests/test_db.py index 536a8ec3da..5b080acf98 100644 --- a/common/djangoapps/util/tests/test_db.py +++ b/common/djangoapps/util/tests/test_db.py @@ -223,7 +223,6 @@ class MigrationTests(TestCase): Tests for migrations. """ - @unittest.skip("Migration will delete the Note model. Need to ship not referencing it first. DEPR-18.") @override_settings(MIGRATION_MODULES={}) def test_migrations_are_in_sync(self): """ diff --git a/lms/djangoapps/notes/migrations/0002_remove_tables.py b/lms/djangoapps/notes/migrations/0002_remove_tables.py new file mode 100644 index 0000000000..8c19d49149 --- /dev/null +++ b/lms/djangoapps/notes/migrations/0002_remove_tables.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.25 on 2019-10-01 18:23 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('notes', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='note', + name='user', + ), + migrations.DeleteModel( + name='Note', + ), + ]