mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-10 09:35:08 +00:00

- add node service in docker-compose.yml - update .devcontainer Dockerfile by adding node, npm and vim - init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies - update default layout main header and footer - replace CI's welcome_message.php with home.php listing all podcasts - add AUTHORS.md file - add docs folder in which to place castopod's technical documentation
38 lines
893 B
PHP
38 lines
893 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use \CodeIgniter\Database\Migration;
|
|
|
|
class AddLanguages extends Migration
|
|
{
|
|
|
|
public function up()
|
|
{
|
|
$this->forge->addField([
|
|
'code' => [
|
|
'type' => 'VARCHAR',
|
|
'comment' => 'ISO 639-1 language code.',
|
|
'constraint' => 2,
|
|
],
|
|
'name' => [
|
|
'type' => 'VARCHAR',
|
|
'comment' => 'English language name.',
|
|
'constraint' => 191,
|
|
],
|
|
'native_name' => [
|
|
'type' => 'VARCHAR',
|
|
'comment' => 'Native language name.',
|
|
'constraint' => 191,
|
|
],
|
|
]);
|
|
$this->forge->addKey('code', true);
|
|
$this->forge->createTable('languages');
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropTable('languages');
|
|
}
|
|
}
|