parent
3b7e07bc28
commit
8d356716b4
6 changed files with 281 additions and 0 deletions
35
ccdb/projects/migrations/0003_DATA_reset_sequences.py
Normal file
35
ccdb/projects/migrations/0003_DATA_reset_sequences.py
Normal file
|
@ -0,0 +1,35 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.8 on 2017-12-22 14:41
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('projects', '0002_DATA_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunSQL(
|
||||
"SELECT setval('projects_project_id_seq', ("
|
||||
"SELECT MAX(id)+1 FROM projects_project), false)",
|
||||
|
||||
"SELECT setval('projects_project_id_seq', 1, false)"
|
||||
),
|
||||
|
||||
migrations.RunSQL(
|
||||
"SELECT setval('projects_grant_id_seq', ("
|
||||
"SELECT MAX(id)+1 FROM projects_grant), false)",
|
||||
|
||||
"SELECT setval('projects_grant_id_seq', 1, false)"
|
||||
),
|
||||
|
||||
migrations.RunSQL(
|
||||
"SELECT setval('projects_grantreport_id_seq', ("
|
||||
"SELECT MAX(id)+1 FROM projects_grantreport), false)",
|
||||
|
||||
"SELECT setval('projects_grantreport_id_seq', 1, false)"
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue