mirror of
https://github.com/vrana/adminer.git
synced 2025-08-23 22:52:51 +02:00
Inform about dropped routine, trigger and view
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1188 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
$TABLE = $_GET["view"];
|
||||
$dropped = false;
|
||||
if ($_POST && !$error) {
|
||||
if (strlen($TABLE)) {
|
||||
$dropped = query_redirect("DROP VIEW " . idf_escape($TABLE), substr(ME, 0, -1), lang('View has been dropped.'), false, !$_POST["dropped"]);
|
||||
}
|
||||
query_redirect("CREATE VIEW " . idf_escape($_POST["name"]) . " AS\n$_POST[select]", ME . "table=" . urlencode($_POST["name"]), (strlen($TABLE) ? lang('View has been altered.') : lang('View has been created.')));
|
||||
$dropped = drop_create(
|
||||
"DROP VIEW " . idf_escape($TABLE),
|
||||
"CREATE VIEW " . idf_escape($_POST["name"]) . " AS\n$_POST[select]",
|
||||
substr(ME, 0, -1),
|
||||
lang('View has been dropped.'),
|
||||
lang('View has been altered.'),
|
||||
lang('View has been created.'),
|
||||
$TABLE
|
||||
);
|
||||
}
|
||||
|
||||
page_header((strlen($TABLE) ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
|
||||
|
Reference in New Issue
Block a user