forked from austcms/aust
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sql regarding the Images module for migrating from v0.2 to v0.3 created.
- Loading branch information
Showing
19 changed files
with
109 additions
and
209 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
modules/imagens/core/migrations/Migration_20100120105600_CriarTabela.php
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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
52 changes: 52 additions & 0 deletions
52
modules/images/core/migrations/Migration_20100120105600_CriarTabela.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* MOD MIGRATION | ||
* | ||
* Migration de um módulos | ||
* | ||
*/ | ||
class Migration_20100120105600_CriarTabela extends Migrations | ||
{ | ||
function up(){ | ||
|
||
$schema['images'] = array( | ||
'id' => 'int NOT NULL auto_increment', | ||
'node_id' => "int", | ||
"title" => "text COMMENT 'O título do registro que será mostrado para humanos.'", | ||
"title_encoded" => "text COMMENT 'Título tratado para ser mostrado na barra de endereços.'", | ||
"subtitle" => "text", | ||
"summary" => "text", | ||
"description" => "text COMMENT 'Texto ou descrição.'", | ||
"link" => "blob", | ||
'order_nr' => 'int', | ||
'image_bytes' => 'mediumint', | ||
'image_binary_data' => 'longblob', | ||
'image_name' => 'varchar(150)', | ||
'image_type' => 'varchar(120)', | ||
'reference' => 'varchar(50)', | ||
'reference_id' => 'int', | ||
'local' => "varchar(60) COMMENT 'Caso seja necessário especificar um local, seja para amostragem ou não.'", | ||
'class' => 'varchar(60)', | ||
'specie' => 'varchar(60)', | ||
'expire_on' => 'date not null', | ||
'created_on' => 'date not null', | ||
'updated_on' => 'date not null', | ||
'pageviews' => 'int', | ||
'admin_id' => 'int', | ||
'dbSchemaTableProperties' => array( | ||
'PRIMARY KEY' => '(id)', | ||
'UNIQUE' => 'id (id)', | ||
) | ||
); | ||
|
||
$this->createTable( $schema ); | ||
|
||
return true; | ||
} | ||
|
||
function down(){ | ||
$this->dropTable('images'); | ||
return true; | ||
} | ||
} | ||
?> |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.