This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TO DO da cambiare | |
package com.r3.businessnetworks.ordine.states | |
// TO DO da cambiare | |
import com.r3.businessnetworks.ordine.states.OrdineStatus.* | |
import net.corda.core.contracts.* | |
import net.corda.core.contracts.Requirements.using | |
import net.corda.core.identity.Party | |
import net.corda.core.schemas.MappedSchema | |
import net.corda.core.schemas.PersistentState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* This is a CLI script to generate the signed update manifest which should be called from the command-line, not the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* This is a CLI script to check my digital certifyed public key which should be called from the command-line, not the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* This is a CLI script to generate keypairs which should be called from the command-line, not the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Joomla.Cli | |
* | |
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* This is a CLI script which should be called from the command-line, not the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# docker | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getTableForeignKeys($table) | |
{ | |
$this->connect(); | |
$query = "SELECT c.conname AS constraint_name, | |
CASE c.contype | |
WHEN 'c' THEN 'CHECK' | |
WHEN 'f' THEN 'FOREIGN KEY' | |
WHEN 'p' THEN 'PRIMARY KEY' | |
WHEN 'u' THEN 'UNIQUE' | |
END AS constraint_type, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getTableForeignKeys($table) | |
{ | |
$this->connect(); | |
// Get the details foreign keys information. | |
$query = $this->getQuery(true) | |
->select('tb1.CONSTRAINT_NAME, tb1.TABLE_NAME, tb1.COLUMN_NAME, ' . | |
'tb1.REFERENCED_TABLE_NAME, tb1.REFERENCED_COLUMN_NAME, tb2.MATCH_OPTION, ' . | |
'tb2.UPDATE_RULE, tb2.DELETE_RULE') | |
->from('information_schema.KEY_COLUMN_USAGE AS tb1') |