You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
931 B
26 lines
931 B
2 years ago
|
<form action="{{ url('/table/structure/primary') }}" method="post">
|
||
|
{{ get_hidden_inputs({'db': db, 'table': table, 'selected': selected}) }}
|
||
|
|
||
|
<fieldset class="pma-fieldset confirmation">
|
||
|
<legend>
|
||
|
{% trans 'Do you really want to execute the following query?' %}
|
||
|
</legend>
|
||
|
|
||
|
<code>
|
||
|
ALTER TABLE {{ backquote(table) }}<br>
|
||
|
DROP PRIMARY KEY,<br>
|
||
|
ADD PRIMARY KEY(<br>
|
||
|
{% for field in selected %}
|
||
|
{{ backquote(field) }}
|
||
|
{%- if not loop.last %},{% endif %}<br>
|
||
|
{% endfor %}
|
||
|
);
|
||
|
</code>
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset class="pma-fieldset tblFooters">
|
||
|
<input id="buttonYes" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
|
||
|
<input id="buttonNo" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'No' %}">
|
||
|
</fieldset>
|
||
|
</form>
|