Initialise the "jobs" table in the db.
347428
def _init_jobs_table():
    """"""
    _jobs_table = sqlalchemy.Table(
        'jobs', _METADATA,
        sqlalchemy.Column('job_id', sqlalchemy.UnicodeText, primary_key=True),
        sqlalchemy.Column('job_type', sqlalchemy.UnicodeText),
        sqlalchemy.Column('status', sqlalchemy.UnicodeText, index=True),
        sqlalchemy.Column('data', sqlalchemy.UnicodeText),
        sqlalchemy.Column('error', sqlalchemy.UnicodeText),
        sqlalchemy.Column('requested_timestamp', sqlalchemy.DateTime),
        sqlalchemy.Column('finished_timestamp', sqlalchemy.DateTime),
        sqlalchemy.Column('sent_data', sqlalchemy.UnicodeText),
        # Callback URL:
        sqlalchemy.Column('result_url', sqlalchemy.UnicodeText),
        # CKAN API key:
        sqlalchemy.Column('api_key', sqlalchemy.UnicodeText),
        # Key to administer job:
        sqlalchemy.Column('job_key', sqlalchemy.UnicodeText),
        )
    return _jobs_table
906658
private void initJobs() {
        List<MasterSlaveNodeData> masterSlaveNodeDataList = masterSlaveApiFactory.nodeApi().getAllNodes();
        if (!ListHelper.isEmpty(masterSlaveNodeDataList)) {
            return;
        }
        List<MasterSlaveJobData> masterSlaveJobDataList = new ArrayList<>();
        try {
            masterSlaveJobDataList = masterSlaveApiFactory.jobApi().getAllJobs();
        } catch (Throwable e) {
            if (e instanceof NiubiException) {
                e = e.getCause();
            }
            if (e instanceof KeeperException.NoNodeException) {
                LoggerHelper.info("job path not found. skip init jobs.");
            } else {
                LoggerHelper.warn("get jobs failed. ", e);
            }
        }
        for (MasterSlaveJobData masterSlaveJobData : masterSlaveJobDataList) {
            MasterSlaveJobData.Data data = masterSlaveJobData.getData();
            data.init();
            masterSlaveApiFactory.jobApi().updateJob(data.getGroupName(), data.getJobName(), data);
        }
    }
266414
public function init()
    {
        $this->setName('job');
        $this->setAttribute('id', 'job');

        $this->add(
            [
                'type' => 'hidden',
                'name' => 'id'
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'applyId',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'company',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'title',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'link',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'location',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'contactEmail',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'datePublishStart',
            ]
        );

        $this->add(
            [
                'type' => 'Zend\Form\Element\Text',
                'name' => 'reference',
            ]
        );

        $this->add(
            [
                'type'  => 'Zend\Form\Element\Text',
                'name'  => 'logoRef',
            ]
        );

        $this->add(
            [
                'type' => 'Jobs/AtsModeFieldset',
            ]
        );
    }
617441
function init ()
    {
        $this->_a['table'] = 'geo_point';
        $this->_a['engine'] = 'MyISAM';
        $this->_a['cols'] = array(
                'id' => array(
                        'type' => 'Pluf_DB_Field_Sequence',
                        'blank' => true
                ),
                'point' => array(
                        'type' => 'Geo_DB_Field_Point',
                        'blank' => false
                )
        );
        $this->_a['idx'] = array();
        $this->_a['views'] = array();
    }
211679
protected function init() {
        $this->data['objecttable'] = competency_framework::TABLE;
        $this->data['crud'] = 'c';
        $this->data['edulevel'] = self::LEVEL_OTHER;
    }
1213952
def init_db(self, app, entry_point_group='invenio_db.models', **kwargs):
        """"""
        # Setup SQLAlchemy
        app.config.setdefault(
            'SQLALCHEMY_DATABASE_URI',
            'sqlite:///' + os.path.join(app.instance_path, app.name + '.db')
        )
        app.config.setdefault('SQLALCHEMY_ECHO', False)

        # 
        database = kwargs.get('db', db)
        database.init_app(app)

        # Initialize versioning support.
        self.init_versioning(app, database, kwargs.get('versioning_manager'))

        # Initialize model bases
        if entry_point_group:
            for base_entry in pkg_resources.iter_entry_points(
                    entry_point_group):
                base_entry.load()

        # All models should be loaded by now.
        sa.orm.configure_mappers()
        # Ensure that versioning classes have been built.
        if app.config['DB_VERSIONING']:
            manager = self.versioning_manager
            if manager.pending_classes:
                if not versioning_models_registered(manager, database.Model):
                    manager.builder.configure_versioned_classes()
            elif 'transaction' not in database.metadata.tables:
                manager.declarative_base = database.Model
                manager.create_transaction_model()
                manager.plugins.after_build_tx_class(manager)
1125165
function init()
    {
        $this->_a['table'] = 'cms_terms';
        $this->_a['cols'] = array(
            // ID
            'id' => array(
                'type' => 'Pluf_DB_Field_Sequence',
                'blank' => false,
                'verbose' => 'first name',
                'help_text' => 'id',
                'editable' => false
            ),
            // Fields
            'name' => array(
                'type' => 'Pluf_DB_Field_Varchar',
                'is_null' => false,
                'size' => 200,
                'default' => '',
                'editable' => true
            ),
            'slug' => array(
                'type' => 'Pluf_DB_Field_Varchar',
                'is_null' => false,
                'size' => 200,
                'default' => '',
                'editable' => true
            ),
            /*
             * Foreign keys
             */
        );
    }
987900
public function init()
    {
        $select = new QueryBuilder();

        $select
            ->query("CREATE TABLE IF NOT EXISTS {$this->table} (id int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, param VARCHAR(250) NOT NULL, value VARCHAR(250) NOT NULL)")
            ->execute();

        $migrateVersion = $select
            ->query("SELECT value FROM {$this->table} WHERE param = 'migration_version'")
            ->fetchRow();

        if (isset($migrateVersion['value'])) {
            echo Utils::colorize("Migration tool is already initialized", "NOTE");
        } else {
            $select
                ->query("INSERT into {$this->table} (param, value) VALUES ('migration_version', 0)")
                ->execute();
            echo Utils::colorize("Initialization successful.", "SUCCESS");
        }
    }
348496
protected function initDatabase()
    {
        $dbConfig = (array) config("database");

        if (count($dbConfig) > 0) {
            $this->db = new Database($dbConfig);
            Model::$db = $this->db;
        }
    }
553069
def run_init_tables(*args):
    '''
    
    '''
    print('--')

    create_table(TabPost)
    create_table(TabTag)
    create_table(TabMember)
    create_table(TabWiki)
    create_table(TabLink)
    create_table(TabEntity)
    create_table(TabPostHist)
    create_table(TabWikiHist)
    create_table(TabCollect)
    create_table(TabPost2Tag)
    create_table(TabRel)
    create_table(TabEvaluation)
    create_table(TabUsage)
    create_table(TabReply)
    create_table(TabUser2Reply)
    create_table(TabRating)
    create_table(TabEntity2User)
    create_table(TabLog)
884981
def _run_init_queries(self):
        '''
        
        '''
        for obj in (Package, PackageCfgFile, PayloadFile, IgnoredDir, AllowedDir):
            self._db.create_table_from_object(obj())
191543
public function initialize()
    {
        $this->initializeShortAliases();
        $this->initializeDefaultAliases();
        foreach ($this->schemaManager->getSchemaTables() as $table) {
            $this->loadMetadataForTable($table);
        }
        $this->initialized = true;
    }
929383
def build_db_jobs(infiles, blastcmds):
    """"""
    dbjobdict = {}  # Dict of database construction jobs, keyed by filename
    # Create dictionary of database building jobs, keyed by db name
    # defining jobnum for later use as last job index used
    for idx, fname in enumerate(infiles):
        dbjobdict[blastcmds.get_db_name(fname)] = pyani_jobs.Job(
            "%s_db_%06d" % (blastcmds.prefix, idx), blastcmds.build_db_cmd(fname)
        )
    return dbjobdict
54863
protected function init() {
        $this->data['crud'] = 'r';
        $this->data['edulevel'] = self::LEVEL_PARTICIPATING;
        $this->data['objecttable'] = user_competency::TABLE;
    }
631738
protected final void init() {

        ns = new DINameSpace(database);
        pi = new DIProcedureInfo(ns);

        // flag the Session-dependent cached tables
        Table t;

        for (int i = 0; i < sysTables.length; i++) {
            t = sysTables[i] = generateTable(i);

            if (t != null) {
                t.setDataReadOnly(true);
            }
        }

        GranteeManager gm    = database.getGranteeManager();
        Right          right = new Right();

        right.set(GrantConstants.SELECT, null);

        for (int i = 0; i < sysTableHsqlNames.length; i++) {
            if (sysTables[i] != null) {
                gm.grantSystemToPublic(sysTables[i], right);
            }
        }

        right = Right.fullRights;

        gm.grantSystemToPublic(SqlInvariants.YES_OR_NO, right);
        gm.grantSystemToPublic(SqlInvariants.TIME_STAMP, right);
        gm.grantSystemToPublic(SqlInvariants.CARDINAL_NUMBER, right);
        gm.grantSystemToPublic(SqlInvariants.CHARACTER_DATA, right);
        gm.grantSystemToPublic(SqlInvariants.SQL_CHARACTER, right);
        gm.grantSystemToPublic(SqlInvariants.SQL_IDENTIFIER_CHARSET, right);
        gm.grantSystemToPublic(SqlInvariants.SQL_IDENTIFIER, right);
        gm.grantSystemToPublic(SqlInvariants.SQL_TEXT, right);
    }
362250
protected function initialisation()
	{
		foreach($this->table_schema as $name => $prop)
		{
			$this->columns[] = 't.' . $name;
			$this->filter_columns[] = $name;
			if( $this->check_type )
			{
				$this->setType($prop["type"], $name);
			}
		}
	}
696752
public function init()
    {
        $this->setForms(
            array(
            'descriptionFormDescription' => array(
                'type' => 'Jobs/JobDescriptionDescription',
                'property' => true,
            )
            )
        );

        $this->setForms(
            array(
            'descriptionFormBenefits' => array(
                'type' => 'Jobs/JobDescriptionBenefits',
                'property' => true,
            )
            )
        );

        $this->setForms(
            [
                'templateLabelBenefits' => [
                    'type' => 'Jobs/TemplateLabelBenefits',
                    'property' => true,
                ]
            ]
        );

        $this->setForms(
            array(
            'descriptionFormRequirements' => array(
                'type' => 'Jobs/JobDescriptionRequirements',
                'property' => true,
            )
            )
        );

        $this->setForms(
            [
                'templateLabelRequirements' => [
                    'type' => 'Jobs/TemplateLabelRequirements',
                    'property' => true,
                ]
            ]
        );

        $this->setForms(
            array(
            'descriptionFormQualifications' => array(
                'type' => 'Jobs/JobDescriptionQualifications',
                'property' => true,
            )
            )
        );

        $this->setForms(
            [
                'templateLabelQualifications' => [
                    'type' => 'Jobs/TemplateLabelQualifications',
                    'property' => true,
                ]
            ]
        );

        $this->setForms(
            array(
            'descriptionFormTitle' => array(
                'type' => 'Jobs/JobDescriptionTitle',
                'property' => true,
            )
            )
        );

        $this->setForms([
                'descriptionFormHtml' => [
                    'type' => 'Jobs/JobDescriptionHtml',
                    'property' => true,
                ],
            ]);
    }