Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
3455ff73
Commit
3455ff73
authored
5 years ago
by
Diana Huang
Browse files
Options
Downloads
Patches
Plain Diff
Deletion migration for microsites tables.
parent
f5f87540
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/djangoapps/microsite_configuration/migrations/004_delete_all_tables.py
+47
-0
47 additions, 0 deletions
...crosite_configuration/migrations/004_delete_all_tables.py
common/djangoapps/util/tests/test_db.py
+0
-1
0 additions, 1 deletion
common/djangoapps/util/tests/test_db.py
with
47 additions
and
1 deletion
common/djangoapps/microsite_configuration/migrations/004_delete_all_tables.py
0 → 100644
+
47
−
0
View file @
3455ff73
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-08-16 17:27
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
microsite_configuration
'
,
'
0003_delete_historical_records
'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'
microsite
'
,
name
=
'
site
'
,
),
migrations
.
RemoveField
(
model_name
=
'
micrositehistory
'
,
name
=
'
site
'
,
),
migrations
.
RemoveField
(
model_name
=
'
micrositeorganizationmapping
'
,
name
=
'
microsite
'
,
),
migrations
.
AlterUniqueTogether
(
name
=
'
micrositetemplate
'
,
unique_together
=
set
([]),
),
migrations
.
RemoveField
(
model_name
=
'
micrositetemplate
'
,
name
=
'
microsite
'
,
),
migrations
.
DeleteModel
(
name
=
'
Microsite
'
,
),
migrations
.
DeleteModel
(
name
=
'
MicrositeHistory
'
,
),
migrations
.
DeleteModel
(
name
=
'
MicrositeOrganizationMapping
'
,
),
migrations
.
DeleteModel
(
name
=
'
MicrositeTemplate
'
,
),
]
This diff is collapsed.
Click to expand it.
common/djangoapps/util/tests/test_db.py
+
0
−
1
View file @
3455ff73
...
...
@@ -222,7 +222,6 @@ class MigrationTests(TestCase):
"""
Tests for migrations.
"""
@unittest.skip
(
"
Migration will delete several models. Need to ship not referencing it first. DEPR-12.
"
)
@override_settings
(
MIGRATION_MODULES
=
{})
def
test_migrations_are_in_sync
(
self
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment