mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-17 16:42:48 +01:00
Remove individual languages from migration files
This commit is contained in:
parent
73a1c6a6e3
commit
e0d512dab7
@ -15,18 +15,18 @@ class AddLanguageSupport extends Migration {
|
||||
Schema::create('languages', function($table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('locale');
|
||||
$table->string('name');
|
||||
$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)
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user