NF_Database_Migrations_Actions

The Ninja Forms NF Database Migrations Actions class.

Defined (1)

The class is defined in the following location(s).

/includes/Database/Migrations/Actions.php  
  1. class NF_Database_Migrations_Actions extends NF_Abstracts_Migration 
  2. public function __construct() 
  3. parent::__construct( 
  4. 'nf3_actions',  
  5. 'nf_migration_create_table_actions' 
  6. ); 
  7.  
  8. public function run() 
  9. $query = "CREATE TABLE IF NOT EXISTS $this->table_name ( 
  10. `id` int NOT NULL AUTO_INCREMENT,  
  11. `title` longtext,  
  12. `key` longtext,  
  13. `type` longtext,  
  14. `active` boolean DEFAULT TRUE,  
  15. `parent_id` int NOT NULL,  
  16. `created_at` TIMESTAMP,  
  17. `updated_at` DATETIME,  
  18. UNIQUE KEY (`id`) 
  19. ) $this->charset_collate;"; 
  20.  
  21. dbDelta( $query ); 
  22.