Commit realizando cambios en los roles de los usuarios

This commit is contained in:
Jaime Jimenez
2023-04-24 13:00:46 +02:00
parent 2d67588770
commit 8c4d77a598
6587 changed files with 365497 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class CreateGroupUserTable extends Migration
{
public function up()
{
// define table fields
$fields = array(
'token_user' => array(
'type' => 'VARCHAR',
'constraint' => 35
),
'token_group' => array(
'type' => 'VARCHAR',
'constraint' => 35
)
);
$this->forge->addField($fields);
// create table
$this->forge->createTable('group_user');
}
public function down()
{
$this->forge->dropTable('group_user',TRUE);
}
}