Fix testing as a result of changes in 34139bc
This commit is contained in:
@@ -30,17 +30,12 @@ class SiteFactory extends Factory
|
||||
'id' => $this->faker->numberBetween(255,65535),
|
||||
// date_orig
|
||||
'active' => TRUE,
|
||||
'site_id' => $this->faker->numberBetween(255,65535),
|
||||
'country_id' => $co->id,
|
||||
'language_id' => $lo->id,
|
||||
'currency_id' => $cyo->id,
|
||||
// 'url'', // Needs to be passed in
|
||||
// login_expire,
|
||||
// time_format,
|
||||
// date_format,
|
||||
// decimal_place,
|
||||
// module_config,
|
||||
// site_details,
|
||||
// admin_date,
|
||||
// admin_id,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ class RenameSetup extends Migration
|
||||
DB::statement('ALTER TABLE ab_setup RENAME TO sites');
|
||||
DB::statement('ALTER TABLE sites MODIFY url VARCHAR(256) NOT NULL');
|
||||
DB::statement('ALTER TABLE sites CHANGE COLUMN id site_id INT NOT NULL');
|
||||
DB::statement('ALTER TABLE sites MODIFY admin_id INT(10) UNSIGNED NOT NULL');
|
||||
DB::statement('ALTER TABLE sites MODIFY admin_id INT(10) UNSIGNED DEFAULT NULL');
|
||||
DB::statement('ALTER TABLE sites MODIFY active TINYINT(1) NOT NULL');
|
||||
|
||||
Schema::table('sites', function (Blueprint $table) {
|
||||
|
@@ -20,35 +20,27 @@ class SiteTableSeeder extends Seeder
|
||||
$o->id = 254;
|
||||
// $o->date_orig
|
||||
$o->active = TRUE;
|
||||
$o->site_id = 254;
|
||||
$o->country_id = 61;
|
||||
$o->language_id = 1;
|
||||
$o->currency_id = 6;
|
||||
$o->url = 'test1';
|
||||
// $o->login_expire;
|
||||
// $o->time_format;
|
||||
// $o->date_format;
|
||||
// $o->decimal_place;
|
||||
// $o->module_config;
|
||||
// $o->site_details;
|
||||
// $o->admin_date;
|
||||
//$o->admin_id;
|
||||
|
||||
$o->save();
|
||||
|
||||
// Test Sites 254 & 255
|
||||
$o = new Site;
|
||||
$o->id = 255;
|
||||
// $o->date_orig
|
||||
$o->site_id = 255;
|
||||
$o->active = TRUE;
|
||||
$o->country_id = 61;
|
||||
$o->language_id = 1;
|
||||
$o->currency_id = 6;
|
||||
$o->url = 'test2';
|
||||
// $o->login_expire;
|
||||
// $o->time_format;
|
||||
// $o->date_format;
|
||||
// $o->decimal_place;
|
||||
// $o->module_config;
|
||||
// $o->site_details;
|
||||
// $o->admin_date;
|
||||
// $o->admin_id;
|
||||
|
||||
$o->save();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user