mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
11 lines
315 B
Python
11 lines
315 B
Python
"""Phase 21 — Django migration benign control."""
|
|
_NYX_ADAPTER_MARKER = "from django.db import migrations"
|
|
|
|
|
|
def upgrade(table_name="users"):
|
|
safe = "".join(c for c in str(table_name) if c.isalnum() or c == "_")
|
|
return "CREATE INDEX idx_" + safe + " ON users(name)"
|
|
|
|
|
|
class Migration:
|
|
operations = []
|