-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new updates
- Loading branch information
Showing
406 changed files
with
23,452 additions
and
2,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
db/migrations/20241128145104_ticketvalidations_update_migration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
// phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
final class TicketvalidationsUpdateMigration extends AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$table = $this->table('ticketvalidations'); | ||
$table->addColumn('created_at', 'timestamp', ['null' => true, 'after' => 'id']) | ||
->addColumn('updated_at', 'timestamp', ['null' => true, 'after' => 'created_at']) | ||
->addColumn('deleted_at', 'timestamp', ['null' => true, 'after' => 'updated_at']) | ||
->addColumn('is_recursive', 'boolean', ['null' => false, 'default' => false, 'after' => 'entity_id']) | ||
->update(); | ||
} | ||
|
||
public function down() | ||
{ | ||
$table = $this->table('ticketvalidations'); | ||
$table->removeColumn('created_at') | ||
->removeColumn('updated_at') | ||
->removeColumn('deleted_at') | ||
->removeColumn('entity_id') | ||
->update(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Relations\BelongsTo; | ||
use Illuminate\Database\Eloquent\Relations\HasMany; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
|
||
class Calendarsegment extends Common | ||
{ | ||
use SoftDeletes; | ||
|
||
protected $definition = '\App\Models\Definitions\Calendarsegment'; | ||
protected $titles = ['Calendar segment', 'Calendar segments']; | ||
protected $icon = 'edit'; | ||
|
||
protected $appends = [ | ||
'entity', | ||
]; | ||
|
||
protected $visible = [ | ||
'entity', | ||
]; | ||
|
||
protected $with = [ | ||
'entity:id,name,completename', | ||
]; | ||
|
||
public function entity(): BelongsTo | ||
{ | ||
return $this->belongsTo('\App\Models\Entity'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.