Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tanin
authored and
Tanin
committed
Apr 5, 2012
1 parent
fcfc73b
commit 47ed974
Showing
3 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mysql_query("CREATE TABLE `members` ( | ||
`id` int(10) NOT NULL AUTO_INCREMENT, | ||
`username` varchar(255) DEFAULT NULL, | ||
`password` varchar(255) DEFAULT NULL, | ||
`age` int(10) DEFAULT NULL, | ||
`high_school` varchar(255) DEFAULT NULL, | ||
`height` int(10) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
<?php | ||
$options = getopt("", array("test")); | ||
|
||
if (isset($options['test'])) { | ||
try { | ||
$options = getopt("", array("test")); | ||
|
||
$mysql_database_name = $argv[2]; | ||
$mysql_username = $argv[3]; | ||
$mysql_password = $argv[4]; | ||
if (isset($options['test'])) { | ||
|
||
$migration_dir = "test/migration"; | ||
$schema_dir = "test/schema"; | ||
$mysql_database_name = $argv[2]; | ||
$mysql_username = $argv[3]; | ||
$mysql_password = $argv[4]; | ||
|
||
$new_argv = array("migrate.php"); | ||
for ($i=5;$i<sizeof($argv);$i++) { | ||
$new_argv[] = $argv[$i]; | ||
} | ||
$migration_dir = "test/migration"; | ||
$schema_dir = "test/schema"; | ||
|
||
$new_argv = array("migrate.php"); | ||
for ($i=5;$i<sizeof($argv);$i++) { | ||
$new_argv[] = $argv[$i]; | ||
} | ||
|
||
$argv = $new_argv; | ||
$argv = $new_argv; | ||
} | ||
} catch (Exception $e) { | ||
|
||
} | ||
|
||
?> |