createTable('task'); $table->addColumn('id', 'integer', ['autoincrement' => true, 'notnull' => true]); $table->addColumn('name', 'string', ['length' => 255, 'notnull' => true]); $table->addColumn('date', 'date', ['notnull' => false]); $table->addColumn('status', 'string', ['length' => 255, 'notnull' => true]); $table->setPrimaryKey(['id']); $table->addOption('charset', 'utf8mb4'); } public function down(Schema $schema): void { $schema->dropTable('task'); } }