-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from openstates/db-migrations-voteevent-dedup…
…e-index Add instructions for migrating the database tables representing os-core models
- Loading branch information
Showing
8 changed files
with
90 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# type: ignore | ||
from ..utils.django import init_django | ||
from django.core import management | ||
|
||
|
||
def main() -> None: | ||
init_django() | ||
management.call_command("makemigrations") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.14 on 2024-07-05 18:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data', '0044_bill_citations'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='eventdocument', | ||
name='note', | ||
field=models.TextField(), | ||
), | ||
migrations.AddIndex( | ||
model_name='voteevent', | ||
index=models.Index(fields=['dedupe_key'], name='opencivicdata_voteevent_dedupe__75a90b_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
[tool.poetry] | ||
name = "openstates" | ||
version = "6.19.2" | ||
version = "6.19.3" | ||
description = "core infrastructure for the openstates project" | ||
authors = ["James Turk <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.scripts] | ||
os-update = 'openstates.cli.update:main' | ||
os-initdb = 'openstates.cli.initdb:main' | ||
os-dbmakemigrations = 'openstates.cli.makemigrations:main' | ||
os-update-computed = 'openstates.cli.update_computed:main' | ||
os-text-extract = 'openstates.cli.text_extract:main' | ||
os-people = 'openstates.cli.people:main' | ||
|