update hatching
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import os
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'RSI.settings')
|
||||
|
||||
import django
|
||||
django.setup()
|
||||
|
||||
from django.db import connection
|
||||
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("SELECT setval('django_content_type_id_seq', (SELECT MAX(id) FROM django_content_type));")
|
||||
print('Content type sequence reset to:', cursor.fetchone()[0])
|
||||
|
||||
cursor.execute("SELECT setval('auth_permission_id_seq', (SELECT MAX(id) FROM auth_permission));")
|
||||
print('Auth permission sequence reset to:', cursor.fetchone()[0])
|
||||
|
||||
print('Done!')
|
||||
|
||||
Reference in New Issue
Block a user