mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 06:42:49 +00:00
asset import
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
#
|
||||
|
||||
for app in users assets perms audits teminal ops;do
|
||||
rm -f $app/migrations/000*
|
||||
rm -f ../apps/$app/migrations/000*
|
||||
done
|
||||
|
@@ -1,10 +1,17 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
|
||||
python ../apps/manage.py shell << EOF
|
||||
from users.models import *
|
||||
generate_fake()
|
||||
from assets.models import *
|
||||
generate_fake()
|
||||
EOF
|
||||
|
||||
python ../apps/manage.py dbshell << EOF
|
||||
delete from django_content_type;
|
||||
delete from auth_permission;
|
||||
EOF
|
||||
|
||||
|
||||
python ../apps/manage.py dumpdata > ../apps/fixtures/init.json
|
||||
python ../apps/manage.py dumpdata > ../apps/fixtures/fake.json
|
||||
|
Reference in New Issue
Block a user