Add AT_plz_dest table

This commit is contained in:
2023-03-14 11:25:18 +01:00
parent 7e274275af
commit f4630976a0
7 changed files with 93 additions and 32 deletions

View File

@ -34,12 +34,23 @@ python3 plz.py
cd ..
````
## Create temporary database
This will create `wgtemp.sqlite3`.
```shell
rm wgtemp.sqlite3
echo ".q" | ./sqlite.sh wgtemp.sqlite3
```
## Migrate
This will create `wgprod.sqlite3` and migrate all WG Master data into it.
```shell
cd wgmaster
python3 migrate.py -q TABLES_DIR MIGRATE_DIR -d DB.sqlite3
python3 import.py MIGRATE_DIR NEW.sqlite3
python3 migrate.py -q TABLES_DIR MIGRATE_DIR -d ../wgtemp.sqlite3
python3 import.py MIGRATE_DIR ../wgprod.sqlite3
cd ..
```