Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 329 lines (299 sloc) 10.791 kb
7ff8fed Initial revision
Olivier Müller authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
374abd5 fixed/added page level docblock
Sebastian Mendel authored
3 /**
caa9844 Marc Delisle conform to relational terminology regarding columns and rows
lem9 authored
4 * Alter one or more table columns
d7ecf57 replaced NULL/NOT NULL selectbox with checkbox (preserver space)
Sebastian Mendel authored
5 *
6 * linked from table_structure, uses libraries/tbl_properties.inc.php to display
7 * form and handles this form data
374abd5 fixed/added page level docblock
Sebastian Mendel authored
8 *
e56949f Michal Čihař Use package name PhpMyAdmin
nijel authored
9 * @package PhpMyAdmin
374abd5 fixed/added page level docblock
Sebastian Mendel authored
10 */
7ff8fed Initial revision
Olivier Müller authored
11
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
12 /**
13 * Gets some core libraries
14 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
15 require_once 'libraries/common.inc.php';
fcf387b common.lib.php should REALLY REALLY and ALWAYS be the first include
Sebastian Mendel authored
16
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
17 require_once 'libraries/header.inc.php';
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
18
1c50bea Marc Delisle No longer depend on grab_globals.lib.php for $_GET variables
lem9 authored
19 if (isset($_REQUEST['field'])) {
20 $GLOBALS['field'] = $_REQUEST['field'];
21 }
22
fc1c463 Marc Delisle path disclosure
lem9 authored
23 // Check parameters
24 PMA_checkParameters(array('db', 'table'));
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
25
26 /**
3f258cf Michal Čihař Cleanup of message displaying and navigation reloading.
nijel authored
27 * Gets tables informations
28 */
28923b4 Rouslan Placella Renamed tbl_common.php to tbl_common.inc.php for better consistency
roccivic authored
29 require_once 'libraries/tbl_common.inc.php';
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
30 require_once 'libraries/tbl_info.inc.php';
3f258cf Michal Čihař Cleanup of message displaying and navigation reloading.
nijel authored
31
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
32 $active_page = 'tbl_structure.php';
3f258cf Michal Čihař Cleanup of message displaying and navigation reloading.
nijel authored
33
34 /**
e726fe7 Fixed bug #444352 (Data Missing/POST Error)
Loïc Chapeaux authored
35 * Defines the url to return to in case of error in a sql statement
36 */
ad06b4a Michal Čihař Rename tbl_* files to drop useless _properties part.
nijel authored
37 $err_url = 'tbl_structure.php?' . PMA_generate_common_url($db, $table);
e726fe7 Fixed bug #444352 (Data Missing/POST Error)
Loïc Chapeaux authored
38
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
39 /**
40 * Moving columns
41 */
f77906d Sort fields table with JS after moving columns instead of 2nd ajax
Jo Michael authored
42 if (isset($_REQUEST['move_columns'])
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
43 && is_array($_REQUEST['move_columns'])
44 && $GLOBALS['is_ajax_request']) {
45 /*
46 * first, load the definitions for all columns
47 */
75d296a Use PMA_DBI_get_columns_full for moving columns
Jo Michael authored
48 $columns = PMA_DBI_get_columns_full($db, $table);
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
49 $column_names = array_keys($columns);
50 $changes = array();
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
51 $we_dont_change_keys = array();
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
52
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
53 // move columns from first to last
54 for ($i = 0, $l = count($_REQUEST['move_columns']); $i < $l; $i++) {
55 $column = $_REQUEST['move_columns'][$i];
56 // is this column already correctly placed?
75d296a Use PMA_DBI_get_columns_full for moving columns
Jo Michael authored
57 if ($column_names[$i] == $column) {
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
58 continue;
59 }
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
60
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
61 // it is not, let's move it to index $i
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
62 $data = $columns[$column];
503e45a Marc Delisle Fix merge conflicts
lem9 authored
63 $extracted_columnspec = PMA_extractColumnSpec($data['Type']);
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
64 if (isset($data['Extra']) && $data['Extra'] == 'on update CURRENT_TIMESTAMP') {
503e45a Marc Delisle Fix merge conflicts
lem9 authored
65 $extracted_columnspec['attribute'] = $data['Extra'];
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
66 unset($data['Extra']);
67 }
68 $current_timestamp = false;
69 if ($data['Type'] == 'timestamp' && $data['Default'] == 'CURRENT_TIMESTAMP') {
70 $current_timestamp = true;
71 }
6839781 Fix checkstyle MultiLineAssignment warnings
Jo Michael authored
72 $default_type
73 = $data['Null'] === 'YES' && $data['Default'] === null
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
74 ? 'NULL'
75 : ($current_timestamp
76 ? 'CURRENT_TIMESTAMP'
77 : ($data['Default'] == ''
78 ? 'NONE'
79 : 'USER_DEFINED'));
80
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
81 $changes[] = 'CHANGE ' . PMA_Table::generateAlter(
82 $column,
83 $column,
503e45a Marc Delisle Fix merge conflicts
lem9 authored
84 strtoupper($extracted_columnspec['type']),
85 $extracted_columnspec['spec_in_brackets'],
86 $extracted_columnspec['attribute'],
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
87 isset($data['Collation'])
88 ? $data['Collation']
89 : '',
90 $data['Null'] === 'YES'
91 ? 'NULL'
92 : 'NOT NULL',
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
93 $default_type,
94 $current_timestamp
95 ? ''
96 : $data['Default'],
97 isset($data['Extra']) && $data['Extra'] !== ''
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
98 ? $data['Extra']
99 : false,
93f918a Move columns: Test whether Comment field is set
Jo Michael authored
100 isset($data['Comments']) && $data['Comments'] !== ''
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
101 ? $data['Comments']
102 : false,
f76f092 Move columns: feed generateAlter with same input as when editing single ...
Jo Michael authored
103 $we_dont_change_keys,
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
104 $i,
105 $i === 0
106 ? '-first'
107 : $column_names[$i - 1]
108 );
75d296a Use PMA_DBI_get_columns_full for moving columns
Jo Michael authored
109 // update current column_names array, first delete old position
2466594 Fix checkstyle ControlStructures warnings
Jo Michael authored
110 for ($j = 0, $ll = count($column_names); $j < $ll; $j++) {
75d296a Use PMA_DBI_get_columns_full for moving columns
Jo Michael authored
111 if ($column_names[$j] == $column) {
112 unset($column_names[$j]);
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
113 }
114 }
115 // insert moved column
75d296a Use PMA_DBI_get_columns_full for moving columns
Jo Michael authored
116 array_splice($column_names, $i, 0, $column);
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
117 }
cdfe73d Use PMA_Table::generateAlter for moving columns
Jo Michael authored
118 if (empty($changes)) { // should never happen
119 PMA_ajaxResponse('', true);
120 }
121 $move_query = 'ALTER TABLE ' . PMA_backquote($table) . ' ';
122 $move_query .= implode(', ', $changes);
123 // move columns
124 $result = PMA_DBI_try_query($move_query);
125 $tmp_error = PMA_DBI_getError();
126 if ($tmp_error) {
127 PMA_ajaxResponse(PMA_Message::error($tmp_error), false);
128 }
f77906d Sort fields table with JS after moving columns instead of 2nd ajax
Jo Michael authored
129 PMA_ajaxResponse(
130 PMA_Message::success(__('The columns have been moved successfully.')),
131 true,
132 array(
133 'columns' => $column_names
134 )
135 );
37ac76c rfe #3517835 [structure] Move columns easily
Jo Michael authored
136 }
e726fe7 Fixed bug #444352 (Data Missing/POST Error)
Loïc Chapeaux authored
137
138 /**
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
139 * Modifications have been submitted -> updates the table
140 */
3ae253e Do not waste the data for table-field creation, if MySQL shows an error.
Garvin Hicking authored
141 $abort = false;
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
142 if (isset($_REQUEST['do_save_data'])) {
143 $field_cnt = count($_REQUEST['field_orig']);
144 $key_fields = array();
145 $changes = array();
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
146
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
147 for ($i = 0; $i < $field_cnt; $i++) {
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
148 $changes[] = 'CHANGE ' . PMA_Table::generateAlter(
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
149 $_REQUEST['field_orig'][$i],
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
150 $_REQUEST['field_name'][$i],
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
151 $_REQUEST['field_type'][$i],
152 $_REQUEST['field_length'][$i],
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
153 $_REQUEST['field_attribute'][$i],
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
154 isset($_REQUEST['field_collation'][$i])
155 ? $_REQUEST['field_collation'][$i]
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
156 : '',
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
157 isset($_REQUEST['field_null'][$i])
158 ? $_REQUEST['field_null'][$i]
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
159 : 'NOT NULL',
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
160 $_REQUEST['field_default_type'][$i],
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
161 $_REQUEST['field_default_value'][$i],
a20d062 fixed NOTICE
Sebastian Mendel authored
162 isset($_REQUEST['field_extra'][$i])
163 ? $_REQUEST['field_extra'][$i]
164 : false,
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
165 isset($_REQUEST['field_comments'][$i])
166 ? $_REQUEST['field_comments'][$i]
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
167 : '',
168 $key_fields,
169 $i,
b5bca9c Move columns in table columns editor
Jo Michael authored
170 isset($_REQUEST['field_move_to'][$i])
171 ? $_REQUEST['field_move_to'][$i]
172 : ''
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
173 );
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
174 } // end for
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
175
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
176 // Builds the primary keys statements and updates the table
177 $key_query = '';
178 /**
179 * this is a little bit more complex
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
180 *
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
181 * @todo if someone selects A_I when altering a column we need to check:
182 * - no other column with A_I
183 * - the column has an index, if not create one
184 *
185 if (count($key_fields)) {
186 $fields = array();
187 foreach ($key_fields as $each_field) {
188 if (isset($_REQUEST['field_name'][$each_field]) && strlen($_REQUEST['field_name'][$each_field])) {
189 $fields[] = PMA_backquote($_REQUEST['field_name'][$each_field]);
190 }
191 } // end for
192 $key_query = ', ADD KEY (' . implode(', ', $fields) . ') ';
193 }
194 */
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
195
f7ef2d4 Fixed bug #548495 - Alter table not replicate
Loïc Chapeaux authored
196 // To allow replication, we first select the db to use and then run queries
197 // on this db.
091daa3 Dieter Adriaenssens clarify code
ruleant authored
198 if (! PMA_DBI_select_db($db)) {
199 PMA_mysqlDie(
200 PMA_DBI_getError(),
201 'USE ' . PMA_backquote($db) . ';',
202 '',
203 $err_url
204 );
205 }
206 $sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' ';
207 $sql_query .= implode(', ', $changes) . $key_query;
03cb361 Michal Čihař Add trailing ; after ALTER TABLE (rfe #2009500)
nijel authored
208 $sql_query .= ';';
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
209 $result = PMA_DBI_try_query($sql_query);
30b1873 Update and display column comments in Add/Edit Fieldmode and CREATE tabl...
Garvin Hicking authored
210
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
211 if ($result !== false) {
76ce885 Dieter Adriaenssens improve coding style
ruleant authored
212 $message = PMA_Message::success(
213 __('Table %1$s has been altered successfully')
214 );
26599a4 fixed call to PMA_Message::addParam()
Sebastian Mendel authored
215 $message->addParam($table);
65fea8c make use of PMA_Message
Sebastian Mendel authored
216 $btnDrop = 'Fake';
a1875b0 Alexander M. Turek Improved MySQL 4.1 support
derrabus authored
217
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
218 /**
219 * If comments were sent, enable relation stuff
220 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
221 include_once 'libraries/transformations.lib.php';
a1875b0 Alexander M. Turek Improved MySQL 4.1 support
derrabus authored
222
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
223 // updaet field names in relation
224 if (isset($_REQUEST['field_orig']) && is_array($_REQUEST['field_orig'])) {
225 foreach ($_REQUEST['field_orig'] as $fieldindex => $fieldcontent) {
226 if ($_REQUEST['field_name'][$fieldindex] != $fieldcontent) {
76ce885 Dieter Adriaenssens improve coding style
ruleant authored
227 PMA_REL_renameField(
228 $db, $table, $fieldcontent,
229 $_REQUEST['field_name'][$fieldindex]
230 );
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
231 }
232 }
233 }
234
235 // update mime types
236 if (isset($_REQUEST['field_mimetype'])
4b8d52d Madhura Jayaratne Fix CheckStyle warnings, Type:CloseBracketNewLine (Closing parenthesis o...
madhuracj authored
237 && is_array($_REQUEST['field_mimetype'])
238 && $cfg['BrowseMIME']
239 ) {
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
240 foreach ($_REQUEST['field_mimetype'] as $fieldindex => $mimetype) {
241 if (isset($_REQUEST['field_name'][$fieldindex])
76ce885 Dieter Adriaenssens improve coding style
ruleant authored
242 && strlen($_REQUEST['field_name'][$fieldindex])
243 ) {
244 PMA_setMIME(
245 $db, $table, $_REQUEST['field_name'][$fieldindex],
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
246 $mimetype,
247 $_REQUEST['field_transformation'][$fieldindex],
76ce885 Dieter Adriaenssens improve coding style
ruleant authored
248 $_REQUEST['field_transformation_options'][$fieldindex]
249 );
db21962 Michal Čihař Do not try to set comment and MIME transformation if field not named.
nijel authored
250 }
3ae253e Do not waste the data for table-field creation, if MySQL shows an error.
Garvin Hicking authored
251 }
252 }
a1875b0 Alexander M. Turek Improved MySQL 4.1 support
derrabus authored
253
66fbb2d Thilanka Kaushalya Fixed the bugs in table copy of table operations
lgtkaushalya authored
254 if ( $_REQUEST['ajax_request'] == true) {
13adb5a Madhura Jayaratne Use lower case for true, false and null
madhuracj authored
255 $extra_data['sql_query'] = PMA_showMessage(null, $sql_query);
66fbb2d Thilanka Kaushalya Fixed the bugs in table copy of table operations
lgtkaushalya authored
256 PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
23c8cf4 This page can now handle ajax requests
ninadsp authored
257 }
258
ad06b4a Michal Čihař Rename tbl_* files to drop useless _properties part.
nijel authored
259 $active_page = 'tbl_structure.php';
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
260 include 'tbl_structure.php';
3ae253e Do not waste the data for table-field creation, if MySQL shows an error.
Garvin Hicking authored
261 } else {
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
262 PMA_mysqlDie('', '', '', $err_url, false);
9785bbc Marc Delisle remove author names
lem9 authored
263 // An error happened while inserting/updating a table definition.
3ae253e Do not waste the data for table-field creation, if MySQL shows an error.
Garvin Hicking authored
264 // to prevent total loss of that data, we embed the form once again.
c40b663 Michal Čihař Move tbl_properties{.inc,_links,_table_info}.php to libraries folder as ...
nijel authored
265 // The variable $regenerate will be used to restore data in libraries/tbl_properties.inc.php
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
266 if (isset($_REQUEST['orig_field'])) {
267 $_REQUEST['field'] = $_REQUEST['orig_field'];
dba8ecc Display MIME types to transform any table cell. You can only choose from...
Garvin Hicking authored
268 }
269
3ae253e Do not waste the data for table-field creation, if MySQL shows an error.
Garvin Hicking authored
270 $regenerate = true;
271 }
7ff8fed Initial revision
Olivier Müller authored
272 }
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
273
274 /**
275 * No modifications yet required -> displays the table fields
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
276 *
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
277 * $selected comes from multi_submits.inc.php
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
278 */
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
279 if ($abort == false) {
280 if (! isset($selected)) {
fc1c463 Marc Delisle path disclosure
lem9 authored
281 PMA_checkParameters(array('field'));
206f4ad refactored complete table/column creation altering;
Sebastian Mendel authored
282 $selected[] = $_REQUEST['field'];
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
283 $selected_cnt = 1;
518aca0 Fixed bug #543365 - Can't change field properties when name contains loc...
Loïc Chapeaux authored
284 } else { // from a multiple submit
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
285 $selected_cnt = count($selected);
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
286 }
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
287
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
288 /**
289 * @todo optimize in case of multiple fields to modify
290 */
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
291 for ($i = 0; $i < $selected_cnt; $i++) {
be6e210 Piotr Przybylski Use new PMA_DBI_get_columns in column alter form
Crack authored
292 $fields_meta[] = PMA_DBI_get_columns($db, $table, $selected[$i], true);
bbef63f Merged part 2 of patch #458014: multi-column editing
Loïc Chapeaux authored
293 }
294 $num_fields = count($fields_meta);
6884f97 Michal Čihař no more support for php3
nijel authored
295 $action = 'tbl_alter.php';
b8b9334 Marc Delisle experimental support in table structure editing for MySQL 4.1.2+ TIMESTA...
lem9 authored
296
ad48d9f Marc Delisle bug #2895894 [structure] Empty default value not set properly
lem9 authored
297 // Get more complete field information.
298 // For now, this is done to obtain MySQL 4.1.2+ new TIMESTAMP options
299 // and to know when there is an empty DEFAULT value.
300 // Later, if the analyser returns more information, it
12f70e8 Piotr Przybylski Replace all SHOW FIELDS calls with PMA_DBI_get_columns() or PMA_DBI_get_...
Crack authored
301 // could be executed to replace the info given by SHOW FULL COLUMNS FROM.
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
302 /**
303 * @todo put this code into a require()
18c6832 Marc Delisle Comment adjusted to reflect a previous change of function name
lem9 authored
304 * or maybe make it part of PMA_DBI_get_columns();
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
305 */
b8b9334 Marc Delisle experimental support in table structure editing for MySQL 4.1.2+ TIMESTA...
lem9 authored
306
ad48d9f Marc Delisle bug #2895894 [structure] Empty default value not set properly
lem9 authored
307 // We also need this to correctly learn if a TIMESTAMP is NOT NULL, since
12f70e8 Piotr Przybylski Replace all SHOW FIELDS calls with PMA_DBI_get_columns() or PMA_DBI_get_...
Crack authored
308 // SHOW FULL COLUMNS says NULL and SHOW CREATE TABLE says NOT NULL (tested
ad48d9f Marc Delisle bug #2895894 [structure] Empty default value not set properly
lem9 authored
309 // in MySQL 4.0.25).
b8b9334 Marc Delisle experimental support in table structure editing for MySQL 4.1.2+ TIMESTA...
lem9 authored
310
76ce885 Dieter Adriaenssens improve coding style
ruleant authored
311 $show_create_table = PMA_DBI_fetch_value(
312 'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table),
313 0, 1
314 );
ad48d9f Marc Delisle bug #2895894 [structure] Empty default value not set properly
lem9 authored
315 $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
316 unset($show_create_table);
37315b0 Michal Čihař Document some require/includes as phpdoc otherwise takes random block be...
nijel authored
317 /**
318 * Form for changing properties.
319 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
320 include 'libraries/tbl_properties.inc.php';
7ff8fed Initial revision
Olivier Müller authored
321 }
322
0ab0ad6 Marc Delisle merge Loic's version
lem9 authored
323
324 /**
325 * Displays the footer
326 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
327 require 'libraries/footer.inc.php';
37d50c1 Alexander M. Turek Huge set of optimizations, please test!
derrabus authored
328 ?>
Something went wrong with that request. Please try again.