Commit 3e54253e authored by Viral Solani's avatar Viral Solani

Remove unnecessary seeders

parent 9a186f4c
......@@ -331,21 +331,21 @@
},
{
"name": "doctrine/annotations",
"version": "v1.5.0",
"version": "v1.4.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/annotations.git",
"reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f"
"reference": "54cacc9b81758b14e3ce750f205a393d52339e97"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/5beebb01b025c94e93686b7a0ed3edae81fe3e7f",
"reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97",
"reference": "54cacc9b81758b14e3ce750f205a393d52339e97",
"shasum": ""
},
"require": {
"doctrine/lexer": "1.*",
"php": "^7.1"
"php": "^5.6 || ^7.0"
},
"require-dev": {
"doctrine/cache": "1.*",
......@@ -354,7 +354,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.5.x-dev"
"dev-master": "1.4.x-dev"
}
},
"autoload": {
......@@ -395,41 +395,37 @@
"docblock",
"parser"
],
"time": "2017-07-22T10:58:02+00:00"
"time": "2017-02-24T16:22:25+00:00"
},
{
"name": "doctrine/cache",
"version": "v1.7.1",
"version": "v1.6.2",
"source": {
"type": "git",
"url": "https://github.com/doctrine/cache.git",
"reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a"
"reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/cache/zipball/b3217d58609e9c8e661cd41357a54d926c4a2a1a",
"reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a",
"url": "https://api.github.com/repos/doctrine/cache/zipball/eb152c5100571c7a45470ff2a35095ab3f3b900b",
"reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b",
"shasum": ""
},
"require": {
"php": "~7.1"
"php": "~5.5|~7.0"
},
"conflict": {
"doctrine/common": ">2.2,<2.4"
},
"require-dev": {
"alcaeus/mongo-php-adapter": "^1.1",
"mongodb/mongodb": "^1.1",
"phpunit/phpunit": "^5.7",
"predis/predis": "~1.0"
},
"suggest": {
"alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver"
"phpunit/phpunit": "~4.8|~5.0",
"predis/predis": "~1.0",
"satooshi/php-coveralls": "~0.6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.7.x-dev"
"dev-master": "1.6.x-dev"
}
},
"autoload": {
......@@ -469,24 +465,24 @@
"cache",
"caching"
],
"time": "2017-08-25T07:02:50+00:00"
"time": "2017-07-22T12:49:21+00:00"
},
{
"name": "doctrine/collections",
"version": "v1.5.0",
"version": "v1.4.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/collections.git",
"reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf"
"reference": "1a4fb7e902202c33cce8c55989b945612943c2ba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/collections/zipball/a01ee38fcd999f34d9bfbcee59dbda5105449cbf",
"reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf",
"url": "https://api.github.com/repos/doctrine/collections/zipball/1a4fb7e902202c33cce8c55989b945612943c2ba",
"reference": "1a4fb7e902202c33cce8c55989b945612943c2ba",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": "^5.6 || ^7.0"
},
"require-dev": {
"doctrine/coding-standard": "~0.1@dev",
......@@ -536,20 +532,20 @@
"collections",
"iterator"
],
"time": "2017-07-22T10:37:32+00:00"
"time": "2017-01-03T10:49:41+00:00"
},
{
"name": "doctrine/common",
"version": "v2.8.1",
"version": "v2.7.3",
"source": {
"type": "git",
"url": "https://github.com/doctrine/common.git",
"reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66"
"reference": "4acb8f89626baafede6ee5475bc5844096eba8a9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/common/zipball/f68c297ce6455e8fd794aa8ffaf9fa458f6ade66",
"reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66",
"url": "https://api.github.com/repos/doctrine/common/zipball/4acb8f89626baafede6ee5475bc5844096eba8a9",
"reference": "4acb8f89626baafede6ee5475bc5844096eba8a9",
"shasum": ""
},
"require": {
......@@ -558,15 +554,15 @@
"doctrine/collections": "1.*",
"doctrine/inflector": "1.*",
"doctrine/lexer": "1.*",
"php": "~7.1"
"php": "~5.6|~7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^5.4.6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.8.x-dev"
"dev-master": "2.7.x-dev"
}
},
"autoload": {
......@@ -609,30 +605,28 @@
"persistence",
"spl"
],
"time": "2017-08-31T08:43:38+00:00"
"time": "2017-07-22T08:35:12+00:00"
},
{
"name": "doctrine/dbal",
"version": "v2.6.3",
"version": "v2.5.13",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
"reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13"
"reference": "729340d8d1eec8f01bff708e12e449a3415af873"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/e3eed9b1facbb0ced3a0995244843a189e7d1b13",
"reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/729340d8d1eec8f01bff708e12e449a3415af873",
"reference": "729340d8d1eec8f01bff708e12e449a3415af873",
"shasum": ""
},
"require": {
"doctrine/common": "^2.7.1",
"ext-pdo": "*",
"php": "^7.1"
"doctrine/common": ">=2.4,<2.8-dev",
"php": ">=5.3.2"
},
"require-dev": {
"phpunit/phpunit": "^5.4.6",
"phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
"phpunit/phpunit": "4.*",
"symfony/console": "2.*||^3.0"
},
"suggest": {
......@@ -644,7 +638,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.6.x-dev"
"dev-master": "2.5.x-dev"
}
},
"autoload": {
......@@ -682,7 +676,7 @@
"persistence",
"queryobject"
],
"time": "2017-11-19T13:38:54+00:00"
"time": "2017-07-22T20:44:48+00:00"
},
{
"name": "doctrine/inflector",
......@@ -3706,32 +3700,32 @@
},
{
"name": "doctrine/instantiator",
"version": "1.1.0",
"version": "1.0.5",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
"reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=5.3,<8.0-DEV"
},
"require-dev": {
"athletic/athletic": "~0.1.8",
"ext-pdo": "*",
"ext-phar": "*",
"phpunit/phpunit": "^6.2.3",
"squizlabs/php_codesniffer": "^3.0.2"
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "~2.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev"
"dev-master": "1.0.x-dev"
}
},
"autoload": {
......@@ -3756,7 +3750,7 @@
"constructor",
"instantiate"
],
"time": "2017-07-22T11:58:36+00:00"
"time": "2015-06-14T21:17:01+00:00"
},
{
"name": "filp/whoops",
......@@ -4509,16 +4503,16 @@
},
{
"name": "phpunit/php-file-iterator",
"version": "1.4.2",
"version": "1.4.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
"reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5"
"reference": "8ebba84e5bd74fc5fdeb916b38749016c7232f93"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5",
"reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/8ebba84e5bd74fc5fdeb916b38749016c7232f93",
"reference": "8ebba84e5bd74fc5fdeb916b38749016c7232f93",
"shasum": ""
},
"require": {
......@@ -4552,7 +4546,7 @@
"filesystem",
"iterator"
],
"time": "2016-10-03T07:40:28+00:00"
"time": "2017-11-24T15:00:59+00:00"
},
{
"name": "phpunit/php-text-template",
......@@ -4646,16 +4640,16 @@
},
{
"name": "phpunit/php-token-stream",
"version": "2.0.1",
"version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
"reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0"
"reference": "791198a2c6254db10131eecfe8c06670700904db"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0",
"reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
"reference": "791198a2c6254db10131eecfe8c06670700904db",
"shasum": ""
},
"require": {
......@@ -4691,7 +4685,7 @@
"keywords": [
"tokenizer"
],
"time": "2017-08-20T05:47:52+00:00"
"time": "2017-11-27T05:48:46+00:00"
},
{
"name": "phpunit/phpunit",
......
<?php
use Carbon\Carbon as Carbon;
use Database\DisableForeignKeys;
use Database\TruncateTable;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
/**
* Class CountryTableSeeder.
*/
class CountryTableSeeder extends Seeder
{
use DisableForeignKeys, TruncateTable;
/**
* Run the database seed.
*
* @return void
*/
public function run()
{
$this->disableForeignKeys();
$this->truncate(config('access.countries_table'));
$types = [
[
'id' => 1,
'country' => 'USA',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
],
];
DB::table(config('access.countries_table'))->insert($types);
$this->enableForeignKeys();
}
}
......@@ -23,8 +23,6 @@ class DatabaseSeeder extends Seeder
$this->call(EmailTemplatePlaceholderTableSeeder::class);
$this->call(EmailTemplateTableSeeder::class);
$this->call(SettingsTableSeeder::class);
$this->call(CountryTableSeeder::class);
$this->call(StateTableSeeder::class);
$this->call(PagesTableSeeder::class);
Model::reguard();
......
<?php
use Carbon\Carbon as Carbon;
use Database\DisableForeignKeys;
use Database\TruncateTable;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
/**
* Class CountryTableSeeder.
*/
class StateTableSeeder extends Seeder
{
use DisableForeignKeys, TruncateTable;
/**
* Run the database seed.
*
* @return void
*/
public function run()
{
$this->disableForeignKeys();
$this->truncate(config('access.states_table'));
$states = [
['country_id' => 1, 'state' => 'Alaska', 'state_code' => 'AK', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Alabama', 'state_code' => 'AL', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'American Samoa', 'state_code' => 'AS', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Arizona', 'state_code' => 'AZ', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Arkansas', 'state_code' => 'AR', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'California', 'state_code' => 'CA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Colorado', 'state_code' => 'CO', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Connecticut', 'state_code' => 'CT', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Delaware', 'state_code' => 'DE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'District of Columbia', 'state_code' => 'DC', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Federated States of Micronesia', 'state_code' => 'FM', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Florida', 'state_code' => 'FL', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Georgia', 'state_code' => 'GA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Guam', 'state_code' => 'GU', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Hawaii', 'state_code' => 'HI', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Idaho', 'state_code' => 'ID', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Illinois', 'state_code' => 'IL', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Indiana', 'state_code' => 'IN', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Iowa', 'state_code' => 'IA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Kansas', 'state_code' => 'KS', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Kentucky', 'state_code' => 'KY', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Louisiana', 'state_code' => 'LA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Maine', 'state_code' => 'ME', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Marshall Islands', 'state_code' => 'MH', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Maryland', 'state_code' => 'MD', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Massachusetts', 'state_code' => 'MA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Michigan', 'state_code' => 'MI', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Minnesota', 'state_code' => 'MN', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Mississippi', 'state_code' => 'MS', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Missouri', 'state_code' => 'MO', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Montana', 'state_code' => 'MT', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Nebraska', 'state_code' => 'NE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Nevada', 'state_code' => 'NV', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'New Hampshire', 'state_code' => 'NH', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'New Jersey', 'state_code' => 'NJ', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'New Mexico', 'state_code' => 'NM', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'New York', 'state_code' => 'NY', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'North Carolina', 'state_code' => 'NC', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'North Dakota', 'state_code' => 'ND', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Northern Mariana Islands', 'state_code' => 'MP', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Ohio', 'state_code' => 'OH', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Oklahoma', 'state_code' => 'OK', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Oregon', 'state_code' => 'OR', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Palau', 'state_code' => 'PW', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Pennsylvania', 'state_code' => 'PA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Puerto Rico', 'state_code' => 'PR', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Rhode Island', 'state_code' => 'RI', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'South Carolina', 'state_code' => 'SC', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'South Dakota', 'state_code' => 'SD', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Tennessee', 'state_code' => 'TN', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Texas', 'state_code' => 'TX', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Utah', 'state_code' => 'UT', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Vermont', 'state_code' => 'VT', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Virgin Islands', 'state_code' => 'VI', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Virginia', 'state_code' => 'VA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Washington', 'state_code' => 'WA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'West Virginia', 'state_code' => 'WV', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Wisconsin', 'state_code' => 'WI', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Wyoming', 'state_code' => 'WY', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Africa', 'state_code' => 'AE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Americas (except Canada)', 'state_code' => 'AA', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Canada', 'state_code' => 'AE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Europe', 'state_code' => 'AE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Middle East', 'state_code' => 'AE', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
['country_id' => 1, 'state' => 'Armed Forces Pacific', 'state_code' => 'AP', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()],
];
DB::table(config('access.states_table'))->insert($states);
$this->enableForeignKeys();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment