Newer
Older

Yassine Doghri
committed
/**
* Class AddPlatforms
* Creates platforms table in database
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
use CodeIgniter\Database\Migration;
class AddPlatforms extends Migration
{
public function up()
{
$this->forge->addField([
'id' => [
'type' => 'INT',
'unsigned' => true,
'auto_increment' => true,
],
'name' => [
'type' => 'VARCHAR',
'constraint' => 32,
'constraint' => 32,
'constraint' => 255,
'constraint' => 512,
'type' => 'DATETIME',
'type' => 'DATETIME',