Skip to content

Commit

Permalink
Added defaut data after migrations GeneralSettings Table
Browse files Browse the repository at this point in the history
  • Loading branch information
reactmore committed Jul 24, 2024
1 parent 6012fa0 commit 439b70a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Database/Migrations/2024-07-24-083011_GeneralSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public function up()


$this->forge->createTable('general_settings', TRUE);

// Insert Default Data
$default['school_name'] = 'SMK 1 Indonesia';
$default['school_year'] = '2024/2025';
$this->db->table('general_settings')->insert($default);
}

public function down()
Expand Down

0 comments on commit 439b70a

Please sign in to comment.