migration.md 1.81 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
53
54
55
56
57
58
59
60
61
## Newsletters

## Partners

## Photos

## Pizzas

## Thabloids

## Merchandise
62
63
64
65
66

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

To migrate the merchandise execute `python manage.py migratemerchandise` and
enter the required login information.