mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-25 22:07:19 +08:00 
			
		
		
		
	chore: bump version
This commit is contained in:
		
							parent
							
								
									3a7995c733
								
							
						
					
					
						commit
						6e1b01cb68
					
				
					 8 changed files with 7 additions and 39 deletions
				
			
		|  | @ -9,10 +9,10 @@ import ( | |||
| 
 | ||||
| // Version is the service current released version. | ||||
| // Semantic versioning: https://semver.org/ | ||||
| var Version = "0.24.4" | ||||
| var Version = "0.25.0" | ||||
| 
 | ||||
| // DevVersion is the service current development version. | ||||
| var DevVersion = "0.24.4" | ||||
| var DevVersion = "0.25.0" | ||||
| 
 | ||||
| func GetCurrentVersion(mode string) string { | ||||
| 	if mode == "dev" || mode == "demo" { | ||||
|  |  | |||
							
								
								
									
										1
									
								
								store/migration/mysql/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								store/migration/mysql/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| DROP TABLE IF EXISTS webhook; | ||||
|  | @ -110,17 +110,6 @@ CREATE TABLE `inbox` ( | |||
|   `message` TEXT NOT NULL | ||||
| ); | ||||
| 
 | ||||
| -- webhook | ||||
| CREATE TABLE `webhook` ( | ||||
|   `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||||
|   `created_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||||
|   `updated_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||||
|   `row_status` VARCHAR(256) NOT NULL DEFAULT 'NORMAL', | ||||
|   `creator_id` INT NOT NULL, | ||||
|   `name` TEXT NOT NULL, | ||||
|   `url` TEXT NOT NULL | ||||
| ); | ||||
| 
 | ||||
| -- reaction | ||||
| CREATE TABLE `reaction` ( | ||||
|   `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||||
|  |  | |||
							
								
								
									
										1
									
								
								store/migration/postgres/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								store/migration/postgres/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| DROP TABLE IF EXISTS webhook; | ||||
|  | @ -110,17 +110,6 @@ CREATE TABLE inbox ( | |||
|   message TEXT NOT NULL | ||||
| ); | ||||
| 
 | ||||
| -- webhook | ||||
| CREATE TABLE webhook ( | ||||
|   id SERIAL PRIMARY KEY, | ||||
|   created_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()), | ||||
|   updated_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()), | ||||
|   row_status TEXT NOT NULL DEFAULT 'NORMAL', | ||||
|   creator_id INTEGER NOT NULL, | ||||
|   name TEXT NOT NULL, | ||||
|   url TEXT NOT NULL | ||||
| ); | ||||
| 
 | ||||
| -- reaction | ||||
| CREATE TABLE reaction ( | ||||
|   id SERIAL PRIMARY KEY, | ||||
|  |  | |||
							
								
								
									
										3
									
								
								store/migration/sqlite/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								store/migration/sqlite/0.25/00__remove_webhook.sql
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| DROP INDEX IF EXISTS idx_webhook_creator_id; | ||||
| 
 | ||||
| DROP TABLE IF EXISTS webhook; | ||||
|  | @ -119,19 +119,6 @@ CREATE TABLE inbox ( | |||
|   message TEXT NOT NULL DEFAULT '{}' | ||||
| ); | ||||
| 
 | ||||
| -- webhook | ||||
| CREATE TABLE webhook ( | ||||
|   id INTEGER PRIMARY KEY AUTOINCREMENT, | ||||
|   created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')), | ||||
|   updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')), | ||||
|   row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL', | ||||
|   creator_id INTEGER NOT NULL, | ||||
|   name TEXT NOT NULL, | ||||
|   url TEXT NOT NULL | ||||
| ); | ||||
| 
 | ||||
| CREATE INDEX idx_webhook_creator_id ON webhook (creator_id); | ||||
| 
 | ||||
| -- reaction | ||||
| CREATE TABLE reaction ( | ||||
|   id INTEGER PRIMARY KEY AUTOINCREMENT, | ||||
|  |  | |||
|  | @ -50,7 +50,6 @@ func resetTestingDB(ctx context.Context, profile *profile.Profile, dbDriver stor | |||
| 		DROP TABLE IF EXISTS storage; | ||||
| 		DROP TABLE IF EXISTS idp; | ||||
| 		DROP TABLE IF EXISTS inbox; | ||||
| 		DROP TABLE IF EXISTS webhook; | ||||
| 		DROP TABLE IF EXISTS reaction;`) | ||||
| 		if err != nil { | ||||
| 			slog.Error("failed to reset testing db", slog.String("error", err.Error())) | ||||
|  | @ -71,7 +70,6 @@ func resetTestingDB(ctx context.Context, profile *profile.Profile, dbDriver stor | |||
| 		DROP TABLE IF EXISTS storage CASCADE; | ||||
| 		DROP TABLE IF EXISTS idp CASCADE; | ||||
| 		DROP TABLE IF EXISTS inbox CASCADE; | ||||
| 		DROP TABLE IF EXISTS webhook CASCADE; | ||||
| 		DROP TABLE IF EXISTS reaction CASCADE;`) | ||||
| 		if err != nil { | ||||
| 			slog.Error("failed to reset testing db", slog.String("error", err.Error())) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue