This file contains hidden or 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
create table deps_saved_ddl ( | |
deps_id serial primary key, | |
deps_view_schema varchar(255), | |
deps_view_name varchar(255), | |
deps_ddl_to_run text | |
); | |
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as | |
$$ | |
declare |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
import { BaseModel } from './BaseModel' | |
import Dvere from './Dvere' | |
import KategoriePristupu from './KategoriePristupu' | |
import Osoba from './Osoba' | |
import PristupovyBod from './PristupovyBod' | |
export default class Log extends BaseModel { | |
// This is the name used as module name of the Vuex Store. | |
static entity = 'Log' |
This file contains hidden or 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 | |
use LeanMapper\IMapper; | |
class SchemaGenerator | |
{ | |
private $mapper; | |
This file contains hidden or 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
$schemaGenerator = new SchemaGenerator(...); | |
$platform = new Doctrine\DBAL\Platforms\MySqlPlatform(); | |
$schema = $schemaGenerator->createSchema(...); | |
$sqls = []; | |
if (file_exists(__DIR__ . '/schema.log')) { | |
$fromSchema = unserialize(file_get_contents(__DIR__ . '/schema.log')); | |
$sqls = $schema->getMigrateFromSql($fromSchema, $platform); | |
} else { |
This file contains hidden or 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 | |
/** | |
* Texy parser for wiki page. | |
*/ | |
class Parser extends Nette\Object | |
{ | |
/** | |
* @return void |