PHP Classes

File: testapp/schema.php

Recommend this page to a friend!
  Classes of Ar Gabid   Universal PHP Data Grid   testapp/schema.php   Download  
File: testapp/schema.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Universal PHP Data Grid
Display and process data to edit database records
Author: By
Last change: Update of testapp/schema.php
Date: 4 years ago
Size: 548 bytes
 

Contents

Class file image Download
<?php
/**
 * @author GD Lab <dev.gdgrid@gmail.com>
 */

require_once 'init.php';

use
Illuminate\Database\Capsule\Manager as Capsule;

if (
false == Capsule::schema()->hasTable('users'))

   
DB::capsule()->getConnection()->getPdo()->exec(
       
#language=txt
       
'CREATE TABLE "users" (
          "id" integer not null primary key autoincrement,
          "image" varchar(255),
          "name" varchar(100) not null,
          "email" varchar(100) not null,
          "gender" tinyint(1) not null,
          "character" text);'
   
);