mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Turning on migration, adding a migration to add lotw credentials to the database, and removing a sample migration.
This commit is contained in:
21
application/migrations/001_add_lotw_credentials.php
Normal file
21
application/migrations/001_add_lotw_credentials.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_add_lotw_credentials extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'user_lotw_name VARCHAR(32) DEFAULT NULL',
|
||||
'user_lotw_password VARCHAR(64) DEFAULT NULL'
|
||||
);
|
||||
|
||||
$this->dbforge->add_column('users', $fields);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dbforge->drop_column('users', 'user_lotw_name');
|
||||
$this->dbforge->drop_column('users', 'user_lotw_password');
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user