migration.md 2.56 KB
Newer Older
1
2
3
4
5
6
7
8
9
# Data migrations

The old new website of Study Association Thalia contained a lot of data.
Before we can launch the new website, all old data has to be migrated
to the new website.
The migration instructions for each part of the website are shown below.

## Active members

10
11
This is taken care of during member migration.

12
13
## Documents

14
15
16
17
18
Make sure you have valid login credentials for thalia.nu.

To migrate all documents execute `python manage.py migratedocuments`
and enter the required login information.

19
20
## Education

21
22
23
24
25
Make sure that the API key is available as `MIGRATION_KEY` in settings.py.

To migrate the events, make sure that membershave been migrated.
Then simply execute `python manage.py migrateeducation`.

26
27
## Events

28
Make sure that the API key is available as `MIGRATION_KEY` in settings.py.
29
30
31
32

To migrate the events, make sure that members, committees and boards
have been migrated. Then simply execute `python manage.py migrateevents`.

33
34
## Mailing lists

Joost Rijneveld's avatar
Joost Rijneveld committed
35
36
37
38
39
Make sure that the API key is available as `MIGRATION_KEY` in settings.py.

To migrate the mailinglists, make sure that members, committees and boards
have been migrated. Then simply execute `python manage.py migratelists`.

40
41
## Members

42
43
44
45
46
47
48
49
50
To migrate members, committees, boards, memberships of committees and boards,
as well as introductionmentorships, execute `python manage.py migratemembers`.

Unfortunately, not all the data is complete. Most notably, some begin-dates are
missing. This will need to be fixed manually. These have been set to 1970,
as start dates are not optional.

This migration typically takes a few minutes.

51
52
## Newsletters

53
54
55
56
Make sure that the API key is available as `MIGRATION_KEY` in settings.py.

To migrate the newsletters simply execute `python manage.py migratenewsletters`.

57
58
## Partners

59
60
61
To migrate partners, partner events, vacancy categories and vacancies,
execute `python manage.py migratepartners`.

62
63
## Photos

64
65
66
67
68
69
Make sure the album directories exist somewhere on the server. Then,
for each album, perform `python manage.py importphotos <album dir>`.
This needs to be done per album to avoid having to store two copies of all
albums at the same time. Consider doing several albums at once by using
your shell to loop over a part of the set (e.g. divide them over directories).

70
71
72
73
## Pizzas

## Thabloids

74
75
Simply execute `python manage.py migratethabloids` to migrate all Thabloids.

76
## Merchandise
77
78
79
80

Make sure you have valid login credentials for thalia.nu.

To migrate the merchandise execute `python manage.py migratemerchandise` and
81
enter the required login information.
Thom Wiggers's avatar
Thom Wiggers committed
82
83
84
85

## Wiki

Copy `/data` folder to new installation.