Files
Narzedzia_180088/config/Migrations/20251120204613_CreateUsers.php
180088 895cbddf06 Add new font files, images, and initial index.php for CakePHP setup
- 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.
2025-11-25 14:28:51 +01:00

16 lines
428 B
PHP

<?php
declare(strict_types=1);
use Migrations\BaseMigration;
class CreateUsers extends BaseMigration
{
public function change(): void {
$table = $this->table('users')
->addColumn('name', 'string', ['limit' => 150])
->addColumn('email', 'string', ['limit' => 255])
->addColumn('password', 'string', ['limit' => 255])
->addColumn('created', 'datetime')
->addColumn('modified', 'datetime', ['null' => true]);
$table->create();
}
}