1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Remove individual languages from migration files

This commit is contained in:
Hillel Coren 2016-06-04 23:20:01 +03:00
parent 73a1c6a6e3
commit e0d512dab7
3 changed files with 17 additions and 17 deletions

View File

@ -19,14 +19,14 @@ class AddLanguageSupport extends Migration {
$table->string('locale');
});
DB::table('languages')->insert(['name' => 'English', 'locale' => 'en']);
DB::table('languages')->insert(['name' => 'Italian', 'locale' => 'it']);
DB::table('languages')->insert(['name' => 'German', 'locale' => 'de']);
DB::table('languages')->insert(['name' => 'French', 'locale' => 'fr']);
DB::table('languages')->insert(['name' => 'Brazilian Portuguese', 'locale' => 'pt_BR']);
DB::table('languages')->insert(['name' => 'Dutch', 'locale' => 'nl']);
DB::table('languages')->insert(['name' => 'Spanish', 'locale' => 'es']);
DB::table('languages')->insert(['name' => 'Norwegian', 'locale' => 'nb_NO']);
//DB::table('languages')->insert(['name' => 'English', 'locale' => 'en']);
//DB::table('languages')->insert(['name' => 'Italian', 'locale' => 'it']);
//DB::table('languages')->insert(['name' => 'German', 'locale' => 'de']);
//DB::table('languages')->insert(['name' => 'French', 'locale' => 'fr']);
//DB::table('languages')->insert(['name' => 'Brazilian Portuguese', 'locale' => 'pt_BR']);
//DB::table('languages')->insert(['name' => 'Dutch', 'locale' => 'nl']);
//DB::table('languages')->insert(['name' => 'Spanish', 'locale' => 'es']);
//DB::table('languages')->insert(['name' => 'Norwegian', 'locale' => 'nb_NO']);
Schema::table('accounts', function($table)
{

View File

@ -12,7 +12,7 @@ class AddDanishTranslation extends Migration {
*/
public function up()
{
DB::table('languages')->insert(['name' => 'Danish', 'locale' => 'da']);
//DB::table('languages')->insert(['name' => 'Danish', 'locale' => 'da']);
}
/**
@ -22,8 +22,8 @@ class AddDanishTranslation extends Migration {
*/
public function down()
{
$language = \App\Models\Language::whereLocale('da')->first();
$language->delete();
//$language = \App\Models\Language::whereLocale('da')->first();
//$language->delete();
}
}

View File

@ -12,10 +12,10 @@ class AddSvLanguage extends Migration {
*/
public function up()
{
DB::table('languages')->insert(['name' => 'Swedish', 'locale' => 'sv']);
DB::table('languages')->insert(['name' => 'Spanish - Spain', 'locale' => 'es_ES']);
DB::table('languages')->insert(['name' => 'French - Canada', 'locale' => 'fr_CA']);
DB::table('languages')->insert(['name' => 'Lithuanian', 'locale' => 'lt']);
//DB::table('languages')->insert(['name' => 'Swedish', 'locale' => 'sv']);
//DB::table('languages')->insert(['name' => 'Spanish - Spain', 'locale' => 'es_ES']);
//DB::table('languages')->insert(['name' => 'French - Canada', 'locale' => 'fr_CA']);
//DB::table('languages')->insert(['name' => 'Lithuanian', 'locale' => 'lt']);
}
/**