File: up.sql

package info (click to toggle)
ruby-dbd-mysql 0.4.4%2Bgem2deb-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 292 kB
  • ctags: 159
  • sloc: ruby: 1,403; sql: 47; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 921 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
create table names (
    name varchar(255),
    age integer
) Engine=InnoDB;
---
insert into names (name, age) values ('Joe', 19);
---
insert into names (name, age) values ('Jim', 30);
---
insert into names (name, age) values ('Bob', 21);
---
create table precision_test (text_field varchar(20) primary key not null, integer_field integer, decimal_field decimal(2,1), numeric_field numeric(30,6));
---
CREATE TABLE blob_test (name VARCHAR(30), data BLOB) Engine=InnoDB;
---
create view view_names as select * from names;
---
create table boolean_test (num integer, mybool boolean) Engine=InnoDB;
---
create table time_test (mytime time) Engine=InnoDB;
---
create table timestamp_test (mytimestamp timestamp) Engine=InnoDB;
---
create table bit_test (mybit bit) Engine=InnoDB;
---
create table field_types_test (foo integer not null primary key default 1);
---
create table db_specific_types_test (ts timestamp, dt date);