-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUPGRADE.txt
149 lines (95 loc) · 3.36 KB
/
UPGRADE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
This text describes what actions to perform when upgrading ExponWords to a
newer version.
Upgrading to 0.4.0
------------------
Add the "labels" column to the ew_wordpair table:
$ sqlite3 production.db
sqlite> alter table ew_wordpair add column labels string;
sqlite> update ew_wordpair set labels='';
sqlite> ^D
Upgrading to 0.5.0
------------------
No action required.
Upgrading to 0.6.0
------------------
No action required.
Upgrading to 0.7.0
------------------
No action required.
Upgrading to 0.8.0
------------------
No action required.
Upgrading to 0.9.0
------------------
Set up the name of your site and set up an SMTP server: see README.markdown.
Create the ew_ewuser table:
$ python manage.py syncdb
Add the email-addresses of the users.
Upgrading to 0.10.0
-------------------
No action required.
Upgrading to 0.11.0
-------------------
Create the ew_announcement table:
$ python manage.py syncdb
Modify the UI language of all users who have not chosen a language. You can do
that either on the admin interface, or from the Django shell. For example this
sets the UI language of all such users to English:
$ cd .../ExponWords
$ python manage.py shell
>>> import ew.models as models
>>> for user in models.EWUser.objects.filter(lang='default'):
... user.lang='en'
... user.save()
Upgrading to 0.12.0
-------------------
Add the "practice_word_order" column to the ew_wdict and ew_ewuser tables:
$ sqlite3 production.db
sqlite> alter table ew_wdict add column practice_word_order string;
sqlite> update ew_wdict set practice_word_order='default';
sqlite> alter table ew_ewuser add column practice_word_order string;
sqlite> update ew_ewuser set practice_word_order='random';
Upgrading to 0.13.0
-------------------
Add the "quick_labels" column to the ew_ewuser tables:
$ sqlite3 production.db
sqlite> alter table ew_ewuser add column quick_labels string;
sqlite> update ew_ewuser set quick_labels='quick';
Upgrading to 0.14.0
-------------------
Add the new columns to the appropriate tables:
$ sqlite3 production.db
sqlite> alter table ew_wdict add column strengthener_method string;
sqlite> update ew_wdict set strengthener_method='default';
sqlite> alter table ew_ewuser add column strengthener_method string;
sqlite> update ew_ewuser set strengthener_method='double_actual';
sqlite> alter table ew_ewuser add column pgupdown_behavior string;
sqlite> update ew_ewuser set pgupdown_behavior='normal';
sqlite> alter table ew_ewuser add column extras string;
sqlite> update ew_ewuser set extras='';
sqlite> alter table ew_wdict add column text_format string;
sqlite> update ew_wdict set text_format='text';
sqlite> alter table ew_wdict add column css string;
sqlite> update ew_wdict set css='';
Upgrading to 1.0.0
-------------------
Install Django 2.1 and migrate the database:
$ python manage.py migrate --fake-initial
Upgrading to 1.0.1
------------------
No action required.
Upgrading to 1.0.2
------------------
No action required.
Upgrading to 1.1.0
------------------
Install Django 3.0 and migrate the database:
$ python manage.py migrate
Compile the translations:
$ django-admin.py compilemessages
Upgrading to 1.2.0
------------------
No action required.
Upgrading to 1.3.0
------------------
No action required.