Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /home/matalashes/.trash/app.bak.9/Database/Migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/matalashes/.trash/app.bak.9/Database/Migrations/2022-05-18-114319_PsStoreMain.php
<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class PsStoreMain extends Migration
{
    public function up()
    {
        $this->db->disableForeignKeyChecks();
        $this->forge->addField([
            'ps_store_id' => [
                'type' => 'INT',
                'constraint' => 5,
                'unsigned' => true,
                'auto_increment' => true,
            ],
            'ps_sa_id' => [
                'type' => 'INT',
                'constraint' => 5,
                'unsigned' => true,
            ],
            'sm_logo' => [
                'type' => 'TEXT',
            ],
            'sm_name' => [
                'type' => 'VARCHAR',
                'constraint' => 255,
            ],
            'sm_phone' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'sm_email' => [
                'type' => 'VARCHAR',
                'constraint' => 255,
            ],
            'sm_website' => [
                'type' => 'VARCHAR',
                'constraint' => 50,
            ],
            'sm_address' => [
                'type' => 'TEXT',
            ],
            'sm_province' => [
                'type' => 'VARCHAR',
                'constraint' => 30,
            ],
            'sm_city' => [
                'type' => 'VARCHAR',
                'constraint' => 30,
            ],
            'sm_district' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'sm_postal_code' => [
                'type' => 'VARCHAR',
                'constraint' => 6,
            ],
            'sm_status' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'sm_open_time' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'sm_closed_time' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'created_at' => [
                'type' => 'TIMESTAMP', 'null' => true
            ],
            'updated_at' => [
                'type' => 'TIMESTAMP',
                'null' => true
            ],
            'deleted_at' => [
                'type' => 'TIMESTAMP',
                'null' => true
            ],
        ]);
        $this->forge->addKey('ps_store_id', true);
        $this->forge->addForeignKey('ps_sa_id', 'ps_store_account', 'ps_sa_id');
        $this->forge->createTable('ps_store_main');
        $this->db->enableForeignKeyChecks();
    }

    public function down()
    {
        $this->forge->dropTable('ps_store_main');
    }
}

haha - 2025