Add notes to collections in catalogue.
[redakcja.git] / src / catalogue / migrations / 0005_auto_20200322_2114.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 """
5 Removes all of the models from state, because they are moved to `documents` app.
6 These migrations should be kept for use by deployments still stuck with the
7 previous layout.
8 """
9
10 from django.db import migrations
11
12
13 class Migration(migrations.Migration):
14
15     dependencies = [
16         ('catalogue', '0004_auto_20191002_1224'),
17     ]
18
19     _state_operations = [
20         migrations.RemoveField(
21             model_name='book',
22             name='dc_cover_image',
23         ),
24         migrations.RemoveField(
25             model_name='book',
26             name='parent',
27         ),
28         migrations.RemoveField(
29             model_name='book',
30             name='project',
31         ),
32         migrations.RemoveField(
33             model_name='bookpublishrecord',
34             name='book',
35         ),
36         migrations.RemoveField(
37             model_name='bookpublishrecord',
38             name='user',
39         ),
40         migrations.AlterUniqueTogether(
41             name='chunk',
42             unique_together=None,
43         ),
44         migrations.RemoveField(
45             model_name='chunk',
46             name='book',
47         ),
48         migrations.RemoveField(
49             model_name='chunk',
50             name='creator',
51         ),
52         migrations.RemoveField(
53             model_name='chunk',
54             name='head',
55         ),
56         migrations.RemoveField(
57             model_name='chunk',
58             name='stage',
59         ),
60         migrations.RemoveField(
61             model_name='chunk',
62             name='user',
63         ),
64         migrations.AlterUniqueTogether(
65             name='chunkchange',
66             unique_together=None,
67         ),
68         migrations.RemoveField(
69             model_name='chunkchange',
70             name='author',
71         ),
72         migrations.RemoveField(
73             model_name='chunkchange',
74             name='merge_parent',
75         ),
76         migrations.RemoveField(
77             model_name='chunkchange',
78             name='parent',
79         ),
80         migrations.RemoveField(
81             model_name='chunkchange',
82             name='tags',
83         ),
84         migrations.RemoveField(
85             model_name='chunkchange',
86             name='tree',
87         ),
88         migrations.RemoveField(
89             model_name='chunkpublishrecord',
90             name='book_record',
91         ),
92         migrations.RemoveField(
93             model_name='chunkpublishrecord',
94             name='change',
95         ),
96         migrations.RemoveField(
97             model_name='image',
98             name='creator',
99         ),
100         migrations.RemoveField(
101             model_name='image',
102             name='head',
103         ),
104         migrations.RemoveField(
105             model_name='image',
106             name='project',
107         ),
108         migrations.RemoveField(
109             model_name='image',
110             name='stage',
111         ),
112         migrations.RemoveField(
113             model_name='image',
114             name='user',
115         ),
116         migrations.AlterUniqueTogether(
117             name='imagechange',
118             unique_together=None,
119         ),
120         migrations.RemoveField(
121             model_name='imagechange',
122             name='author',
123         ),
124         migrations.RemoveField(
125             model_name='imagechange',
126             name='merge_parent',
127         ),
128         migrations.RemoveField(
129             model_name='imagechange',
130             name='parent',
131         ),
132         migrations.RemoveField(
133             model_name='imagechange',
134             name='tags',
135         ),
136         migrations.RemoveField(
137             model_name='imagechange',
138             name='tree',
139         ),
140         migrations.RemoveField(
141             model_name='imagepublishrecord',
142             name='change',
143         ),
144         migrations.RemoveField(
145             model_name='imagepublishrecord',
146             name='image',
147         ),
148         migrations.RemoveField(
149             model_name='imagepublishrecord',
150             name='user',
151         ),
152         migrations.DeleteModel(
153             name='User',
154         ),
155         migrations.DeleteModel(
156             name='Book',
157         ),
158         migrations.DeleteModel(
159             name='BookPublishRecord',
160         ),
161         migrations.DeleteModel(
162             name='Chunk',
163         ),
164         migrations.DeleteModel(
165             name='ChunkChange',
166         ),
167         migrations.DeleteModel(
168             name='ChunkPublishRecord',
169         ),
170         migrations.DeleteModel(
171             name='ChunkTag',
172         ),
173         migrations.DeleteModel(
174             name='Image',
175         ),
176         migrations.DeleteModel(
177             name='ImageChange',
178         ),
179         migrations.DeleteModel(
180             name='ImagePublishRecord',
181         ),
182         migrations.DeleteModel(
183             name='ImageTag',
184         ),
185         migrations.DeleteModel(
186             name='Project',
187         ),
188     ]
189
190     operations = [
191         migrations.SeparateDatabaseAndState(
192             database_operations=[],
193             state_operations=_state_operations,
194         )
195     ]