Skip to content

Commit a5d4d11

Browse files
committed
fix seeders
1 parent 8aa568e commit a5d4d11

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

database/dump_sql/templates.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ SET time_zone = "+00:00";
77
/*!40101 SET NAMES utf8mb4 */;
88

99

10-
INSERT INTO `templates` (`id`, `slug`, `file`, `created_at`, `updated_at`, `tata_naskah_id`) VALUES
11-
(1, 'template_import_kode_arsip', 'HMrafy1OQUdCv20aF7zFgb12BU7mkpCMk5yH4IUE.xlsx', '2024-08-16 11:04:17', '2024-08-16 11:04:17', 1),
12-
(3, 'template_import_mitra', 'vs4vjnKmcr8CPUrONoj44wQbI1ntrEeSwLJvsDRD.xlsx', '2024-08-16 15:32:32', '2024-08-16 15:34:15', 1),
13-
(5, 'template_kak', 'A2R5jQsxBt7gKBbXDhLgopJVeBJtP9QB9gxRcnMZ.docx', '2024-09-02 15:05:11', '2024-09-05 09:13:09', 1),
14-
(6, 'template_spj', 'mpAl8wsW51iJKkjk8E8q91b3SrKCOnMinxvWbXQX.docx', '2024-09-08 08:13:31', '2024-09-08 09:41:00', 1);
10+
INSERT INTO `templates` (`id`, `slug`, `file`, `created_at`, `updated_at`) VALUES
11+
(1, 'template_import_kode_arsip', 'HMrafy1OQUdCv20aF7zFgb12BU7mkpCMk5yH4IUE.xlsx', '2024-08-16 11:04:17', '2024-08-16 11:04:17'),
12+
(2, 'template_import_mitra', 'vs4vjnKmcr8CPUrONoj44wQbI1ntrEeSwLJvsDRD.xlsx', '2024-08-16 15:32:32', '2024-08-16 15:34:15'),
13+
(3, 'template_kak', 'A2R5jQsxBt7gKBbXDhLgopJVeBJtP9QB9gxRcnMZ.docx', '2024-09-02 15:05:11', '2024-09-05 09:13:09'),
14+
(4, 'template_spj', 'mpAl8wsW51iJKkjk8E8q91b3SrKCOnMinxvWbXQX.docx', '2024-09-08 08:13:31', '2024-09-08 09:41:00');
1515

1616
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1717
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;

database/migrations/2024_08_16_103736_create_templates_table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public function up(): void
1515
$table->id();
1616
$table->string('slug', 50)->nullable();
1717
$table->string('file', 255)->nullable();
18-
$table->bigInteger('tata_naskah_id')->nullable()->unsigned();
1918
$table->timestamps();
2019
});
2120
}

database/seeders/DatabaseSeeder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public function run(): void
3838
DB::unprepared(
3939
file_get_contents(database_path().'/dump_sql/templates.sql')
4040
);
41-
DB::unprepared(
42-
file_get_contents(database_path().'/dump_sql/templates.sql')
43-
);
4441
DB::unprepared(
4542
file_get_contents(database_path().'/dump_sql/unit_kerjas.sql')
4643
);

0 commit comments

Comments
 (0)