Kaydet (Commit) 8ca35d7c authored tarafından Shai Berger's avatar Shai Berger

Fixed Oracle build failure introduced by refs #24390.

Used shorter column names to make the generated index name
fit within Oracle's limit of 30 characters
üst 80be597a
......@@ -18,10 +18,10 @@ class SchemaIndexesTests(TestCase):
with connection.schema_editor() as editor:
index_name = editor._create_index_name(
model=Article,
column_names=("column1", "column2", "column3"),
column_names=("c1", "c2", "c3"),
suffix="123",
)
self.assertEqual(index_name, "indexes_article_column1_6bd61f85123")
self.assertEqual(index_name, "indexes_article_c1_7ce4cc86123")
def test_index_together(self):
editor = connection.schema_editor()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment