mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Fix migrations
This commit is contained in:
parent
9e02d809a0
commit
58d85da72f
|
@ -22,7 +22,7 @@ class Migration(migrations.Migration):
|
|||
else:
|
||||
location = m.LocationHead.USER
|
||||
item.location = location
|
||||
item.save()
|
||||
item.save(update_fields=['location'])
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
|
|
|
@ -12,7 +12,7 @@ function LoadDjangoBackup() {
|
|||
& docker cp ${dataArchive} ${target}:$local_archiveDump
|
||||
& docker exec $target gzip --decompress --force $local_dataDump
|
||||
docker exec $target `
|
||||
python manage.py loaddata $local_dataDump
|
||||
python3.12 manage.py loaddata $local_dataDump
|
||||
& docker exec $target rm $local_dataDump
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Input params
|
||||
$dataDump = "D:\DEV\backup\portal\2023-09-01\2023-09-01-db.dump"
|
||||
$target = "dev-portal-db"
|
||||
$target = "local-portal-db"
|
||||
$pgUser = "portal-admin"
|
||||
$pgDB = "portal-db"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user