<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
com.jukusoft / php-database-table-upgrader example snippets
//create or upgrade test table
$table = new DBTable("test", $dbDriver);
$table->setEngine("InnoDB");
$table->setCharset("utf8");
//add int coloum
$table->addInt("id");
//add int coloum with length 10, NOT NULL and AUTO_INCREMENT
$table->addInt("testint", 10, true, true);
//add varchar column
$table->addVarchar("test_text", 255, true, "default value");
//add text column
$table->addText("text");
//print CREATE statement for debugging
echo $table->generateCreateQuery();