Skip to content

Commit

Permalink
[item] rename frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky committed Jan 19, 2024
1 parent 64646e9 commit fdeb40a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Enums/FrontendEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

enum FrontendEnum: string
{
case WEBUMENIA = 'webumenia.sk';
case WEBUMENIA = 'webumenia';
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
public function up(): void
{
DB::table('frontends')->insert([
'name' => 'webumenia.sk',
'name' => 'webumenia',
'created_at' => now(),
'updated_at' => now(),
]);

$frontendId = DB::table('frontends')
->where('name', 'webumenia.sk')
->where('name', 'webumenia')
->first()->id;

DB::table('items')
Expand All @@ -38,6 +38,6 @@ public function up(): void
*/
public function down(): void
{
DB::table('frontends')->where('name', 'webumenia.sk')->delete();
DB::table('frontends')->where('name', 'webumenia')->delete();
}
};

0 comments on commit fdeb40a

Please sign in to comment.