Don't compile editor for example

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@908 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-07-24 16:18:51 +00:00
parent 2184679bb9
commit 1e92cfed7c
3 changed files with 6 additions and 38 deletions

View file

@ -1,10 +1,4 @@
<?php
// try to compile current version
$_SERVER["argv"] = array("", "editor");
ob_start();
include "../../compile.php";
ob_end_clean();
class Adminer {
function name() {
@ -39,4 +33,4 @@ class Adminer {
}
include "./editor.php";
include "./index.php";

View file

@ -1,31 +0,0 @@
DROP DATABASE IF EXISTS adminer_test;
CREATE DATABASE adminer_test COLLATE utf8_czech_ci;
USE adminer_test;
CREATE TABLE interprets (
id int NOT NULL auto_increment,
name varchar(50) NOT NULL COMMENT 'Name',
PRIMARY KEY (id)
) ENGINE=InnoDB COMMENT='Interprets';
CREATE TABLE albums (
id int NOT NULL auto_increment,
interpret int NOT NULL COMMENT 'Interpret',
title varchar(100) NOT NULL COMMENT 'Title',
FOREIGN KEY (interpret) REFERENCES interprets(id),
PRIMARY KEY (id)
) ENGINE=InnoDB COMMENT='Albums';
CREATE TABLE songs (
id int NOT NULL auto_increment,
album int NOT NULL COMMENT 'Album',
rank tinyint(4) NOT NULL COMMENT 'Rank',
title varchar(100) NOT NULL COMMENT 'Title',
duration time NOT NULL COMMENT 'Duration',
FOREIGN KEY (album) REFERENCES albums(id),
PRIMARY KEY (id)
) ENGINE=InnoDB COMMENT='Songs';
INSERT INTO interprets VALUES (1, 'Michael Jackson');
INSERT INTO albums VALUES (1, 1, 'Dangerous');
INSERT INTO songs VALUES (1, 1, 1, 'Jam', '00:05:39'), (2, 1, 2, 'Why You Wanna Trip On Me', '00:05:24'), (3, 1, 3, 'In the Closet', '00:06:31'), (4, 1, 4, 'She Drives Me Wild', '00:03:41'), (5, 1, 5, 'Remember the Time', '00:04:00'), (6, 1, 6, 'Can\'t Let Her Get Away', '00:04:58'), (7, 1, 7, 'Heal the World', '00:06:24'), (8, 1, 8, 'Black or White', '00:04:15'), (9, 1, 9, 'Who Is It', '00:06:34'), (10, 1, 10, 'Give In To Me', '00:05:29'), (11, 1, 11, 'Will You Be There', '00:07:40'), (12, 1, 12, 'Keep the Faith', '00:05:57'), (13, 1, 13, 'Gone Too Soon', '00:03:23'), (14, 1, 14, 'Dangerous', '00:06:57');

View file

@ -26,6 +26,11 @@
<td>delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure?</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>1 item have been affected.</td>