- Added new font files: Cakedingbats (TTF, WOFF, WOFF2) and Raleway (various styles and encodings). - Included new images: cake-logo.png, cake.icon.png, cake.logo.svg, and cake.power.gif. - Created initial index.php file for handling requests in CakePHP framework. - Added .gitkeep file in the js directory to maintain the folder structure.
23 lines
553 B
PHP
23 lines
553 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Migrations\BaseMigration;
|
|
class CreateTools extends BaseMigration
|
|
{
|
|
public function change(): void
|
|
{
|
|
$table = $this->table('tools')
|
|
->addColumn('name', 'string', ['limit' => 150])
|
|
->addColumn('description', 'text', ['null' => true])
|
|
->addColumn('quantity', 'integer', ['default' => 1])
|
|
->addColumn('active', 'boolean', ['default' => true])
|
|
->addColumn('created', 'datetime')
|
|
->addColumn('modified', 'datetime', ['null' => true])
|
|
->create();
|
|
}
|
|
public function down(): void
|
|
{
|
|
$this->table('tools')->drop()->save();
|
|
}
|
|
}
|