From ddf02f73b8c7079b92a57f808c310cc2e657a70a Mon Sep 17 00:00:00 2001 From: imnavajas Date: Tue, 22 Apr 2025 08:40:49 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20conenido=20merge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1-085226_CreateIdentificadoresIskTable.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/ci4/app/Database/Migrations/2025-04-21-085226_CreateIdentificadoresIskTable.php b/ci4/app/Database/Migrations/2025-04-21-085226_CreateIdentificadoresIskTable.php index e69de29b..56ca50eb 100644 --- a/ci4/app/Database/Migrations/2025-04-21-085226_CreateIdentificadoresIskTable.php +++ b/ci4/app/Database/Migrations/2025-04-21-085226_CreateIdentificadoresIskTable.php @@ -0,0 +1,44 @@ +forge->addField([ + 'id' => [ + 'type' => 'INT', + 'constraint' => 10, + 'unsigned' => true, + 'auto_increment' => true, + ], + 'isk' => [ + 'type' => 'VARCHAR', + 'constraint' => 64, + 'null' => false, + ], + 'created_at' => [ + 'type' => 'DATETIME', + 'null' => true, + 'default' => 'current_timestamp()', + ], + 'updated_at' => [ + 'type' => 'DATETIME', + 'null' => true, + ], + ]); + + $this->forge->addKey('id', true); // primary key + $this->forge->addUniqueKey('isk'); // unique index + + $this->forge->createTable('identificadores_isk', true); + } + + public function down() + { + $this->forge->dropTable('identificadores_isk', true); + } +}