Skip to content

Commit 5f0351e

Browse files
committed
temp: Add dummy model for testing migrations
This will be followed later by a revert of the model and addition of a corresponding second migration. Output of `sqlmigrate edx_arch_experiments 0001_initial`: ``` CREATE TABLE "edx_arch_experiments_boms227" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "dummy_field" varchar(50) NOT NULL); ``` With `--backwards`: ``` DROP TABLE "edx_arch_experiments_boms227"; ``` BOMS-227
1 parent 79cf894 commit 5f0351e

5 files changed

Lines changed: 46 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Change Log
1414
Unreleased
1515
**********
1616

17+
[7.1.0] - 2025-11-17
18+
********************
19+
Added
20+
=====
21+
* Dummy model for testing migrations and rollback.
22+
1723
[7.0.0] - 2025-01-30
1824
********************
1925

edx_arch_experiments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
A plugin to include applications under development by the architecture team at 2U.
33
"""
44

5-
__version__ = '7.0.0'
5+
__version__ = '7.1.0'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 4.2.25 on 2025-11-13 17:21
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
initial = True
9+
10+
dependencies = [
11+
]
12+
13+
operations = [
14+
migrations.CreateModel(
15+
name='Boms227',
16+
fields=[
17+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18+
('dummy_field', models.CharField(max_length=50)),
19+
],
20+
),
21+
]

edx_arch_experiments/migrations/__init__.py

Whitespace-only changes.

edx_arch_experiments/models.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Models for testing migrations.
3+
4+
We don't actually store any data in this Django app. The models here are purely
5+
for pipeline and deployment testing purposes.
6+
"""
7+
8+
from django.db import models
9+
10+
11+
class Boms227(models.Model):
12+
"""
13+
Model for testing migrations and rollbacks. See BOMS-227.
14+
15+
.. no_pii: No data should actually be stored in this table.
16+
"""
17+
18+
dummy_field = models.CharField(max_length=50)

0 commit comments

Comments
 (0)