Download the PHP package shankarbala33/php_migration without Composer
On this page you can find all versions of the php package shankarbala33/php_migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shankarbala33/php_migration
More information about shankarbala33/php_migration
Files in shankarbala33/php_migration
Download shankarbala33/php_migration
More information about shankarbala33/php_migration
Files in shankarbala33/php_migration
Please rate this library. Is it a good library?
Informations about the package php_migration
PHP Migration
Simple PHP package for Database Migration, with zero dependancy.
For Wordpress Migration
include_once('/wordpress/migration.php');
$my_table_schema = [
'student_meta' => [
'id' => [ // Result : "id int(20) auto_increment primary key"
'key' => [
'auto_increment',
'primary key'
],
'type' => 'int',
'limit' => 20
],
'name' => [ // Result : "name varchar(255) unique key"
'key' => [
'unique key'
],
'type' => 'varchar',
'limit' => 255
],
'value' => [ // Result : "value longtext"
'key' => [],
'type' => 'longtext',
'limit' => ''
],
'__table_property' => [ // For Table Properties.
'ENGINE' => 'InnoDB'
]
]
];
For Core PHP
$my_table_schema = [
'student' => [
'student_id' => 'integer',
'name' => 'string',
'class' => 'string',
'dob' => 'data',
'age' => 'integer'
],
'class' => [
'class_id' => 'integer',
'student_id' => 'integer',
'section' => 'string'
]
];
Finally
$table_schema = "YOUR_TABLE_SCHEMA" ($my_table_schema)
// Trigger Migration.
ST_DATABASE::migrate($table_schema); // It's Generate Formatted MySQL Query and Execute.
It will creates the table Student and Class with given properties.
License
MIT License © Shankar Thiyagaraajan
All versions of php_migration with dependencies
PHP Build Version
Package Version
The package shankarbala33/php_migration contains the following files
Loading the files please wait ...