GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
sqlmarker
Browse code
• Added maximum length for Feature_Code.
master
1 parent
73c71e1
commit
4cfaff873decb447316a8415f43111950daecacc
Nigel Stanger
authored
on 19 Mar 2014
Patch
Showing
1 changed file
UsedCars/Test_classes/Feature/UsedCars_Test_Feature.php
Ignore Space
Show notes
View
UsedCars/Test_classes/Feature/UsedCars_Test_Feature.php
<?php require_once "Schema.php"; abstract class UsedCars_Test_Feature extends PHPUnit_Extensions_Database_TestCase_CreateTable { public function getTableName() { return 'FEATURE'; } public function getColumnList() { return array( 'FEATURE_CODE' => array( 'generic_type' => 'TEXT', 'sql_type' => array( 'CHAR', 'VARCHAR2', 'VARCHAR' ), 'min_length' => 5, 'max_length' => 5, 'nullable' => false, 'test_value' => "AIRCN", ), 'DESCRIPTION' => array( 'generic_type' => 'TEXT', 'sql_type' => array( 'VARCHAR2', 'VARCHAR' ), 'min_length' => 100, 'nullable' => false, 'test_value' => "Air conditioning", ), ); } public function getPKColumnList() { return array( 'FEATURE_CODE' ); } public function getFKColumnList() { return array(); } public function getUniqueColumnList() { return array(); } } ?>
<?php require_once "Schema.php"; abstract class UsedCars_Test_Feature extends PHPUnit_Extensions_Database_TestCase_CreateTable { public function getTableName() { return 'FEATURE'; } public function getColumnList() { return array( 'FEATURE_CODE' => array( 'generic_type' => 'TEXT', 'sql_type' => array( 'CHAR', 'VARCHAR2', 'VARCHAR' ), 'min_length' => 5, 'nullable' => false, 'test_value' => "AIRCN", ), 'DESCRIPTION' => array( 'generic_type' => 'TEXT', 'sql_type' => array( 'VARCHAR2', 'VARCHAR' ), 'min_length' => 100, 'nullable' => false, 'test_value' => "Air conditioning", ), ); } public function getPKColumnList() { return array( 'FEATURE_CODE' ); } public function getFKColumnList() { return array(); } public function getUniqueColumnList() { return array(); } } ?>
Show line notes below