| 
				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.1/Database/Migrations/  | 
Upload File :  | 
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class PsAdmSettingProfile extends Migration
{
    public function up()
    {
        $this->db->disableForeignKeyChecks();
        $this->forge->addField([
            'ps_asp_id' => [
                'type' => 'TINYINT',
                'constraint' => 1,
                'unsigned' => true,
                'auto_increment' => true,
            ],
            'asp_logo' => [
                'type' => 'TEXT',
            ],
            'asp_name' => [
                'type' => 'VARCHAR',
                'constraint' => 20,
            ],
            'asp_address' => [
                'type' => 'VARCHAR',
                'constraint' => 100,
            ],
            'asp_phone' => [
                'type' => 'VARCHAR',
                'constraint' => 15,
            ],
            'asp_email' => [
                'type' => 'VARCHAR',
                'constraint' => 50,
            ],
            'asp_url_ig' => [
                'type' => 'VARCHAR',
                'constraint' => 255,
            ],
            'asp_url_tw' => [
                'type' => 'VARCHAR',
                'constraint' => 255,
            ],
            'asp_url_ln' => [
                'type' => 'VARCHAR',
                'constraint' => 255,
            ],
            'created_at' => [
                'type' => 'TIMESTAMP',
                'null' => true
            ],
            'updated_at' => [
                'type' => 'TIMESTAMP',
                'null' => true
            ],
            'deleted_at' => [
                'type' => 'TIMESTAMP',
                'null' => true
            ],
        ]);
        $this->forge->addKey('ps_asp_id', true);
        $this->forge->createTable('ps_adm_setting_profile');
        $this->db->enableForeignKeyChecks();
    }
    public function down()
    {
        $this->forge->dropTable('ps_adm_setting_profile');
    }
}