summaryrefslogtreecommitdiffstats
path: root/drizzle
diff options
context:
space:
mode:
Diffstat (limited to 'drizzle')
-rw-r--r--drizzle/0000_high_night_nurse.sql5
-rw-r--r--drizzle/0001_brief_mandrill.sql16
-rw-r--r--drizzle/0002_sleepy_ink.sql2
-rw-r--r--drizzle/meta/0000_snapshot.json49
-rw-r--r--drizzle/meta/0001_snapshot.json148
-rw-r--r--drizzle/meta/0002_snapshot.json49
-rw-r--r--drizzle/meta/_journal.json26
-rw-r--r--drizzle/migrations.js16
8 files changed, 6 insertions, 305 deletions
diff --git a/drizzle/0000_high_night_nurse.sql b/drizzle/0000_high_night_nurse.sql
deleted file mode 100644
index 9afda09..0000000
--- a/drizzle/0000_high_night_nurse.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-CREATE TABLE `personas` (
- `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
- `nombre` text NOT NULL,
- `edad` integer
-);
diff --git a/drizzle/0001_brief_mandrill.sql b/drizzle/0001_brief_mandrill.sql
deleted file mode 100644
index 0866313..0000000
--- a/drizzle/0001_brief_mandrill.sql
+++ /dev/null
@@ -1,16 +0,0 @@
-CREATE TABLE `categorias` (
- `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
- `nombre` text NOT NULL
-);
---> statement-breakpoint
-CREATE UNIQUE INDEX `categorias_nombre_unique` ON `categorias` (`nombre`);--> statement-breakpoint
-CREATE TABLE `productos` (
- `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
- `nombre` text NOT NULL,
- `stock` integer,
- `precio` real,
- `categoria_id` integer,
- FOREIGN KEY (`categoria_id`) REFERENCES `categorias`(`id`) ON UPDATE no action ON DELETE no action
-);
---> statement-breakpoint
-CREATE UNIQUE INDEX `productos_nombre_unique` ON `productos` (`nombre`); \ No newline at end of file
diff --git a/drizzle/0002_sleepy_ink.sql b/drizzle/0002_sleepy_ink.sql
deleted file mode 100644
index a8f70e0..0000000
--- a/drizzle/0002_sleepy_ink.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-DROP TABLE `categorias`;--> statement-breakpoint
-DROP TABLE `productos`; \ No newline at end of file
diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json
deleted file mode 100644
index b1a67a1..0000000
--- a/drizzle/meta/0000_snapshot.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "version": "6",
- "dialect": "sqlite",
- "id": "d8e12abb-238e-41bb-9928-c817d6d92575",
- "prevId": "00000000-0000-0000-0000-000000000000",
- "tables": {
- "personas": {
- "name": "personas",
- "columns": {
- "id": {
- "name": "id",
- "type": "integer",
- "primaryKey": true,
- "notNull": true,
- "autoincrement": true
- },
- "nombre": {
- "name": "nombre",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "edad": {
- "name": "edad",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "checkConstraints": {}
- }
- },
- "views": {},
- "enums": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "indexes": {}
- }
-} \ No newline at end of file
diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json
deleted file mode 100644
index db0cea6..0000000
--- a/drizzle/meta/0001_snapshot.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "version": "6",
- "dialect": "sqlite",
- "id": "5ae3a6d7-6e57-40ba-846c-1f66fceb7e00",
- "prevId": "d8e12abb-238e-41bb-9928-c817d6d92575",
- "tables": {
- "categorias": {
- "name": "categorias",
- "columns": {
- "id": {
- "name": "id",
- "type": "integer",
- "primaryKey": true,
- "notNull": true,
- "autoincrement": true
- },
- "nombre": {
- "name": "nombre",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- }
- },
- "indexes": {
- "categorias_nombre_unique": {
- "name": "categorias_nombre_unique",
- "columns": [
- "nombre"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "checkConstraints": {}
- },
- "personas": {
- "name": "personas",
- "columns": {
- "id": {
- "name": "id",
- "type": "integer",
- "primaryKey": true,
- "notNull": true,
- "autoincrement": true
- },
- "nombre": {
- "name": "nombre",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "edad": {
- "name": "edad",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "checkConstraints": {}
- },
- "productos": {
- "name": "productos",
- "columns": {
- "id": {
- "name": "id",
- "type": "integer",
- "primaryKey": true,
- "notNull": true,
- "autoincrement": true
- },
- "nombre": {
- "name": "nombre",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "stock": {
- "name": "stock",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "precio": {
- "name": "precio",
- "type": "real",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "categoria_id": {
- "name": "categoria_id",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "productos_nombre_unique": {
- "name": "productos_nombre_unique",
- "columns": [
- "nombre"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {
- "productos_categoria_id_categorias_id_fk": {
- "name": "productos_categoria_id_categorias_id_fk",
- "tableFrom": "productos",
- "tableTo": "categorias",
- "columnsFrom": [
- "categoria_id"
- ],
- "columnsTo": [
- "id"
- ],
- "onDelete": "no action",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "checkConstraints": {}
- }
- },
- "views": {},
- "enums": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "indexes": {}
- }
-} \ No newline at end of file
diff --git a/drizzle/meta/0002_snapshot.json b/drizzle/meta/0002_snapshot.json
deleted file mode 100644
index ae0b584..0000000
--- a/drizzle/meta/0002_snapshot.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "version": "6",
- "dialect": "sqlite",
- "id": "abb95522-5cc0-48db-8649-e1aeee626edc",
- "prevId": "5ae3a6d7-6e57-40ba-846c-1f66fceb7e00",
- "tables": {
- "personas": {
- "name": "personas",
- "columns": {
- "id": {
- "name": "id",
- "type": "integer",
- "primaryKey": true,
- "notNull": true,
- "autoincrement": true
- },
- "nombre": {
- "name": "nombre",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "edad": {
- "name": "edad",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "checkConstraints": {}
- }
- },
- "views": {},
- "enums": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "indexes": {}
- }
-} \ No newline at end of file
diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json
index c913af9..4377507 100644
--- a/drizzle/meta/_journal.json
+++ b/drizzle/meta/_journal.json
@@ -1,27 +1,5 @@
{
"version": "7",
"dialect": "sqlite",
- "entries": [
- {
- "idx": 0,
- "version": "6",
- "when": 1768914263303,
- "tag": "0000_high_night_nurse",
- "breakpoints": true
- },
- {
- "idx": 1,
- "version": "6",
- "when": 1774354496154,
- "tag": "0001_brief_mandrill",
- "breakpoints": true
- },
- {
- "idx": 2,
- "version": "6",
- "when": 1774356468737,
- "tag": "0002_sleepy_ink",
- "breakpoints": true
- }
- ]
-} \ No newline at end of file
+ "entries": []
+}
diff --git a/drizzle/migrations.js b/drizzle/migrations.js
index 7a10df8..f5d641f 100644
--- a/drizzle/migrations.js
+++ b/drizzle/migrations.js
@@ -1,16 +1,8 @@
// This file is required for Expo/React Native SQLite migrations - https://orm.drizzle.team/quick-sqlite/expo
import journal from './meta/_journal.json';
-import m0000 from './0000_high_night_nurse.sql';
-import m0001 from './0001_brief_mandrill.sql';
-import m0002 from './0002_sleepy_ink.sql';
- export default {
- journal,
- migrations: {
- m0000,
-m0001,
-m0002
- }
- }
- \ No newline at end of file
+export default {
+ journal,
+ migrations: {},
+};