Skip to content

Commit ae6b11e

Browse files
Uncomment SQL dump loading in DatabaseSeeder for data seeding
1 parent 195c82d commit ae6b11e

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

database/seeders/DatabaseSeeder.php

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -38,52 +38,52 @@ class DatabaseSeeder extends Seeder
3838
*/
3939
public function run(): void
4040
{
41-
// // Eloquent::unguard();
42-
// DB::unprepared(
43-
// file_get_contents(database_path().'/dump_sql/users.sql')
44-
// );
45-
// DB::unprepared(
46-
// file_get_contents(database_path().'/dump_sql/data_pegawais.sql')
47-
// );
48-
// DB::unprepared(
49-
// file_get_contents(database_path().'/dump_sql/pengelolas.sql')
50-
// );
51-
// DB::unprepared(
52-
// file_get_contents(database_path().'/dump_sql/tata_naskahs.sql')
53-
// );
54-
// DB::unprepared(
55-
// file_get_contents(database_path().'/dump_sql/kode_naskahs.sql')
56-
// );
57-
// DB::unprepared(
58-
// file_get_contents(database_path().'/dump_sql/jenis_naskahs.sql')
59-
// );
60-
// DB::unprepared(
61-
// file_get_contents(database_path().'/dump_sql/kode_arsips.sql')
62-
// );
63-
// DB::unprepared(
64-
// file_get_contents(database_path().'/dump_sql/templates.sql')
65-
// );
66-
// DB::unprepared(
67-
// file_get_contents(database_path().'/dump_sql/unit_kerjas.sql')
68-
// );
69-
// DB::unprepared(
70-
// file_get_contents(database_path().'/dump_sql/derajat_naskahs.sql')
71-
// );
72-
// DB::unprepared(
73-
// file_get_contents(database_path().'/dump_sql/naskah_defaults.sql')
74-
// );
75-
// DB::unprepared(
76-
// file_get_contents(database_path().'/dump_sql/kode_banks.sql')
77-
// );
78-
// DB::unprepared(
79-
// file_get_contents(database_path().'/dump_sql/master_wilayahs.sql')
80-
// );
81-
// DB::unprepared(
82-
// file_get_contents(database_path().'/dump_sql/rate_transloks.sql')
83-
// );
84-
// DB::unprepared(
85-
// file_get_contents(database_path().'/dump_sql/sk_transloks.sql')
86-
// );
41+
// Eloquent::unguard();
42+
DB::unprepared(
43+
file_get_contents(database_path().'/dump_sql/users.sql')
44+
);
45+
DB::unprepared(
46+
file_get_contents(database_path().'/dump_sql/data_pegawais.sql')
47+
);
48+
DB::unprepared(
49+
file_get_contents(database_path().'/dump_sql/pengelolas.sql')
50+
);
51+
DB::unprepared(
52+
file_get_contents(database_path().'/dump_sql/tata_naskahs.sql')
53+
);
54+
DB::unprepared(
55+
file_get_contents(database_path().'/dump_sql/kode_naskahs.sql')
56+
);
57+
DB::unprepared(
58+
file_get_contents(database_path().'/dump_sql/jenis_naskahs.sql')
59+
);
60+
DB::unprepared(
61+
file_get_contents(database_path().'/dump_sql/kode_arsips.sql')
62+
);
63+
DB::unprepared(
64+
file_get_contents(database_path().'/dump_sql/templates.sql')
65+
);
66+
DB::unprepared(
67+
file_get_contents(database_path().'/dump_sql/unit_kerjas.sql')
68+
);
69+
DB::unprepared(
70+
file_get_contents(database_path().'/dump_sql/derajat_naskahs.sql')
71+
);
72+
DB::unprepared(
73+
file_get_contents(database_path().'/dump_sql/naskah_defaults.sql')
74+
);
75+
DB::unprepared(
76+
file_get_contents(database_path().'/dump_sql/kode_banks.sql')
77+
);
78+
DB::unprepared(
79+
file_get_contents(database_path().'/dump_sql/master_wilayahs.sql')
80+
);
81+
DB::unprepared(
82+
file_get_contents(database_path().'/dump_sql/rate_transloks.sql')
83+
);
84+
DB::unprepared(
85+
file_get_contents(database_path().'/dump_sql/sk_transloks.sql')
86+
);
8787
DataPegawai::cache()->updateAll();
8888
DerajatNaskah::cache()->updateAll();
8989
Dipa::cache()->updateAll();

0 commit comments

Comments
 (0)