diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-06-18 11:35:53 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-06-18 11:35:53 -0400 |
commit | fe4cc29b274573e93a369522ace49494345f9df7 (patch) | |
tree | 416151579f82ebd3f7387bf0f442578bdcc16759 /shared | |
parent | Updates to sql_row_obj, index.php (diff) | |
download | ingenue-fe4cc29b274573e93a369522ace49494345f9df7.tar.gz ingenue-fe4cc29b274573e93a369522ace49494345f9df7.tar.bz2 ingenue-fe4cc29b274573e93a369522ace49494345f9df7.zip |
Created class from SQL table frontend, generated sql_builds class
Diffstat (limited to 'shared')
-rw-r--r-- | shared/classes/build.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/shared/classes/build.php b/shared/classes/build.php new file mode 100644 index 0000000..f2fb443 --- /dev/null +++ b/shared/classes/build.php @@ -0,0 +1,39 @@ +<?php +class sql_build extends sql_row_obj { + protected $table='builds', $columns=array( + 'id' => array ( + 'type' => 'CHAR', + 'length' => 6, + 'not_null' => true + ), + 'owner' => array ( + 'type' => 'INT', + 'length' => 10, + 'unsigned' => true, + 'not_null' => true + ), + 'name' => array ( + 'type' => 'VARCHAR', + 'length' => 255 + ), + 'status' => array ( + 'type' => 'VARCHAR', + 'length' => 255, + 'not_null' => true + ), + 'start' => array ( + 'type' => 'INT', + 'length' => 10, + 'unsigned' => true, + 'not_null' => true + ), + 'finish' => array ( + 'type' => 'INT', + 'length' => 10, + 'unsigned' => true, + 'not_null' => true + ) + + ); +} +?> |