wcs: add migration to remove table (#56014)
This commit is contained in:
parent
4dcd011cae
commit
0d353c15cc
|
@ -1,8 +1,4 @@
|
|||
import django.contrib.postgres.fields.jsonb
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
import combo.apps.wcs.models
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -16,48 +12,6 @@ class Migration(migrations.Migration):
|
|||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='WcsFormsUserCanAccessCell',
|
||||
fields=[
|
||||
(
|
||||
'id',
|
||||
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
||||
),
|
||||
('placeholder', models.CharField(max_length=20)),
|
||||
('order', models.PositiveIntegerField()),
|
||||
('slug', models.SlugField(blank=True, verbose_name='Slug')),
|
||||
(
|
||||
'extra_css_class',
|
||||
models.CharField(
|
||||
blank=True, max_length=100, verbose_name='Extra classes for CSS styling'
|
||||
),
|
||||
),
|
||||
('public', models.BooleanField(default=True, verbose_name='Public')),
|
||||
(
|
||||
'restricted_to_unlogged',
|
||||
models.BooleanField(default=False, verbose_name='Restrict to unlogged users'),
|
||||
),
|
||||
('last_update_timestamp', models.DateTimeField(auto_now=True)),
|
||||
('wcs_site', models.CharField(blank=True, max_length=50, verbose_name='Site')),
|
||||
(
|
||||
'categories',
|
||||
django.contrib.postgres.fields.jsonb.JSONField(
|
||||
blank=True, default=dict, verbose_name='Categories'
|
||||
),
|
||||
),
|
||||
('groups', models.ManyToManyField(blank=True, to='auth.Group', verbose_name='Groups')),
|
||||
('page', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='data.Page')),
|
||||
(
|
||||
'template_name',
|
||||
models.CharField(blank=True, max_length=50, null=True, verbose_name='Cell Template'),
|
||||
),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Forms to which user has access',
|
||||
},
|
||||
bases=(
|
||||
combo.apps.wcs.models.CategoriesValidityMixin,
|
||||
combo.apps.wcs.models.CategoriesFilteringMixin,
|
||||
models.Model,
|
||||
combo.apps.wcs.models.WcsBlurpMixin,
|
||||
),
|
||||
fields=[], # this model was reverted
|
||||
),
|
||||
]
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wcs', '0033_card_custom_schema'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.DeleteModel(
|
||||
name='WcsFormsUserCanAccessCell',
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue