feat(Basicdata): Update 'is_dalam_kota' column and add new branches
- Update 'is_dalam_kota' to true for existing branches based on suffix code - Set 'is_dalam_kota' to false for branches not in the list - Add new branches (ID0012005 - KORPORASI, ID0010172 - AMBON TUAL MALUKU) - Seeder is idempotent and can be rerun safely run this command: php artisan module:seed Basicdata --class="UpdateBranchesIsDalamKotaSeeder" php artisan module:seed --class="Modules\\Basicdata\\Database\\Seeders\\UpdateBranchesIsDalamKotaSeeder"
This commit is contained in:
@@ -59,7 +59,8 @@
|
||||
['code' => 'PKR', 'name' => 'Pakistani Rupee', 'symbol' => '₨', 'decimal_places' => 2, 'status' => true, 'created_at' => $now, 'updated_at' => $now],
|
||||
];
|
||||
|
||||
DB::table('currencies')->truncate();
|
||||
// DB::table('currencies')->truncate();
|
||||
DB::table('currencies')->delete();
|
||||
DB::table('currencies')->insert($currencies);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user